mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/1] Expose ALSA control for jack
@ 2023-03-25 14:21 Dylan Van Assche
  2023-03-25 14:21 ` [PATCH v3 1/1] sound: soc: codecs: wcd-mbhc-v2: expose " Dylan Van Assche
  2023-03-25 18:02 ` [PATCH v3 0/1] Expose " Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Dylan Van Assche @ 2023-03-25 14:21 UTC (permalink / raw)
  To: Banajit Goswami, Jaroslav Kysela, Takashi Iwai
  Cc: Srinivas Kandagatla, Liam Girdwood, Mark Brown, alsa-devel,
	linux-kernel, ~postmarketos/upstreaming, phone-devel,
	Dylan Van Assche

Qualcomm SDM845 features a headphone jack via a Qualcomm WCD9340
codec which has jack detection through the wcd-mbhc-v2 driver.

ALSA features 2 ways to expose jack detection from the kernel to
userspace either as an input device or through an ALSA control.
The wcd-mbhc-v2 driver only supports the first option which is
insufficient for userspace programs e.g. PulseAudio [1].
Therefore, ALSA clients such as PulseAudio do not pick up the 
jack detection events as they only support one of the possible 
interface (ALSA control or input interface, but not both). 
Expose the jack events as an ALSA control and input interface 
to provide ALSA clients both interfaces.

[1] https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1377

Changes in v3:

- Improved cover letter
- Added Tested-by from
https://lore.kernel.org/alsa-devel/20221007155716.10594-1-me@dylanvanassche.be/
- Properly added maintainers for sending this patch

Kind regards,
Dylan Van Assche

Dylan Van Assche (1):
  sound: soc: codecs: wcd-mbhc-v2: expose ALSA control for jack

 sound/soc/codecs/wcd-mbhc-v2.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-25 18:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-25 14:21 [PATCH v3 0/1] Expose ALSA control for jack Dylan Van Assche
2023-03-25 14:21 ` [PATCH v3 1/1] sound: soc: codecs: wcd-mbhc-v2: expose " Dylan Van Assche
2023-03-25 18:12   ` Mark Brown
2023-03-25 18:02 ` [PATCH v3 0/1] Expose " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®