Lines Matching refs:micsupp
48 struct arizona_micsupp *micsupp = in arizona_micsupp_check_cp() local
50 struct snd_soc_dapm_context *dapm = *micsupp->dapm; in arizona_micsupp_check_cp()
55 ret = regmap_read(micsupp->regmap, micsupp->enable_reg, &val); in arizona_micsupp_check_cp()
57 dev_err(micsupp->dev, in arizona_micsupp_check_cp()
78 struct arizona_micsupp *micsupp = rdev_get_drvdata(rdev); in arizona_micsupp_enable() local
84 schedule_work(&micsupp->check_cp_work); in arizona_micsupp_enable()
91 struct arizona_micsupp *micsupp = rdev_get_drvdata(rdev); in arizona_micsupp_disable() local
96 schedule_work(&micsupp->check_cp_work); in arizona_micsupp_disable()
103 struct arizona_micsupp *micsupp = rdev_get_drvdata(rdev); in arizona_micsupp_set_bypass() local
108 schedule_work(&micsupp->check_cp_work); in arizona_micsupp_set_bypass()
232 struct arizona_micsupp *micsupp = config->driver_data; in arizona_micsupp_of_get_pdata() local
244 init_data->consumer_supplies = &micsupp->supply; in arizona_micsupp_of_get_pdata()
255 struct arizona_micsupp *micsupp, in arizona_micsupp_common_init() argument
262 INIT_WORK(&micsupp->check_cp_work, arizona_micsupp_check_cp); in arizona_micsupp_common_init()
264 micsupp->init_data.consumer_supplies = &micsupp->supply; in arizona_micsupp_common_init()
265 micsupp->supply.supply = "MICVDD"; in arizona_micsupp_common_init()
266 micsupp->supply.dev_name = dev_name(micsupp->dev); in arizona_micsupp_common_init()
267 micsupp->enable_reg = desc->enable_reg; in arizona_micsupp_common_init()
269 config.dev = micsupp->dev; in arizona_micsupp_common_init()
270 config.driver_data = micsupp; in arizona_micsupp_common_init()
271 config.regmap = micsupp->regmap; in arizona_micsupp_common_init()
274 if (!dev_get_platdata(micsupp->dev)) { in arizona_micsupp_common_init()
285 config.init_data = &micsupp->init_data; in arizona_micsupp_common_init()
288 regmap_update_bits(micsupp->regmap, micsupp->enable_reg, in arizona_micsupp_common_init()
291 micsupp->regulator = devm_regulator_register(&pdev->dev, in arizona_micsupp_common_init()
297 if (IS_ERR(micsupp->regulator)) { in arizona_micsupp_common_init()
298 ret = PTR_ERR(micsupp->regulator); in arizona_micsupp_common_init()
299 dev_err(micsupp->dev, "Failed to register mic supply: %d\n", in arizona_micsupp_common_init()
304 platform_set_drvdata(pdev, micsupp); in arizona_micsupp_common_init()
313 struct arizona_micsupp *micsupp; in arizona_micsupp_probe() local
315 micsupp = devm_kzalloc(&pdev->dev, sizeof(*micsupp), GFP_KERNEL); in arizona_micsupp_probe()
316 if (!micsupp) in arizona_micsupp_probe()
319 micsupp->regmap = arizona->regmap; in arizona_micsupp_probe()
320 micsupp->dapm = &arizona->dapm; in arizona_micsupp_probe()
321 micsupp->dev = arizona->dev; in arizona_micsupp_probe()
332 micsupp->init_data = arizona_micsupp_ext_default; in arizona_micsupp_probe()
336 micsupp->init_data = arizona_micsupp_default; in arizona_micsupp_probe()
340 return arizona_micsupp_common_init(pdev, micsupp, desc, in arizona_micsupp_probe()
347 struct arizona_micsupp *micsupp; in madera_micsupp_probe() local
349 micsupp = devm_kzalloc(&pdev->dev, sizeof(*micsupp), GFP_KERNEL); in madera_micsupp_probe()
350 if (!micsupp) in madera_micsupp_probe()
353 micsupp->regmap = madera->regmap; in madera_micsupp_probe()
354 micsupp->dapm = &madera->dapm; in madera_micsupp_probe()
355 micsupp->dev = madera->dev; in madera_micsupp_probe()
356 micsupp->init_data = arizona_micsupp_ext_default; in madera_micsupp_probe()
358 return arizona_micsupp_common_init(pdev, micsupp, &madera_micsupp, in madera_micsupp_probe()