ASoC: qcom: qdsp6: Add headphone jack for offload connection status
authorWesley Cheng <quic_wcheng@quicinc.com>
Wed, 9 Apr 2025 19:47:58 +0000 (12:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 11:02:32 +0000 (13:02 +0200)
commit1b8d0d87b934f002a06a8ec2abfe907bd12e8cd4
tree3631dc626fffedea0b54e60323cdfb3536246405
parent72b0b8b2998043c50b191d9668c7a828ca0d5c70
ASoC: qcom: qdsp6: Add headphone jack for offload connection status

The headphone jack framework has a well defined infrastructure for
notifying userspace entities through input devices.  Expose a jack device
that carries information about if an offload capable device is connected.
Applications can further identify specific offloading information through
other SND kcontrols.

Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250409194804.3773260-26-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/qcom/Kconfig
sound/soc/qcom/Makefile
sound/soc/qcom/qdsp6/q6usb.c
sound/soc/qcom/sm8250.c
sound/soc/qcom/usb_offload_utils.c [new file with mode: 0644]
sound/soc/qcom/usb_offload_utils.h [new file with mode: 0644]