• Home
  • Raw
  • Download

Lines Matching refs:pdata

224 	if (!arizona->pdata.micd_force_micbias) {  in arizona_extcon_pulse_micbias()
263 if (info->detecting && arizona->pdata.micd_software_compare) in arizona_start_mic()
465 int id_gpio = arizona->pdata.hpdet_id_gpio; in arizona_hpdet_do_id()
467 if (!arizona->pdata.hpdet_acc_id) in arizona_hpdet_do_id()
533 int id_gpio = arizona->pdata.hpdet_id_gpio; in arizona_hpdet_irq()
633 arizona->pdata.hpdet_channel); in arizona_identify_headphone()
682 arizona->pdata.hpdet_channel); in arizona_start_hpdet_acc_id()
688 if (arizona->pdata.hpdet_acc_id_line) { in arizona_start_hpdet_acc_id()
798 if (info->detecting && arizona->pdata.micd_software_compare) in arizona_micdet_reading()
854 if (arizona->pdata.micd_software_compare) in arizona_micdet_reading()
862 msecs_to_jiffies(arizona->pdata.micd_timeout)); in arizona_micdet_reading()
952 int debounce = arizona->pdata.micd_detect_debounce; in arizona_micdet()
1036 if (arizona->pdata.jd_invert) in arizona_jackdet()
1059 int micd_timeout = arizona->pdata.micd_timeout; in arizona_jackdet()
1078 if (!arizona->pdata.hpdet_acc_id) { in arizona_jackdet()
1086 if (info->micd_clamp || !arizona->pdata.jd_invert) in arizona_jackdet()
1192 arizona->pdata.micd_configs = micd_configs; in arizona_extcon_get_micd_configs()
1193 arizona->pdata.num_micd_configs = nconfs; in arizona_extcon_get_micd_configs()
1203 struct arizona_pdata *pdata = &arizona->pdata; in arizona_extcon_device_get_pdata() local
1211 pdata->hpdet_channel = val; in arizona_extcon_device_get_pdata()
1215 pdata->hpdet_channel = ARIZONA_ACCDET_MODE_HPL; in arizona_extcon_device_get_pdata()
1219 &pdata->micd_detect_debounce); in arizona_extcon_device_get_pdata()
1222 &pdata->micd_bias_start_time); in arizona_extcon_device_get_pdata()
1225 &pdata->micd_rate); in arizona_extcon_device_get_pdata()
1228 &pdata->micd_dbtime); in arizona_extcon_device_get_pdata()
1231 &pdata->micd_timeout); in arizona_extcon_device_get_pdata()
1233 pdata->micd_force_micbias = device_property_read_bool(arizona->dev, in arizona_extcon_device_get_pdata()
1236 pdata->micd_software_compare = device_property_read_bool(arizona->dev, in arizona_extcon_device_get_pdata()
1239 pdata->jd_invert = device_property_read_bool(arizona->dev, in arizona_extcon_device_get_pdata()
1242 device_property_read_u32(arizona->dev, "wlf,gpsw", &pdata->gpsw); in arizona_extcon_device_get_pdata()
1244 pdata->jd_gpio5 = device_property_read_bool(arizona->dev, in arizona_extcon_device_get_pdata()
1246 pdata->jd_gpio5_nopull = device_property_read_bool(arizona->dev, in arizona_extcon_device_get_pdata()
1259 struct arizona_pdata *pdata = &arizona->pdata; in arizona_jack_codec_dev_probe() local
1307 if (!pdata->micd_timeout) in arizona_jack_codec_dev_probe()
1308 pdata->micd_timeout = DEFAULT_MICD_TIMEOUT; in arizona_jack_codec_dev_probe()
1310 if (pdata->num_micd_configs) { in arizona_jack_codec_dev_probe()
1311 info->micd_modes = pdata->micd_configs; in arizona_jack_codec_dev_probe()
1312 info->micd_num_modes = pdata->num_micd_configs; in arizona_jack_codec_dev_probe()
1318 if (arizona->pdata.gpsw > 0) in arizona_jack_codec_dev_probe()
1320 ARIZONA_SW1_MODE_MASK, arizona->pdata.gpsw); in arizona_jack_codec_dev_probe()
1322 if (pdata->micd_pol_gpio > 0) { in arizona_jack_codec_dev_probe()
1328 ret = devm_gpio_request_one(dev, pdata->micd_pol_gpio, in arizona_jack_codec_dev_probe()
1332 pdata->micd_pol_gpio, ret); in arizona_jack_codec_dev_probe()
1336 info->micd_pol_gpio = gpio_to_desc(pdata->micd_pol_gpio); in arizona_jack_codec_dev_probe()
1358 if (arizona->pdata.hpdet_id_gpio > 0) { in arizona_jack_codec_dev_probe()
1359 ret = devm_gpio_request_one(dev, arizona->pdata.hpdet_id_gpio, in arizona_jack_codec_dev_probe()
1364 arizona->pdata.hpdet_id_gpio, ret); in arizona_jack_codec_dev_probe()
1385 struct arizona_pdata *pdata = &arizona->pdata; in arizona_jack_enable_jack_detect() local
1391 if (arizona->pdata.micd_bias_start_time) in arizona_jack_enable_jack_detect()
1394 arizona->pdata.micd_bias_start_time in arizona_jack_enable_jack_detect()
1397 if (arizona->pdata.micd_rate) in arizona_jack_enable_jack_detect()
1400 arizona->pdata.micd_rate in arizona_jack_enable_jack_detect()
1403 switch (arizona->pdata.micd_dbtime) { in arizona_jack_enable_jack_detect()
1420 if (arizona->pdata.num_micd_ranges) { in arizona_jack_enable_jack_detect()
1421 info->micd_ranges = pdata->micd_ranges; in arizona_jack_enable_jack_detect()
1422 info->num_micd_ranges = pdata->num_micd_ranges; in arizona_jack_enable_jack_detect()
1428 if (arizona->pdata.num_micd_ranges > ARIZONA_MAX_MICD_BUTTONS) { in arizona_jack_enable_jack_detect()
1430 arizona->pdata.num_micd_ranges, ARIZONA_MAX_MICD_BUTTONS); in arizona_jack_enable_jack_detect()
1484 if (arizona->pdata.jd_gpio5) { in arizona_jack_enable_jack_detect()
1487 if (arizona->pdata.jd_gpio5_nopull) in arizona_jack_enable_jack_detect()
1493 if (arizona->pdata.jd_invert) in arizona_jack_enable_jack_detect()
1498 if (arizona->pdata.jd_invert) in arizona_jack_enable_jack_detect()