arm64: dts: qcom: msm8916-huawei-g7: Add sound card
authorStephan Gerhold <stephan@gerhold.net>
Sun, 10 Apr 2022 19:51:13 +0000 (21:51 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 12 Apr 2022 19:28:22 +0000 (14:28 -0500)
commit372c1c3dd709700bdec6c0d377363783fc7c1618
treef0589fbc9a2af6ee43ac400ee34538836fd7bf45
parentd317344d6e5ecc8cfa90463e801f9ec60bb4ef50
arm64: dts: qcom: msm8916-huawei-g7: Add sound card

The huawei-g7 uses the msm8916-wcd-digital/analog audio codecs similar
to apq8016-sbc, so we can mostly copy paste it from there to make audio
work correctly. The main difference is the hphl-jack-type-normally-open
property, which is needed to avoid inverted audio jack detection.

Note that at least on my device the jack detection is not fully
reliable: sometimes headphones are detected as headsets (with
microphone). However, this is not a big problem for typical usage.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220410195113.13646-3-stephan@gerhold.net
arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts