From: Mark Brown Date: Thu, 23 Dec 2021 19:38:13 +0000 (+0000) Subject: ASoC: qcom: Parse "pin-switches" and "widgets" from DT X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2f15d3cebd45f773a2e27cce84ca851164dd5acd;p=linux.git ASoC: qcom: Parse "pin-switches" and "widgets" from DT Merge series from Stephan Gerhold : Some sound card setups might require extra pin switches to allow turning off certain audio components. simple-card supports this already using the "pin-switches" and "widgets" device tree property. This series makes it possible to use the same properties for the Qcom sound cards. To implement that, the function that parses the "pin-switches" property in simple-card-utils.c is first moved into the ASoC core. Then two simple function calls are added to the common Qcom sound card DT parser. Finally there is a small patch for the msm8916-wcd-analog codec to make it possible to model sound card setups used in some MSM8916 smartphones. (See PATCH 2/4 for an explanation of some real example use cases.) Using pin switches rather than patching codec drivers with switches was originally suggested by Mark Brown on a patch for the tfa989x codec: https://lore.kernel.org/alsa-devel/YXaMVHo9drCIuD3u@sirena.org.uk/ --- 2f15d3cebd45f773a2e27cce84ca851164dd5acd