diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2011-02-14 10:20:22 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-02-15 16:53:59 -0500 |
commit | 178406195755293bf63799ae41ed0c92968ded8c (patch) | |
tree | 82e636463d076d6e3bcbcc3e4f653fa900280baa /sound/soc | |
parent | 31164c7cf1190729292126b2d6d27d792adfcec5 (diff) |
ASoC: omap: rx51: Report headset insertion instead of video out cable
It is more usefull to report headset instead of video out cable in response
to jack insertion as this is more usual use-case and because now the headset
feature is supported. Automatic accessory detection is not possible at the
moment so most sensible static accessory type have to be used.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/omap/rx51.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 9860018cc2e5..e28f089b38d6 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c | |||
@@ -240,7 +240,7 @@ static struct snd_soc_jack_gpio rx51_av_jack_gpios[] = { | |||
240 | { | 240 | { |
241 | .gpio = RX51_JACK_DETECT_GPIO, | 241 | .gpio = RX51_JACK_DETECT_GPIO, |
242 | .name = "avdet-gpio", | 242 | .name = "avdet-gpio", |
243 | .report = SND_JACK_VIDEOOUT, | 243 | .report = SND_JACK_HEADSET, |
244 | .invert = 1, | 244 | .invert = 1, |
245 | .debounce_time = 200, | 245 | .debounce_time = 200, |
246 | }, | 246 | }, |
@@ -331,7 +331,8 @@ static int rx51_aic34_init(struct snd_soc_pcm_runtime *rtd) | |||
331 | 331 | ||
332 | /* AV jack detection */ | 332 | /* AV jack detection */ |
333 | err = snd_soc_jack_new(codec, "AV Jack", | 333 | err = snd_soc_jack_new(codec, "AV Jack", |
334 | SND_JACK_VIDEOOUT, &rx51_av_jack); | 334 | SND_JACK_HEADSET | SND_JACK_VIDEOOUT, |
335 | &rx51_av_jack); | ||
335 | if (err) | 336 | if (err) |
336 | return err; | 337 | return err; |
337 | err = snd_soc_jack_add_gpios(&rx51_av_jack, | 338 | err = snd_soc_jack_add_gpios(&rx51_av_jack, |