diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2021-06-04 13:52:30 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-04 16:29:02 +0200 |
commit | c15d4b72098ca3055d98ce0d66127fe37a6a6361 (patch) | |
tree | ce9a11a97583e48a8cd438d2f158cba62726f143 /sound/soc/qcom/sdm845.c | |
parent | ASoC: codecs: wcd934x: add mbhc support (diff) | |
download | linux-c15d4b72098ca3055d98ce0d66127fe37a6a6361.tar.xz linux-c15d4b72098ca3055d98ce0d66127fe37a6a6361.zip |
ASoC: qcom: sdm845: add jack support for WCD934x
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210604115230.23259-5-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/sdm845.c')
-rw-r--r-- | sound/soc/qcom/sdm845.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c index 153e9b2de0b5..0adfc5708949 100644 --- a/sound/soc/qcom/sdm845.c +++ b/sound/soc/qcom/sdm845.c @@ -288,6 +288,14 @@ static int sdm845_dai_init(struct snd_soc_pcm_runtime *rtd) snd_soc_dai_set_sysclk(codec_dai, 0, WCD934X_DEFAULT_MCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK); + + rval = snd_soc_component_set_jack(codec_dai->component, + &pdata->jack, NULL); + if (rval != 0 && rval != -ENOTSUPP) { + dev_warn(card->dev, "Failed to set jack: %d\n", rval); + return rval; + } + } break; default: |