]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SDCA: Factor out jack handling into new c file
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 15 Dec 2025 15:36:47 +0000 (15:36 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2025 09:00:56 +0000 (09:00 +0000)
commit3addd63d1fba8d9013e00b06d9420e39271c0c4e
tree7bacd47eddab684fff2afa92b008f365e9d4229b
parent9448598b22c50c8a5bb77a9103e2d49f134c9578
ASoC: SDCA: Factor out jack handling into new c file

The jack code is perhaps a bit large for being in the interrupt
code directly. Improve the encapsulation by factoring out the
jack handling code into a new c file, as is already done for HID
and FDL. Whilst doing so also add a jack_state structure to hold
the jack state for improved expandability in the future.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20251215153650.3913117-2-ckeepax@opensource.cirrus.com
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sdca_jack.h [new file with mode: 0644]
sound/soc/sdca/Makefile
sound/soc/sdca/sdca_interrupts.c
sound/soc/sdca/sdca_jack.c [new file with mode: 0644]