summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorHongyang Zhao <hongyang.zhao@thundersoft.com>2026-09-04 18:02:27 +0800
committerMark Brown <broonie@kernel.org>2026-09-24 20:06:51 +0100
commit7f8dd07370f8c17f8f98f0fa98691635828b0dac (patch)
treec8b0aa2c03ce38c7f839c0cc9de3068b1df34de8 /scripts/Makefile.thinlto
parentf6a447b32a3995c09ffca38a9b3adb9bf833cf50 (diff)
downloadlinux-7f8dd07370f8c17f8f98f0fa98691635828b0dac.tar.gz
linux-7f8dd07370f8c17f8f98f0fa98691635828b0dac.zip
ASoC: qcom: common: Add generic headset jack helpers
qcom_snd_wcd_jack_setup() combines creation of the card-level headset jack with the WCD-specific operation of attaching jack detection to codecs on the TX codec DMA links. External codecs connected over MI2S also provide component jack detection, but cannot use the WCD-specific DAI filtering. Factor the common jack allocation, DAPM pin registration and headset button mappings into a private initializer. Reuse it from the existing WCD path and add a generic setup helper which attaches the jack to every codec component in a runtime. Treat -ENOTSUPP as a no-op because snd_soc_component_set_jack() uses it for components which do not provide a set_jack callback. Add a matching cleanup helper so machine drivers can detach component jack detection when the DAI link exits. The WCD setup behavior remains unchanged. Signed-off-by: Hongyang Zhao <hongyang.zhao@thundersoft.com> Link: https://patch.msgid.link/20260904-rubikpi-next-20260605-v3-3-f49146d85af3@thundersoft.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions