diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-07-29 06:42:22 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-07-29 06:57:10 -0400 |
commit | 877db3c1af24a65f78ae865b1fb642165e065a8b (patch) | |
tree | 2092f224fcd3687ba2bb894d2d40cf1235f49dd3 /sound/soc/pxa/poodle.c | |
parent | be41e941d5f1a48bde7f44d09d56e8d2605f98e1 (diff) |
ALSA: ASoC: Update Poodle to current ASoC API
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/pxa/poodle.c')
-rw-r--r-- | sound/soc/pxa/poodle.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c index 65a4e9a8c39e..d968cf71b569 100644 --- a/sound/soc/pxa/poodle.c +++ b/sound/soc/pxa/poodle.c | |||
@@ -85,17 +85,13 @@ static int poodle_startup(struct snd_pcm_substream *substream) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | /* we need to unmute the HP at shutdown as the mute burns power on poodle */ | 87 | /* we need to unmute the HP at shutdown as the mute burns power on poodle */ |
88 | static int poodle_shutdown(struct snd_pcm_substream *substream) | 88 | static void poodle_shutdown(struct snd_pcm_substream *substream) |
89 | { | 89 | { |
90 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | ||
91 | struct snd_soc_codec *codec = rtd->socdev->codec; | ||
92 | |||
93 | /* set = unmute headphone */ | 90 | /* set = unmute headphone */ |
94 | locomo_gpio_write(&poodle_locomo_device.dev, | 91 | locomo_gpio_write(&poodle_locomo_device.dev, |
95 | POODLE_LOCOMO_GPIO_MUTE_L, 1); | 92 | POODLE_LOCOMO_GPIO_MUTE_L, 1); |
96 | locomo_gpio_write(&poodle_locomo_device.dev, | 93 | locomo_gpio_write(&poodle_locomo_device.dev, |
97 | POODLE_LOCOMO_GPIO_MUTE_R, 1); | 94 | POODLE_LOCOMO_GPIO_MUTE_R, 1); |
98 | return 0; | ||
99 | } | 95 | } |
100 | 96 | ||
101 | static int poodle_hw_params(struct snd_pcm_substream *substream, | 97 | static int poodle_hw_params(struct snd_pcm_substream *substream, |
@@ -232,7 +228,7 @@ static const struct soc_enum poodle_enum[] = { | |||
232 | SOC_ENUM_SINGLE_EXT(2, spk_function), | 228 | SOC_ENUM_SINGLE_EXT(2, spk_function), |
233 | }; | 229 | }; |
234 | 230 | ||
235 | static const snd_kcontrol_new_t wm8731_poodle_controls[] = { | 231 | static const struct snd_kcontrol_new wm8731_poodle_controls[] = { |
236 | SOC_ENUM_EXT("Jack Function", poodle_enum[0], poodle_get_jack, | 232 | SOC_ENUM_EXT("Jack Function", poodle_enum[0], poodle_get_jack, |
237 | poodle_set_jack), | 233 | poodle_set_jack), |
238 | SOC_ENUM_EXT("Speaker Function", poodle_enum[1], poodle_get_spk, | 234 | SOC_ENUM_EXT("Speaker Function", poodle_enum[1], poodle_get_spk, |