audio-kernel:mbhc: update jack api in mbhc driver
update jack api in mbhc driver. Change-Id: I2f3d1b9f8a3e0178335ebaf101141e2ec7df21ce
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
f216366d83
commit
c800c96b4c
@@ -1964,7 +1964,7 @@ int wcd_mbhc_init(struct wcd_mbhc *mbhc, struct snd_soc_component *component,
|
||||
if (mbhc->headset_jack.jack == NULL) {
|
||||
ret = snd_soc_card_jack_new(component->card,
|
||||
"Headset Jack", WCD_MBHC_JACK_MASK,
|
||||
&mbhc->headset_jack, NULL, 0);
|
||||
&mbhc->headset_jack);
|
||||
if (ret) {
|
||||
pr_err("%s: Failed to create new jack\n", __func__);
|
||||
return ret;
|
||||
@@ -1973,7 +1973,7 @@ int wcd_mbhc_init(struct wcd_mbhc *mbhc, struct snd_soc_component *component,
|
||||
ret = snd_soc_card_jack_new(component->card,
|
||||
"Button Jack",
|
||||
WCD_MBHC_JACK_BUTTON_MASK,
|
||||
&mbhc->button_jack, NULL, 0);
|
||||
&mbhc->button_jack);
|
||||
if (ret) {
|
||||
pr_err("Failed to create new jack\n");
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user