1. 05 Jan, 2022 6 commits
  2. 04 Jan, 2022 1 commit
  3. 31 Dec, 2021 11 commits
  4. 29 Dec, 2021 5 commits
  5. 24 Dec, 2021 15 commits
  6. 23 Dec, 2021 2 commits
    • Mark Brown's avatar
      ASoC: qcom: Parse "pin-switches" and "widgets" from DT · 2f15d3ce
      Mark Brown authored
      Merge series from Stephan Gerhold <stephan@gerhold.net>:
      
      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/
      2f15d3ce
    • Stephan Gerhold's avatar
      ASoC: msm8916-wcd-analog: Use separate outputs for HPH_L/HPH_R · 319a0533
      Stephan Gerhold authored
      The analog codec has separate output paths for the left headphone channel
      (HPH_L) and the right headphone channel (HPH_R). While they are usually
      used together for actual headphones output, some devices also have an
      analog speaker amplifier connected to one of the headphone channels.
      
      To allow modelling that properly (and to avoid powering on the unneeded
      output path), HPH_L and HPH_R should be represented by separate outputs
      rather than a shared HEADPHONE output that always activates both paths.
      
      Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
      Signed-off-by: default avatarStephan Gerhold <stephan@gerhold.net>
      Link: https://lore.kernel.org/r/20211214142049.20422-5-stephan@gerhold.netSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      319a0533