diff options
Diffstat (limited to 'sound/soc/samsung/s3c24xx_simtec.c')
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/samsung/s3c24xx_simtec.c b/sound/soc/samsung/s3c24xx_simtec.c index a253bcc1646..656d5afe4ca 100644 --- a/sound/soc/samsung/s3c24xx_simtec.c +++ b/sound/soc/samsung/s3c24xx_simtec.c | |||
@@ -134,18 +134,18 @@ static const struct snd_kcontrol_new amp_unmute_controls[] = { | |||
134 | 134 | ||
135 | void simtec_audio_init(struct snd_soc_pcm_runtime *rtd) | 135 | void simtec_audio_init(struct snd_soc_pcm_runtime *rtd) |
136 | { | 136 | { |
137 | struct snd_soc_codec *codec = rtd->codec; | 137 | struct snd_soc_card *card = rtd->card; |
138 | 138 | ||
139 | if (pdata->amp_gpio > 0) { | 139 | if (pdata->amp_gpio > 0) { |
140 | pr_debug("%s: adding amp routes\n", __func__); | 140 | pr_debug("%s: adding amp routes\n", __func__); |
141 | 141 | ||
142 | snd_soc_add_controls(codec, amp_unmute_controls, | 142 | snd_soc_add_card_controls(card, amp_unmute_controls, |
143 | ARRAY_SIZE(amp_unmute_controls)); | 143 | ARRAY_SIZE(amp_unmute_controls)); |
144 | } | 144 | } |
145 | 145 | ||
146 | if (pdata->amp_gain[0] > 0) { | 146 | if (pdata->amp_gain[0] > 0) { |
147 | pr_debug("%s: adding amp controls\n", __func__); | 147 | pr_debug("%s: adding amp controls\n", __func__); |
148 | snd_soc_add_controls(codec, amp_gain_controls, | 148 | snd_soc_add_card_controls(card, amp_gain_controls, |
149 | ARRAY_SIZE(amp_gain_controls)); | 149 | ARRAY_SIZE(amp_gain_controls)); |
150 | } | 150 | } |
151 | } | 151 | } |