Search
SailfishOS Open Build Service
>
Projects
>
home:dcthang:branches:nemo:devel:hw:ti:omap3:n900
>
kernel-adaptation-n900
> linux-2.6-ASoC-omap-rx51-Report-headset-instead-of-video-out-i.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File linux-2.6-ASoC-omap-rx51-Report-headset-instead-of-video-out-i.patch of Package kernel-adaptation-n900
From e69a578a194d23340a6323991c3bc4942518c2be Mon Sep 17 00:00:00 2001 From: ext Jarkko Nikula <jhnikula@gmail.com> Date: Tue, 7 Dec 2010 11:50:33 +0100 Subject: [PATCH 23/42] ASoC: omap: rx51: Report headset instead of video out in MeeGo kernel In MeeGo version of RX51/N900 audio drivers it's more usefull to report headset instead of video out cable in response to jack insertion. There is no automatic accessory detection either in MeeGo or upstream version so a static accessory type have to be used. Upstream is using the video out as it is the best supported jack feature at the moment but MeeGo variant can support also headphones and headsets. Report headset insertion in MeeGo as this is more usual use-case than video out cable. It's expected that the same will be done in upstream as well when the necessary ASoC core changes are done that make possible to support N900 audio output. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com> --- sound/soc/omap/rx51.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 8f13092..6a4a894 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c @@ -281,7 +281,7 @@ static struct snd_soc_jack_gpio rx51_av_jack_gpios[] = { { .gpio = RX51_JACK_DETECT_GPIO, .name = "avdet-gpio", - .report = SND_JACK_VIDEOOUT, + .report = SND_JACK_HEADSET, .invert = 1, .debounce_time = 200, }, @@ -378,7 +378,7 @@ static int rx51_aic34_init(struct snd_soc_pcm_runtime *rtd) /* AV jack detection */ err = snd_soc_jack_new(codec, "AV Jack", - SND_JACK_VIDEOOUT, &rx51_av_jack); + SND_JACK_HEADSET, &rx51_av_jack); if (err) return err; err = snd_soc_jack_add_gpios(&rx51_av_jack, -- 1.7.0.4