diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-07-27 17:16:22 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:51:56 +0900 |
commit | 2888c529612b37d648e9aadf3995813bab985bb7 (patch) | |
tree | 61be61d395eeced2e9cc797f48aff4cca88f5541 /sound | |
parent | 38ce20b047fe5f10f288e95b2c9febc36d67adb6 (diff) |
ASoC: ymu831: replace snd_soc_jack_new() to snd_soc_card_jack_new()
After mainline commit "77c7176 ASoC: Remove snd_soc_jack_new()",
snd_soc_jack_new() should be replaced with snd_soc_card_jack_new().
This patch fixes following build error:
sound/soc/codecs/ymu831/ymu831.c:8525:54: note: each undeclared identifier is reported only once for each function it appears in
sound/soc/codecs/ymu831/ymu831.c: In function 'mc_asoc_probe':
sound/soc/codecs/ymu831/ymu831.c:8787:2: error: implicit declaration of function 'snd_soc_jack_new' [-Werror=implicit-function-declaration]
snd_soc_jack_new(codec, "Headset",
^
Change-Id: Ic043abca5a0dc55eacaf60830b760b95d06551cf
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/ymu831/ymu831.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/ymu831/ymu831.c b/sound/soc/codecs/ymu831/ymu831.c index 49bcf8721312..a98ed220adc4 100644 --- a/sound/soc/codecs/ymu831/ymu831.c +++ b/sound/soc/codecs/ymu831/ymu831.c @@ -8784,9 +8784,9 @@ static int mc_asoc_probe( #endif /* Headset jack detection */ - snd_soc_jack_new(codec, "Headset", + snd_soc_card_jack_new(codec->component.card, "Headset", SND_JACK_HEADSET|SND_JACK_BTN_0|SND_JACK_BTN_1|SND_JACK_BTN_2, - &hs_jack); + &hs_jack, NULL, 0); snd_jack_set_key(hs_jack.jack, SND_JACK_BTN_0, KEY_MEDIA); snd_jack_set_key(hs_jack.jack, SND_JACK_BTN_1, KEY_VOLUMEUP); |