diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-03-28 16:29:51 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-03-28 16:29:51 -0400 |
commit | ed40d0c472b136682b2fcba05f89762859c7374f (patch) | |
tree | 076b83a26bcd63d6158463735dd34c10bbc591dc /sound/soc/pxa/spitz.c | |
parent | 9e495834e59ca9b29f1a1f63b9f5533bb022ac49 (diff) | |
parent | 5d80f8e5a9dc9c9a94d4aeaa567e219a808b8a4a (diff) |
Merge branch 'origin' into devel
Conflicts:
sound/soc/pxa/pxa2xx-i2s.c
Diffstat (limited to 'sound/soc/pxa/spitz.c')
-rw-r--r-- | sound/soc/pxa/spitz.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sound/soc/pxa/spitz.c b/sound/soc/pxa/spitz.c index de8778fa8729..c4cd2acaacb4 100644 --- a/sound/soc/pxa/spitz.c +++ b/sound/soc/pxa/spitz.c | |||
@@ -107,7 +107,7 @@ static void spitz_ext_control(struct snd_soc_codec *codec) | |||
107 | static int spitz_startup(struct snd_pcm_substream *substream) | 107 | static int spitz_startup(struct snd_pcm_substream *substream) |
108 | { | 108 | { |
109 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 109 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
110 | struct snd_soc_codec *codec = rtd->socdev->codec; | 110 | struct snd_soc_codec *codec = rtd->socdev->card->codec; |
111 | 111 | ||
112 | /* check the jack status at stream startup */ | 112 | /* check the jack status at stream startup */ |
113 | spitz_ext_control(codec); | 113 | spitz_ext_control(codec); |
@@ -276,7 +276,7 @@ static const struct snd_kcontrol_new wm8750_spitz_controls[] = { | |||
276 | */ | 276 | */ |
277 | static int spitz_wm8750_init(struct snd_soc_codec *codec) | 277 | static int spitz_wm8750_init(struct snd_soc_codec *codec) |
278 | { | 278 | { |
279 | int i, err; | 279 | int err; |
280 | 280 | ||
281 | /* NC codec pins */ | 281 | /* NC codec pins */ |
282 | snd_soc_dapm_nc_pin(codec, "RINPUT1"); | 282 | snd_soc_dapm_nc_pin(codec, "RINPUT1"); |
@@ -288,12 +288,10 @@ static int spitz_wm8750_init(struct snd_soc_codec *codec) | |||
288 | snd_soc_dapm_nc_pin(codec, "MONO1"); | 288 | snd_soc_dapm_nc_pin(codec, "MONO1"); |
289 | 289 | ||
290 | /* Add spitz specific controls */ | 290 | /* Add spitz specific controls */ |
291 | for (i = 0; i < ARRAY_SIZE(wm8750_spitz_controls); i++) { | 291 | err = snd_soc_add_controls(codec, wm8750_spitz_controls, |
292 | err = snd_ctl_add(codec->card, | 292 | ARRAY_SIZE(wm8750_spitz_controls)); |
293 | snd_soc_cnew(&wm8750_spitz_controls[i], codec, NULL)); | 293 | if (err < 0) |
294 | if (err < 0) | 294 | return err; |
295 | return err; | ||
296 | } | ||
297 | 295 | ||
298 | /* Add spitz specific widgets */ | 296 | /* Add spitz specific widgets */ |
299 | snd_soc_dapm_new_controls(codec, wm8750_dapm_widgets, | 297 | snd_soc_dapm_new_controls(codec, wm8750_dapm_widgets, |