diff options
author | Mark Brown <broonie@kernel.org> | 2015-03-17 12:16:27 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-17 12:16:27 +0000 |
commit | 3ee5990d0835d5f10c9aad2a856860a213df638a (patch) | |
tree | 573fb14e6abc12cb3e9e690702d425da41a90b95 /sound/soc/intel/broadwell.c | |
parent | 275ed3a195fa923a2f075a7b48a81f8f0c405f68 (diff) | |
parent | 77c71765ef78f87dd901fcb4c751908e835a3b2e (diff) |
Merge branch 'topic/jack' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-intel
Diffstat (limited to 'sound/soc/intel/broadwell.c')
-rw-r--r-- | sound/soc/intel/broadwell.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sound/soc/intel/broadwell.c b/sound/soc/intel/broadwell.c index af5d73070f60..6c75b6bd0049 100644 --- a/sound/soc/intel/broadwell.c +++ b/sound/soc/intel/broadwell.c @@ -80,15 +80,9 @@ static int broadwell_rt286_codec_init(struct snd_soc_pcm_runtime *rtd) { struct snd_soc_codec *codec = rtd->codec; int ret = 0; - ret = snd_soc_jack_new(codec, "Headset", - SND_JACK_HEADSET | SND_JACK_BTN_0, &broadwell_headset); - - if (ret) - return ret; - - ret = snd_soc_jack_add_pins(&broadwell_headset, - ARRAY_SIZE(broadwell_headset_pins), - broadwell_headset_pins); + ret = snd_soc_card_jack_new(rtd->card, "Headset", + SND_JACK_HEADSET | SND_JACK_BTN_0, &broadwell_headset, + broadwell_headset_pins, ARRAY_SIZE(broadwell_headset_pins)); if (ret) return ret; |