]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: core: Add snd_soc_of_parse_pin_switches() from simple-card-utils
authorStephan Gerhold <stephan@gerhold.net>
Tue, 14 Dec 2021 14:20:46 +0000 (15:20 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 23 Dec 2021 18:34:23 +0000 (18:34 +0000)
commit3d4641a42ccf1593b3f3a474ee7541727acbb8e0
treefe32898bf6ff2098e4ac6d58601ea3b2fca617f5
parent8102d8cd8f26117a7d74142878b4efe7fdeda6cf
ASoC: core: Add snd_soc_of_parse_pin_switches() from simple-card-utils

The ASoC core already has several helpers to parse card properties
from the device tree. Move the parsing code for "pin-switches" from
simple-card-utils to a shared snd_soc_of_parse_pin_switches() function
so other drivers can also use it to set up pin switches configured in
the device tree.

Cc: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20211214142049.20422-2-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/generic/simple-card-utils.c
sound/soc/soc-core.c