Ignore:
Timestamp:
Apr 21, 2025, 7:17:25 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge from uniaud32-exp branch

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/sound/soc-dai.h

    r772 r777  
    181181
    182182/* Digital Audio interface formatting */
    183 int snd_soc_dai_get_fmt_max_priority(struct snd_soc_pcm_runtime *rtd);
    184 u64 snd_soc_dai_get_fmt(struct snd_soc_dai *dai, int priority);
     183int snd_soc_dai_get_fmt_max_priority(const struct snd_soc_pcm_runtime *rtd);
     184u64 snd_soc_dai_get_fmt(const struct snd_soc_dai *dai, int priority);
    185185int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt);
    186186
     
    189189
    190190int snd_soc_dai_set_channel_map(struct snd_soc_dai *dai,
    191         unsigned int tx_num, unsigned int *tx_slot,
    192         unsigned int rx_num, unsigned int *rx_slot);
     191        unsigned int tx_num, const unsigned int *tx_slot,
     192        unsigned int rx_num, const unsigned int *rx_slot);
    193193
    194194int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate);
     
    199199
    200200
    201 int snd_soc_dai_get_channel_map(struct snd_soc_dai *dai,
     201int snd_soc_dai_get_channel_map(const struct snd_soc_dai *dai,
    202202                unsigned int *tx_num, unsigned int *tx_slot,
    203203                unsigned int *rx_num, unsigned int *rx_slot);
    204204
    205 int snd_soc_dai_is_dummy(struct snd_soc_dai *dai);
     205int snd_soc_dai_is_dummy(const struct snd_soc_dai *dai);
    206206
    207207int snd_soc_dai_hw_params(struct snd_soc_dai *dai,
     
    219219int snd_soc_dai_compress_new(struct snd_soc_dai *dai,
    220220                             struct snd_soc_pcm_runtime *rtd, int num);
    221 bool snd_soc_dai_stream_valid(struct snd_soc_dai *dai, int stream);
    222 void snd_soc_dai_link_set_capabilities(struct snd_soc_dai_link *dai_link);
     221bool snd_soc_dai_stream_valid(const struct snd_soc_dai *dai, int stream);
    223222void snd_soc_dai_action(struct snd_soc_dai *dai,
    224223                        int stream, int action);
     
    233232        snd_soc_dai_action(dai, stream, -1);
    234233}
    235 int snd_soc_dai_active(struct snd_soc_dai *dai);
     234int snd_soc_dai_active(const struct snd_soc_dai *dai);
    236235
    237236int snd_soc_pcm_dai_probe(struct snd_soc_pcm_runtime *rtd, int order);
     
    241240int snd_soc_pcm_dai_trigger(struct snd_pcm_substream *substream, int cmd,
    242241                            int rollback);
    243 int snd_soc_pcm_dai_bespoke_trigger(struct snd_pcm_substream *substream,
    244                                     int cmd);
    245242void snd_soc_pcm_dai_delay(struct snd_pcm_substream *substream,
    246243                           snd_pcm_sframes_t *cpu_delay, snd_pcm_sframes_t *codec_delay);
     
    272269                                   struct snd_compr_metadata *metadata);
    273270
    274 const char *snd_soc_dai_name_get(struct snd_soc_dai *dai);
     271const char *snd_soc_dai_name_get(const struct snd_soc_dai *dai);
    275272
    276273struct snd_soc_dai_ops {
     
    306303                int slots, int slot_width);
    307304        int (*set_channel_map)(struct snd_soc_dai *dai,
    308                 unsigned int tx_num, unsigned int *tx_slot,
    309                 unsigned int rx_num, unsigned int *rx_slot);
    310         int (*get_channel_map)(struct snd_soc_dai *dai,
     305                unsigned int tx_num, const unsigned int *tx_slot,
     306                unsigned int rx_num, const unsigned int *rx_slot);
     307        int (*get_channel_map)(const struct snd_soc_dai *dai,
    311308                        unsigned int *tx_num, unsigned int *tx_slot,
    312309                        unsigned int *rx_num, unsigned int *rx_slot);
     
    346343        int (*trigger)(struct snd_pcm_substream *, int,
    347344                struct snd_soc_dai *);
    348         int (*bespoke_trigger)(struct snd_pcm_substream *, int,
    349                 struct snd_soc_dai *);
     345
    350346        /*
    351347         * For hardware based FIFO caused delay reporting.
     
    362358         *      snd_soc_dai_get_fmt()
    363359         */
    364         u64 *auto_selectable_formats;
     360        const u64 *auto_selectable_formats;
    365361        int num_auto_selectable_formats;
    366362
     
    414410        unsigned int base;
    415411        struct snd_soc_dobj dobj;
    416         struct of_phandle_args *dai_args;
     412        const struct of_phandle_args *dai_args;
    417413
    418414        /* ops */
     
    474470};
    475471
    476 static inline struct snd_soc_pcm_stream *
     472static inline const struct snd_soc_pcm_stream *
    477473snd_soc_dai_get_pcm_stream(const struct snd_soc_dai *dai, int stream)
    478474{
     
    519515}
    520516
    521 static inline unsigned int snd_soc_dai_tdm_mask_get(struct snd_soc_dai *dai, int stream)
     517static inline unsigned int snd_soc_dai_tdm_mask_get(const struct snd_soc_dai *dai,
     518                                                    int stream)
    522519{
    523520        return dai->stream[stream].tdm_mask;
     
    530527}
    531528
    532 static inline unsigned int snd_soc_dai_stream_active(struct snd_soc_dai *dai, int stream)
     529static inline unsigned int snd_soc_dai_stream_active(const struct snd_soc_dai *dai,
     530                                                     int stream)
    533531{
    534532        /* see snd_soc_dai_action() for setup */
Note: See TracChangeset for help on using the changeset viewer.