ASoC: wcd937x: Add fix to enable button detection
Add notifier call chain to enable button detection. Change-Id: Ibd432691e4b820b8b2e86ebc8e8c2015bb26d2b1 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
@@ -972,7 +972,7 @@ int wcd937x_mbhc_post_ssr_init(struct wcd937x_mbhc *mbhc,
|
||||
|
||||
wcd_mbhc_deinit(wcd_mbhc);
|
||||
ret = wcd_mbhc_init(wcd_mbhc, codec, &mbhc_cb, &intr_ids,
|
||||
wcd_mbhc_registers, WCD937X_ZDET_SUPPORTED);
|
||||
wcd_mbhc_registers, false);
|
||||
if (ret) {
|
||||
dev_err(codec->dev, "%s: mbhc initialization failed\n",
|
||||
__func__);
|
||||
@@ -1024,7 +1024,7 @@ int wcd937x_mbhc_init(struct wcd937x_mbhc **mbhc, struct snd_soc_codec *codec,
|
||||
|
||||
ret = wcd_mbhc_init(wcd_mbhc, codec, &mbhc_cb,
|
||||
&intr_ids, wcd_mbhc_registers,
|
||||
WCD937X_ZDET_SUPPORTED);
|
||||
false);
|
||||
if (ret) {
|
||||
dev_err(codec->dev, "%s: mbhc initialization failed\n",
|
||||
__func__);
|
||||
|
Reference in New Issue
Block a user