diff options
| -rw-r--r-- | sound/soc/pxa/z2.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sound/soc/pxa/z2.c b/sound/soc/pxa/z2.c index e8f15ce83749..76ccb172d0a7 100644 --- a/sound/soc/pxa/z2.c +++ b/sound/soc/pxa/z2.c | |||
| @@ -112,7 +112,7 @@ static const struct snd_soc_dapm_widget wm8750_dapm_widgets[] = { | |||
| 112 | }; | 112 | }; |
| 113 | 113 | ||
| 114 | /* Z2 machine audio_map */ | 114 | /* Z2 machine audio_map */ |
| 115 | static const struct snd_soc_dapm_route audio_map[] = { | 115 | static const struct snd_soc_dapm_route z2_audio_map[] = { |
| 116 | 116 | ||
| 117 | /* headphone connected to LOUT1, ROUT1 */ | 117 | /* headphone connected to LOUT1, ROUT1 */ |
| 118 | {"Headphone Jack", NULL, "LOUT1"}, | 118 | {"Headphone Jack", NULL, "LOUT1"}, |
| @@ -142,13 +142,6 @@ static int z2_wm8750_init(struct snd_soc_pcm_runtime *rtd) | |||
| 142 | snd_soc_dapm_disable_pin(dapm, "OUT3"); | 142 | snd_soc_dapm_disable_pin(dapm, "OUT3"); |
| 143 | snd_soc_dapm_disable_pin(dapm, "MONO1"); | 143 | snd_soc_dapm_disable_pin(dapm, "MONO1"); |
| 144 | 144 | ||
| 145 | /* Add z2 specific widgets */ | ||
| 146 | snd_soc_dapm_new_controls(dapm, wm8750_dapm_widgets, | ||
| 147 | ARRAY_SIZE(wm8750_dapm_widgets)); | ||
| 148 | |||
| 149 | /* Set up z2 specific audio paths */ | ||
| 150 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); | ||
| 151 | |||
| 152 | /* Jack detection API stuff */ | 145 | /* Jack detection API stuff */ |
| 153 | ret = snd_soc_jack_new(codec, "Headset Jack", SND_JACK_HEADSET, | 146 | ret = snd_soc_jack_new(codec, "Headset Jack", SND_JACK_HEADSET, |
| 154 | &hs_jack); | 147 | &hs_jack); |
| @@ -195,6 +188,11 @@ static struct snd_soc_card snd_soc_z2 = { | |||
| 195 | .owner = THIS_MODULE, | 188 | .owner = THIS_MODULE, |
| 196 | .dai_link = &z2_dai, | 189 | .dai_link = &z2_dai, |
| 197 | .num_links = 1, | 190 | .num_links = 1, |
| 191 | |||
| 192 | .dapm_widgets = wm8750_dapm_widgets, | ||
| 193 | .num_dapm_widgets = ARRAY_SIZE(wm8750_dapm_widgets), | ||
| 194 | .dapm_routes = z2_audio_map, | ||
| 195 | .num_dapm_routes = ARRAY_SIZE(z2_audio_map), | ||
| 198 | }; | 196 | }; |
| 199 | 197 | ||
| 200 | static struct platform_device *z2_snd_device; | 198 | static struct platform_device *z2_snd_device; |
