]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: codec: wcd938x: Update CTIA/OMTP switch control
authorSrinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Wed, 16 Feb 2022 13:24:52 +0000 (18:54 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 16 Feb 2022 16:34:21 +0000 (16:34 +0000)
commitdb0b4aedfab396a6fe631f5c3bb34319770f0581
tree627b3ab1e0eb5e516709bc60cbebd36d7b2f1445
parentf7d344a2bd5ec81fbd1ce76928fd059e57ec9bea
ASoC: codec: wcd938x: Update CTIA/OMTP switch control

Convert gpio api's to gpio descriptor api's in CTIA/OMTP switch control.
Remove redundant NULL checks in swap_gnd_mic function.

Fixes: 013cc2aea0f6 ("ASoC: codec: wcd938x: Add switch control for selecting CTIA/OMTP Headset")
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Link: https://lore.kernel.org/r/1645017892-12522-1-git-send-email-quic_srivasam@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd938x.c