diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-03-04 15:17:48 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-03-06 08:37:10 -0500 |
commit | a1b3eaeb146937e954cdb6dcb67f8761b73e2eef (patch) | |
tree | 7da0279408e45859c7b547721bd345db44ac14aa /sound/soc | |
parent | c36623a7543e7a23ceeafbeb7b34a9e020100898 (diff) |
ASoC: Refresh JIVE driver
Remove uneeded startup callback and use snd_soc_dapm_nc_pin()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/s3c24xx/jive_wm8750.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/sound/soc/s3c24xx/jive_wm8750.c b/sound/soc/s3c24xx/jive_wm8750.c index 7dfe26ea8f40..32063790d95b 100644 --- a/sound/soc/s3c24xx/jive_wm8750.c +++ b/sound/soc/s3c24xx/jive_wm8750.c | |||
@@ -45,20 +45,6 @@ static const struct snd_soc_dapm_widget wm8750_dapm_widgets[] = { | |||
45 | SND_SOC_DAPM_LINE("Line In", NULL), | 45 | SND_SOC_DAPM_LINE("Line In", NULL), |
46 | }; | 46 | }; |
47 | 47 | ||
48 | static int jive_startup(struct snd_pcm_substream *substream) | ||
49 | { | ||
50 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | ||
51 | struct snd_soc_codec *codec = rtd->socdev->codec; | ||
52 | |||
53 | snd_soc_dapm_enable_pin(codec, "Headphone Jack"); | ||
54 | snd_soc_dapm_enable_pin(codec, "Internal Speaker"); | ||
55 | snd_soc_dapm_enable_pin(codec, "Line In"); | ||
56 | |||
57 | snd_soc_dapm_sync(codec); | ||
58 | |||
59 | return 0; | ||
60 | } | ||
61 | |||
62 | static int jive_hw_params(struct snd_pcm_substream *substream, | 48 | static int jive_hw_params(struct snd_pcm_substream *substream, |
63 | struct snd_pcm_hw_params *params) | 49 | struct snd_pcm_hw_params *params) |
64 | { | 50 | { |
@@ -119,7 +105,6 @@ static int jive_hw_params(struct snd_pcm_substream *substream, | |||
119 | } | 105 | } |
120 | 106 | ||
121 | static struct snd_soc_ops jive_ops = { | 107 | static struct snd_soc_ops jive_ops = { |
122 | .startup = jive_startup, | ||
123 | .hw_params = jive_hw_params, | 108 | .hw_params = jive_hw_params, |
124 | }; | 109 | }; |
125 | 110 | ||
@@ -128,12 +113,12 @@ static int jive_wm8750_init(struct snd_soc_codec *codec) | |||
128 | int err; | 113 | int err; |
129 | 114 | ||
130 | /* These endpoints are not being used. */ | 115 | /* These endpoints are not being used. */ |
131 | snd_soc_dapm_disable_pin(codec, "LINPUT2"); | 116 | snd_soc_dapm_nc_pin(codec, "LINPUT2"); |
132 | snd_soc_dapm_disable_pin(codec, "RINPUT2"); | 117 | snd_soc_dapm_nc_pin(codec, "RINPUT2"); |
133 | snd_soc_dapm_disable_pin(codec, "LINPUT3"); | 118 | snd_soc_dapm_nc_pin(codec, "LINPUT3"); |
134 | snd_soc_dapm_disable_pin(codec, "RINPUT3"); | 119 | snd_soc_dapm_nc_pin(codec, "RINPUT3"); |
135 | snd_soc_dapm_disable_pin(codec, "OUT3"); | 120 | snd_soc_dapm_nc_pin(codec, "OUT3"); |
136 | snd_soc_dapm_disable_pin(codec, "MONO"); | 121 | snd_soc_dapm_nc_pin(codec, "MONO"); |
137 | 122 | ||
138 | /* Add jive specific widgets */ | 123 | /* Add jive specific widgets */ |
139 | err = snd_soc_dapm_new_controls(codec, wm8750_dapm_widgets, | 124 | err = snd_soc_dapm_new_controls(codec, wm8750_dapm_widgets, |