projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f97e0ea
)
ASoC: rx1950_uda1380: Register jacks at the card level
author
Lars-Peter Clausen
<lars@metafoo.de>
Wed, 4 Mar 2015 09:33:36 +0000
(10:33 +0100)
committer
Mark Brown
<broonie@kernel.org>
Wed, 4 Mar 2015 17:10:45 +0000
(17:10 +0000)
The jacks are card level elements so use snd_soc_card_jack_new() instead of
snd_soc_jack_new() to register them.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/rx1950_uda1380.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/samsung/rx1950_uda1380.c
b/sound/soc/samsung/rx1950_uda1380.c
index 873f2cb4bebe3e449d6d32821da672e0916626f0..35e37c457f1fd311ee982169010df6507939924d 100644
(file)
--- a/
sound/soc/samsung/rx1950_uda1380.c
+++ b/
sound/soc/samsung/rx1950_uda1380.c
@@
-211,13
+211,8
@@
static int rx1950_hw_params(struct snd_pcm_substream *substream,
static int rx1950_uda1380_init(struct snd_soc_pcm_runtime *rtd)
{
- struct snd_soc_codec *codec = rtd->codec;
-
- snd_soc_jack_new(codec, "Headphone Jack", SND_JACK_HEADPHONE,
- &hp_jack);
-
- snd_soc_jack_add_pins(&hp_jack, ARRAY_SIZE(hp_jack_pins),
- hp_jack_pins);
+ snd_soc_card_jack_new(rtd->card, "Headphone Jack", SND_JACK_HEADPHONE,
+ &hp_jack, hp_jack_pins, ARRAY_SIZE(hp_jack_pins));
snd_soc_jack_add_gpios(&hp_jack, ARRAY_SIZE(hp_jack_gpios),
hp_jack_gpios);