Lines Matching refs:da7219
33 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_jack_det() local
35 da7219->aad->jack = jack; in da7219_aad_jack_det()
36 da7219->aad->jack_inserted = false; in da7219_aad_jack_det()
57 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_btn_det_work() local
85 da7219->micbias_on_event = true; in da7219_aad_btn_det_work()
113 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_hptest_work() local
121 mutex_lock(&da7219->ctrl_lock); in da7219_aad_hptest_work()
122 mutex_lock(&da7219->pll_lock); in da7219_aad_hptest_work()
125 if (da7219->mclk) { in da7219_aad_hptest_work()
126 ret = clk_prepare_enable(da7219->mclk); in da7219_aad_hptest_work()
129 mutex_unlock(&da7219->pll_lock); in da7219_aad_hptest_work()
130 mutex_unlock(&da7219->ctrl_lock); in da7219_aad_hptest_work()
160 regcache_cache_bypass(da7219->regmap, true); in da7219_aad_hptest_work()
239 regmap_raw_write(da7219->regmap, DA7219_TONE_GEN_FREQ1_L, in da7219_aad_hptest_work()
262 regcache_mark_dirty(da7219->regmap); in da7219_aad_hptest_work()
263 regcache_sync_region(da7219->regmap, DA7219_HP_L_CTRL, in da7219_aad_hptest_work()
266 regcache_sync_region(da7219->regmap, DA7219_MIXOUT_L_CTRL, in da7219_aad_hptest_work()
268 regcache_sync_region(da7219->regmap, DA7219_DROUTING_ST_OUTFILT_1L, in da7219_aad_hptest_work()
270 regcache_sync_region(da7219->regmap, DA7219_MIXOUT_L_SELECT, in da7219_aad_hptest_work()
272 regcache_sync_region(da7219->regmap, DA7219_DAC_L_CTRL, in da7219_aad_hptest_work()
274 regcache_sync_region(da7219->regmap, DA7219_DIG_ROUTING_DAC, in da7219_aad_hptest_work()
276 regcache_sync_region(da7219->regmap, DA7219_CP_CTRL, DA7219_CP_CTRL); in da7219_aad_hptest_work()
277 regcache_sync_region(da7219->regmap, DA7219_DAC_FILTERS5, in da7219_aad_hptest_work()
279 regcache_sync_region(da7219->regmap, DA7219_DAC_FILTERS4, in da7219_aad_hptest_work()
281 regcache_sync_region(da7219->regmap, DA7219_HP_L_GAIN, in da7219_aad_hptest_work()
283 regcache_sync_region(da7219->regmap, DA7219_DAC_L_GAIN, in da7219_aad_hptest_work()
285 regcache_sync_region(da7219->regmap, DA7219_TONE_GEN_ON_PER, in da7219_aad_hptest_work()
287 regcache_sync_region(da7219->regmap, DA7219_TONE_GEN_FREQ1_L, in da7219_aad_hptest_work()
289 regcache_sync_region(da7219->regmap, DA7219_TONE_GEN_CFG1, in da7219_aad_hptest_work()
292 regcache_cache_bypass(da7219->regmap, false); in da7219_aad_hptest_work()
320 if (da7219->mclk) in da7219_aad_hptest_work()
321 clk_disable_unprepare(da7219->mclk); in da7219_aad_hptest_work()
323 mutex_unlock(&da7219->pll_lock); in da7219_aad_hptest_work()
324 mutex_unlock(&da7219->ctrl_lock); in da7219_aad_hptest_work()
355 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_irq_thread() local
361 ret = regmap_bulk_read(da7219->regmap, DA7219_ACCDET_IRQ_EVENT_A, in da7219_aad_irq_thread()
387 regmap_bulk_write(da7219->regmap, DA7219_ACCDET_IRQ_EVENT_A, in da7219_aad_irq_thread()
475 da7219->micbias_on_event = false; in da7219_aad_irq_thread()
765 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_handle_pdata() local
766 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_handle_pdata()
767 struct da7219_pdata *pdata = da7219->pdata; in da7219_aad_handle_pdata()
898 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_handle_gnd_switch_time() local
899 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_handle_gnd_switch_time()
929 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_suspend() local
930 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_suspend()
963 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_resume() local
964 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_resume()
992 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_init() local
993 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_init()
1029 regmap_bulk_write(da7219->regmap, DA7219_ACCDET_IRQ_MASK_A, in da7219_aad_init()
1037 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_exit() local
1038 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_exit()
1043 regmap_bulk_write(da7219->regmap, DA7219_ACCDET_IRQ_MASK_A, in da7219_aad_exit()
1060 struct da7219_priv *da7219 = i2c_get_clientdata(i2c); in da7219_aad_probe() local
1068 da7219->aad = da7219_aad; in da7219_aad_probe()
1071 if (da7219->pdata && !da7219->pdata->aad_pdata) in da7219_aad_probe()
1072 da7219->pdata->aad_pdata = da7219_aad_fw_to_pdata(dev); in da7219_aad_probe()