File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -26,4 +26,18 @@ static inline void *snd_soc_card_get_drvdata(struct snd_soc_card *card)
26
26
return card -> drvdata ;
27
27
}
28
28
29
+ static inline
30
+ struct snd_soc_dai * snd_soc_card_get_codec_dai (struct snd_soc_card * card ,
31
+ const char * dai_name )
32
+ {
33
+ struct snd_soc_pcm_runtime * rtd ;
34
+
35
+ for_each_card_rtds (card , rtd ) {
36
+ if (!strcmp (asoc_rtd_to_codec (rtd , 0 )-> name , dai_name ))
37
+ return asoc_rtd_to_codec (rtd , 0 );
38
+ }
39
+
40
+ return NULL ;
41
+ }
42
+
29
43
#endif /* __SOC_CARD_H */
Original file line number Diff line number Diff line change @@ -1372,20 +1372,6 @@ struct snd_soc_dai *snd_soc_find_dai(
1372
1372
1373
1373
#include <sound/soc-dai.h>
1374
1374
1375
- static inline
1376
- struct snd_soc_dai * snd_soc_card_get_codec_dai (struct snd_soc_card * card ,
1377
- const char * dai_name )
1378
- {
1379
- struct snd_soc_pcm_runtime * rtd ;
1380
-
1381
- list_for_each_entry (rtd , & card -> rtd_list , list ) {
1382
- if (!strcmp (asoc_rtd_to_codec (rtd , 0 )-> name , dai_name ))
1383
- return asoc_rtd_to_codec (rtd , 0 );
1384
- }
1385
-
1386
- return NULL ;
1387
- }
1388
-
1389
1375
static inline
1390
1376
int snd_soc_fixup_dai_links_platform_name (struct snd_soc_card * card ,
1391
1377
const char * platform_name )
You can’t perform that action at this time.
0 commit comments