summaryrefslogtreecommitdiff
path: root/sound/soc/samsung/rx1950_uda1380.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2015-04-08 23:09:54 +0300
committerMark Brown <broonie@kernel.org>2015-04-08 23:09:54 +0300
commitc77dc2c203908fe03582770b016ffc7c84242939 (patch)
treec85e844917bb40dbc9f9dc19cdc10af87f5624ea /sound/soc/samsung/rx1950_uda1380.c
parent012baec5c1eaab7ad98b461eb7afae2faf79dbea (diff)
parent77c71765ef78f87dd901fcb4c751908e835a3b2e (diff)
downloadlinux-c77dc2c203908fe03582770b016ffc7c84242939.tar.xz
Merge branch 'topic/jack' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-tegra
Diffstat (limited to 'sound/soc/samsung/rx1950_uda1380.c')
-rw-r--r--sound/soc/samsung/rx1950_uda1380.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sound/soc/samsung/rx1950_uda1380.c b/sound/soc/samsung/rx1950_uda1380.c
index 873f2cb4bebe..35e37c457f1f 100644
--- 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);