Lines Matching refs:aad_pdata

665 	struct da7219_aad_pdata *aad_pdata;  in da7219_aad_fw_to_pdata()  local
673 aad_pdata = devm_kzalloc(dev, sizeof(*aad_pdata), GFP_KERNEL); in da7219_aad_fw_to_pdata()
674 if (!aad_pdata) { in da7219_aad_fw_to_pdata()
679 aad_pdata->irq = i2c->irq; in da7219_aad_fw_to_pdata()
683 aad_pdata->micbias_pulse_lvl = in da7219_aad_fw_to_pdata()
686 aad_pdata->micbias_pulse_lvl = DA7219_AAD_MICBIAS_PULSE_LVL_OFF; in da7219_aad_fw_to_pdata()
690 aad_pdata->micbias_pulse_time = fw_val32; in da7219_aad_fw_to_pdata()
693 aad_pdata->btn_cfg = da7219_aad_fw_btn_cfg(dev, fw_val32); in da7219_aad_fw_to_pdata()
695 aad_pdata->btn_cfg = DA7219_AAD_BTN_CFG_10MS; in da7219_aad_fw_to_pdata()
698 aad_pdata->mic_det_thr = in da7219_aad_fw_to_pdata()
701 aad_pdata->mic_det_thr = DA7219_AAD_MIC_DET_THR_200_OHMS; in da7219_aad_fw_to_pdata()
704 aad_pdata->jack_ins_deb = in da7219_aad_fw_to_pdata()
707 aad_pdata->jack_ins_deb = DA7219_AAD_JACK_INS_DEB_20MS; in da7219_aad_fw_to_pdata()
710 aad_pdata->jack_ins_det_pty = in da7219_aad_fw_to_pdata()
713 aad_pdata->jack_ins_det_pty = DA7219_AAD_JACK_INS_DET_PTY_LOW; in da7219_aad_fw_to_pdata()
716 aad_pdata->jack_det_rate = in da7219_aad_fw_to_pdata()
719 aad_pdata->jack_det_rate = DA7219_AAD_JACK_DET_RATE_256_512MS; in da7219_aad_fw_to_pdata()
722 aad_pdata->jack_rem_deb = in da7219_aad_fw_to_pdata()
725 aad_pdata->jack_rem_deb = DA7219_AAD_JACK_REM_DEB_1MS; in da7219_aad_fw_to_pdata()
728 aad_pdata->a_d_btn_thr = (u8) fw_val32; in da7219_aad_fw_to_pdata()
730 aad_pdata->a_d_btn_thr = 0xA; in da7219_aad_fw_to_pdata()
733 aad_pdata->d_b_btn_thr = (u8) fw_val32; in da7219_aad_fw_to_pdata()
735 aad_pdata->d_b_btn_thr = 0x16; in da7219_aad_fw_to_pdata()
738 aad_pdata->b_c_btn_thr = (u8) fw_val32; in da7219_aad_fw_to_pdata()
740 aad_pdata->b_c_btn_thr = 0x21; in da7219_aad_fw_to_pdata()
743 aad_pdata->c_mic_btn_thr = (u8) fw_val32; in da7219_aad_fw_to_pdata()
745 aad_pdata->c_mic_btn_thr = 0x3E; in da7219_aad_fw_to_pdata()
748 aad_pdata->btn_avg = da7219_aad_fw_btn_avg(dev, fw_val32); in da7219_aad_fw_to_pdata()
750 aad_pdata->btn_avg = DA7219_AAD_BTN_AVG_2; in da7219_aad_fw_to_pdata()
753 aad_pdata->adc_1bit_rpt = in da7219_aad_fw_to_pdata()
756 aad_pdata->adc_1bit_rpt = DA7219_AAD_ADC_1BIT_RPT_1; in da7219_aad_fw_to_pdata()
760 return aad_pdata; in da7219_aad_fw_to_pdata()
769 if ((pdata) && (pdata->aad_pdata)) { in da7219_aad_handle_pdata()
770 struct da7219_aad_pdata *aad_pdata = pdata->aad_pdata; in da7219_aad_handle_pdata() local
773 da7219_aad->irq = aad_pdata->irq; in da7219_aad_handle_pdata()
775 switch (aad_pdata->micbias_pulse_lvl) { in da7219_aad_handle_pdata()
779 (aad_pdata->micbias_pulse_lvl << in da7219_aad_handle_pdata()
786 da7219_aad->micbias_pulse_time = aad_pdata->micbias_pulse_time; in da7219_aad_handle_pdata()
788 switch (aad_pdata->btn_cfg) { in da7219_aad_handle_pdata()
796 da7219_aad->btn_cfg = (aad_pdata->btn_cfg << in da7219_aad_handle_pdata()
802 switch (aad_pdata->mic_det_thr) { in da7219_aad_handle_pdata()
807 cfg |= (aad_pdata->mic_det_thr << in da7219_aad_handle_pdata()
815 switch (aad_pdata->jack_ins_deb) { in da7219_aad_handle_pdata()
824 cfg |= (aad_pdata->jack_ins_deb << in da7219_aad_handle_pdata()
828 switch (aad_pdata->jack_det_rate) { in da7219_aad_handle_pdata()
833 cfg |= (aad_pdata->jack_det_rate << in da7219_aad_handle_pdata()
837 switch (aad_pdata->jack_rem_deb) { in da7219_aad_handle_pdata()
842 cfg |= (aad_pdata->jack_rem_deb << in da7219_aad_handle_pdata()
849 aad_pdata->a_d_btn_thr); in da7219_aad_handle_pdata()
851 aad_pdata->d_b_btn_thr); in da7219_aad_handle_pdata()
853 aad_pdata->b_c_btn_thr); in da7219_aad_handle_pdata()
855 aad_pdata->c_mic_btn_thr); in da7219_aad_handle_pdata()
859 switch (aad_pdata->btn_avg) { in da7219_aad_handle_pdata()
864 cfg |= (aad_pdata->btn_avg << in da7219_aad_handle_pdata()
868 switch (aad_pdata->adc_1bit_rpt) { in da7219_aad_handle_pdata()
873 cfg |= (aad_pdata->adc_1bit_rpt << in da7219_aad_handle_pdata()
879 switch (aad_pdata->jack_ins_det_pty) { in da7219_aad_handle_pdata()
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()