projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b590d5e
)
ASoC: Intel: Skylake: Update the rtd query
author
Vinod Koul
<
[email protected]
>
Fri, 20 Nov 2015 17:04:41 +0000
(22:34 +0530)
committer
Mark Brown
<
[email protected]
>
Fri, 20 Nov 2015 19:23:31 +0000
(19:23 +0000)
sound card rtd was an array and was updated to a list so update
the driver to use a list
Reported-by: Stephen Rothwell <
[email protected]
>
Signed-off-by: Vinod Koul <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/intel/boards/skl_nau88l25_ssm4567.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/boards/skl_nau88l25_ssm4567.c
b/sound/soc/intel/boards/skl_nau88l25_ssm4567.c
index 3f5a96b585b80ec3103cf8062ab746afab06312c..65c65d4c422c69d814605357a3af140ba4d3f5fa 100644
(file)
--- a/
sound/soc/intel/boards/skl_nau88l25_ssm4567.c
+++ b/
sound/soc/intel/boards/skl_nau88l25_ssm4567.c
@@
-35,12
+35,10
@@
static struct snd_soc_card skylake_audio_card;
static inline struct snd_soc_dai *skl_get_codec_dai(struct snd_soc_card *card)
{
-
int i
;
+
struct snd_soc_pcm_runtime *rtd
;
- for (i = 0; i < card->num_rtd; i++) {
- struct snd_soc_pcm_runtime *rtd;
+ list_for_each_entry(rtd, &card->rtd_list, list) {
- rtd = card->rtd + i;
if (!strncmp(rtd->codec_dai->name, SKL_NUVOTON_CODEC_DAI,
strlen(SKL_NUVOTON_CODEC_DAI)))
return rtd->codec_dai;