diff options
-rw-r--r-- | sound/soc/soc-core.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index e2b6d75f16e3..ef8f28284cb9 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1083,11 +1083,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card) | |||
1083 | continue; | 1083 | continue; |
1084 | } | 1084 | } |
1085 | } | 1085 | } |
1086 | if (card->dai_link[i].codec_dai->ac97_control) { | 1086 | if (card->dai_link[i].codec_dai->ac97_control) |
1087 | ac97 = 1; | 1087 | ac97 = 1; |
1088 | snd_ac97_dev_add_pdata(codec->ac97, | ||
1089 | card->dai_link[i].cpu_dai->ac97_pdata); | ||
1090 | } | ||
1091 | } | 1088 | } |
1092 | 1089 | ||
1093 | snprintf(codec->card->shortname, sizeof(codec->card->shortname), | 1090 | snprintf(codec->card->shortname, sizeof(codec->card->shortname), |
@@ -1510,6 +1507,10 @@ int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid) | |||
1510 | mutex_unlock(&codec->mutex); | 1507 | mutex_unlock(&codec->mutex); |
1511 | return ret; | 1508 | return ret; |
1512 | } | 1509 | } |
1510 | if (card->dai_link[i].codec_dai->ac97_control) { | ||
1511 | snd_ac97_dev_add_pdata(codec->ac97, | ||
1512 | card->dai_link[i].cpu_dai->ac97_pdata); | ||
1513 | } | ||
1513 | } | 1514 | } |
1514 | 1515 | ||
1515 | mutex_unlock(&codec->mutex); | 1516 | mutex_unlock(&codec->mutex); |