From 63dd54521f1d143fbc6584ace66ef264a7f867f7 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Thu, 22 Nov 2012 20:44:32 +0900 Subject: ASoC: wm8994: Support custom accessory identification for WM1811A Allow the user to override the accessory identification code with their own implementation if the system provides an alternative method. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8994.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sound/soc/codecs/wm8994.h') diff --git a/sound/soc/codecs/wm8994.h b/sound/soc/codecs/wm8994.h index f5546f242ab1..1a6bb4ed08f8 100644 --- a/sound/soc/codecs/wm8994.h +++ b/sound/soc/codecs/wm8994.h @@ -39,12 +39,12 @@ enum wm8994_vmid_mode { WM8994_VMID_FORCE, }; -typedef void (*wm8958_micdet_cb)(u16 status, void *data); +typedef void (*wm1811_micdet_cb)(void *data); int wm8994_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack, int micbias); int wm8958_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack, - wm8958_micdet_cb cb, void *cb_data); + wm1811_micdet_cb cb, void *cb_data); int wm8994_vmid_mode(struct snd_soc_codec *codec, enum wm8994_vmid_mode mode); @@ -138,6 +138,8 @@ struct wm8994_priv { struct delayed_work jackdet_bootstrap; int micdet_irq; + wm1811_micdet_cb micd_cb; + void *micd_cb_data; int revision; -- cgit