projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb9b16
)
ASoC: qcom: sdm845: add jack support for WCD934x
author
Srinivas Kandagatla
<srinivas.kandagatla@linaro.org>
Fri, 4 Jun 2021 11:52:30 +0000
(12:52 +0100)
committer
Mark Brown
<broonie@kernel.org>
Fri, 4 Jun 2021 14:29:02 +0000
(15:29 +0100)
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>
sound/soc/qcom/sdm845.c
patch
|
blob
|
history
diff --git
a/sound/soc/qcom/sdm845.c
b/sound/soc/qcom/sdm845.c
index
153e9b2
..
0adfc57
100644
(file)
--- 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: