[lkml]   [2016]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[RFC v1 0/9] ASoC: Add support to Qualcomm msm8x16-wcd codec
This patchset aims at adding msm8x16-wcd codec support.
msm8x16-wcd codec is found in Qualcomm msm8916 and apq8016 processors.
This codec IP is split in to two parts(Digital & Analog), Analog part
is integrated in to PMIC PM8916 and the digital part is integrated into
Application processor. Register access to the analog part is done via
SPMI interface to PMIC, and registers on the Application processor are
memory mapped. Data transfer between Analog and Digital Die is done via
a internal bus called PDM.

I did split the driver into sensible patches to easy the review process.
Most of this driver is ported from downstream Andriod v3.10 kernel.
Jack support and Headset button detection code is not added in to this series.

This codec support:
- 3 Microphones: Primary Mic(Handset mic), Headset Mic and Secondary Mic.
- 2 Digital Microphones.
- 2 Mic Bias Circuits.
- Earpiece
- Headset
- Loud Speaker.
- Jack Detect.
- Headset Button detection circuit.

Tested this code on v4.5-rc4 with lpass driver capture support patches for
Headset (Mic and speakers), Secondary Mic and Loudspeaker on DB410C.
DMIC should work too.


Srinivas Kandagatla (9):
ASoC: msm8x176: Add Device Tree bindings.
ASoC: msm8x16: add driver structure
ASoC: msm8x16: add codec registers definitions
ASoC: msm8x16: add ranges for default, readonly
ASoC: msm8x16: add codec intialization setup
ASoC: msm8x16: add codec dais
ASoC: msm8x16: Add sound mixer controls.
ASoC: msm8x16: add dapm widgets
ASoC: msm8x16: add dapm routes

.../devicetree/bindings/sound/qcom,msm8x16-wcd.txt | 91 +
include/dt-bindings/sound/msm8x16-wcd.h | 7 +
sound/soc/codecs/Kconfig | 4 +
sound/soc/codecs/Makefile | 3 +-
sound/soc/codecs/msm8x16-wcd-registers.h | 518 +++++
sound/soc/codecs/msm8x16-wcd.c | 2132 ++++++++++++++++++++
sound/soc/codecs/msm8x16-wcd.h | 764 +++++++
7 files changed, 3518 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/sound/qcom,msm8x16-wcd.txt
create mode 100644 include/dt-bindings/sound/msm8x16-wcd.h
create mode 100644 sound/soc/codecs/msm8x16-wcd-registers.h
create mode 100644 sound/soc/codecs/msm8x16-wcd.c
create mode 100644 sound/soc/codecs/msm8x16-wcd.h


 \ /
  Last update: 2016-02-16 19:41    [W:0.093 / U:4.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site