X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=sound%2Fsoc%2Fcodecs%2Frt5640.h;h=e96e9915230f7eac7cfabb04ab3ca5c93e96b93a;hb=2ae05321496aa27767bc33a5cc19451b3db67919;hp=a5d01e69edd2c769a261109826b9210c417a1aca;hpb=ef179e79e9b6f62da31fdc2a9662fd54b346b6f7;p=firefly-linux-kernel-4.4.55.git diff --git a/sound/soc/codecs/rt5640.h b/sound/soc/codecs/rt5640.h index a5d01e69edd2..e96e9915230f 100644 --- a/sound/soc/codecs/rt5640.h +++ b/sound/soc/codecs/rt5640.h @@ -2091,7 +2091,8 @@ struct rt5640_priv { struct rt5640_platform_data pdata; struct regmap *regmap; struct clk *mclk; - + struct work_struct work; + struct workqueue_struct *wq; int sysclk; int sysclk_src; int lrck[RT5640_AIFS]; @@ -2103,6 +2104,18 @@ struct rt5640_priv { int pll_out; bool hp_mute; + + struct delayed_work adc_poll_work; + struct iio_channel *chan; + int hp_det_adc_value; + bool hp_insert; + int hp_con_gpio; + bool hp_con_gpio_active_high; + struct delayed_work init_delayed_work; + struct delayed_work aux_det_work; + int aux_det_gpio; + int aux_det_irq; + struct snd_soc_jack hp_jack; }; int rt5640_dmic_enable(struct snd_soc_codec *codec,