Bläddra i källkod

audio-kernel:mbhc: update jack api in mbhc driver

update jack api in mbhc driver.

Change-Id: I2f3d1b9f8a3e0178335ebaf101141e2ec7df21ce
Yuhui Zhao 2 år sedan
förälder
incheckning
c800c96b4c
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      asoc/codecs/wcd-mbhc-v2.c

+ 2 - 2
asoc/codecs/wcd-mbhc-v2.c

@@ -1964,7 +1964,7 @@ int wcd_mbhc_init(struct wcd_mbhc *mbhc, struct snd_soc_component *component,
 	if (mbhc->headset_jack.jack == NULL) {
 	if (mbhc->headset_jack.jack == NULL) {
 		ret = snd_soc_card_jack_new(component->card,
 		ret = snd_soc_card_jack_new(component->card,
 					    "Headset Jack", WCD_MBHC_JACK_MASK,
 					    "Headset Jack", WCD_MBHC_JACK_MASK,
-					    &mbhc->headset_jack, NULL, 0);
+					    &mbhc->headset_jack);
 		if (ret) {
 		if (ret) {
 			pr_err("%s: Failed to create new jack\n", __func__);
 			pr_err("%s: Failed to create new jack\n", __func__);
 			return ret;
 			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,
 		ret = snd_soc_card_jack_new(component->card,
 					    "Button Jack",
 					    "Button Jack",
 					    WCD_MBHC_JACK_BUTTON_MASK,
 					    WCD_MBHC_JACK_BUTTON_MASK,
-					    &mbhc->button_jack, NULL, 0);
+					    &mbhc->button_jack);
 		if (ret) {
 		if (ret) {
 			pr_err("Failed to create new jack\n");
 			pr_err("Failed to create new jack\n");
 			return ret;
 			return ret;