Changeset 777 for GPL/trunk/alsa-kernel/include/sound/soc-dai.h
- Timestamp:
- Apr 21, 2025, 7:17:25 PM (4 months ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-exp merged: 766-767,770-771,773-774
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/include/sound/soc-dai.h
r772 r777 181 181 182 182 /* 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);183 int snd_soc_dai_get_fmt_max_priority(const struct snd_soc_pcm_runtime *rtd); 184 u64 snd_soc_dai_get_fmt(const struct snd_soc_dai *dai, int priority); 185 185 int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt); 186 186 … … 189 189 190 190 int 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); 193 193 194 194 int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate); … … 199 199 200 200 201 int snd_soc_dai_get_channel_map( struct snd_soc_dai *dai,201 int snd_soc_dai_get_channel_map(const struct snd_soc_dai *dai, 202 202 unsigned int *tx_num, unsigned int *tx_slot, 203 203 unsigned int *rx_num, unsigned int *rx_slot); 204 204 205 int snd_soc_dai_is_dummy( struct snd_soc_dai *dai);205 int snd_soc_dai_is_dummy(const struct snd_soc_dai *dai); 206 206 207 207 int snd_soc_dai_hw_params(struct snd_soc_dai *dai, … … 219 219 int snd_soc_dai_compress_new(struct snd_soc_dai *dai, 220 220 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); 221 bool snd_soc_dai_stream_valid(const struct snd_soc_dai *dai, int stream); 223 222 void snd_soc_dai_action(struct snd_soc_dai *dai, 224 223 int stream, int action); … … 233 232 snd_soc_dai_action(dai, stream, -1); 234 233 } 235 int snd_soc_dai_active( struct snd_soc_dai *dai);234 int snd_soc_dai_active(const struct snd_soc_dai *dai); 236 235 237 236 int snd_soc_pcm_dai_probe(struct snd_soc_pcm_runtime *rtd, int order); … … 241 240 int snd_soc_pcm_dai_trigger(struct snd_pcm_substream *substream, int cmd, 242 241 int rollback); 243 int snd_soc_pcm_dai_bespoke_trigger(struct snd_pcm_substream *substream,244 int cmd);245 242 void snd_soc_pcm_dai_delay(struct snd_pcm_substream *substream, 246 243 snd_pcm_sframes_t *cpu_delay, snd_pcm_sframes_t *codec_delay); … … 272 269 struct snd_compr_metadata *metadata); 273 270 274 const char *snd_soc_dai_name_get( struct snd_soc_dai *dai);271 const char *snd_soc_dai_name_get(const struct snd_soc_dai *dai); 275 272 276 273 struct snd_soc_dai_ops { … … 306 303 int slots, int slot_width); 307 304 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, 311 308 unsigned int *tx_num, unsigned int *tx_slot, 312 309 unsigned int *rx_num, unsigned int *rx_slot); … … 346 343 int (*trigger)(struct snd_pcm_substream *, int, 347 344 struct snd_soc_dai *); 348 int (*bespoke_trigger)(struct snd_pcm_substream *, int, 349 struct snd_soc_dai *); 345 350 346 /* 351 347 * For hardware based FIFO caused delay reporting. … … 362 358 * snd_soc_dai_get_fmt() 363 359 */ 364 u64 *auto_selectable_formats;360 const u64 *auto_selectable_formats; 365 361 int num_auto_selectable_formats; 366 362 … … 414 410 unsigned int base; 415 411 struct snd_soc_dobj dobj; 416 struct of_phandle_args *dai_args;412 const struct of_phandle_args *dai_args; 417 413 418 414 /* ops */ … … 474 470 }; 475 471 476 static inline struct snd_soc_pcm_stream *472 static inline const struct snd_soc_pcm_stream * 477 473 snd_soc_dai_get_pcm_stream(const struct snd_soc_dai *dai, int stream) 478 474 { … … 519 515 } 520 516 521 static inline unsigned int snd_soc_dai_tdm_mask_get(struct snd_soc_dai *dai, int stream) 517 static inline unsigned int snd_soc_dai_tdm_mask_get(const struct snd_soc_dai *dai, 518 int stream) 522 519 { 523 520 return dai->stream[stream].tdm_mask; … … 530 527 } 531 528 532 static inline unsigned int snd_soc_dai_stream_active(struct snd_soc_dai *dai, int stream) 529 static inline unsigned int snd_soc_dai_stream_active(const struct snd_soc_dai *dai, 530 int stream) 533 531 { 534 532 /* see snd_soc_dai_action() for setup */
Note:
See TracChangeset
for help on using the changeset viewer.