Searched refs:ts3a227e (Results 1 - 4 of 4) sorted by relevance
/linux-4.4.14/sound/soc/codecs/ |
H A D | ts3a227e.c | 23 #include "ts3a227e.h" 25 struct ts3a227e { struct 149 static void ts3a227e_jack_report(struct ts3a227e *ts3a227e) ts3a227e_jack_report() argument 154 if (!ts3a227e->jack) ts3a227e_jack_report() 157 if (ts3a227e->plugged) ts3a227e_jack_report() 159 if (ts3a227e->mic_present) ts3a227e_jack_report() 162 if (ts3a227e->buttons_held & (1 << i)) ts3a227e_jack_report() 165 snd_soc_jack_report(ts3a227e->jack, report, TS3A227E_JACK_MASK); ts3a227e_jack_report() 168 static void ts3a227e_new_jack_state(struct ts3a227e *ts3a227e, unsigned acc_reg) ts3a227e_new_jack_state() argument 175 ts3a227e->plugged = plugged; ts3a227e_new_jack_state() 177 if (mic_present != ts3a227e->mic_present) { ts3a227e_new_jack_state() 178 ts3a227e->mic_present = mic_present; ts3a227e_new_jack_state() 179 ts3a227e->buttons_held = 0; ts3a227e_new_jack_state() 182 regmap_update_bits(ts3a227e->regmap, ts3a227e_new_jack_state() 191 struct ts3a227e *ts3a227e = (struct ts3a227e *)data; ts3a227e_interrupt() local 192 struct regmap *regmap = ts3a227e->regmap; ts3a227e_interrupt() 194 struct device *dev = ts3a227e->dev; ts3a227e_interrupt() 206 ts3a227e_new_jack_state(ts3a227e, acc_reg); ts3a227e_interrupt() 218 ts3a227e->buttons_held |= (1 << i); ts3a227e_interrupt() 220 ts3a227e->buttons_held &= ~(1 << i); ts3a227e_interrupt() 223 ts3a227e_jack_report(ts3a227e); ts3a227e_interrupt() 241 struct ts3a227e *ts3a227e = snd_soc_component_get_drvdata(component); ts3a227e_enable_jack_detect() local 248 ts3a227e->jack = jack; ts3a227e_enable_jack_detect() 249 ts3a227e_jack_report(ts3a227e); ts3a227e_enable_jack_detect() 271 static int ts3a227e_parse_device_property(struct ts3a227e *ts3a227e, ts3a227e_parse_device_property() argument 279 regmap_update_bits(ts3a227e->regmap, TS3A227E_REG_SETTING_3, ts3a227e_parse_device_property() 290 struct ts3a227e *ts3a227e; ts3a227e_i2c_probe() local 295 ts3a227e = devm_kzalloc(&i2c->dev, sizeof(*ts3a227e), GFP_KERNEL); ts3a227e_i2c_probe() 296 if (ts3a227e == NULL) ts3a227e_i2c_probe() 299 i2c_set_clientdata(i2c, ts3a227e); ts3a227e_i2c_probe() 300 ts3a227e->dev = dev; ts3a227e_i2c_probe() 301 ts3a227e->irq = i2c->irq; ts3a227e_i2c_probe() 303 ts3a227e->regmap = devm_regmap_init_i2c(i2c, &ts3a227e_regmap_config); ts3a227e_i2c_probe() 304 if (IS_ERR(ts3a227e->regmap)) ts3a227e_i2c_probe() 305 return PTR_ERR(ts3a227e->regmap); ts3a227e_i2c_probe() 307 ret = ts3a227e_parse_device_property(ts3a227e, dev); ts3a227e_i2c_probe() 315 "TS3A227E", ts3a227e); ts3a227e_i2c_probe() 327 regmap_update_bits(ts3a227e->regmap, TS3A227E_REG_INTERRUPT_DISABLE, ts3a227e_i2c_probe() 332 regmap_read(ts3a227e->regmap, TS3A227E_REG_ACCESSORY_STATUS, &acc_reg); ts3a227e_i2c_probe() 333 ts3a227e_new_jack_state(ts3a227e, acc_reg); ts3a227e_i2c_probe() 334 ts3a227e_jack_report(ts3a227e); ts3a227e_i2c_probe() 342 struct ts3a227e *ts3a227e = dev_get_drvdata(dev); ts3a227e_suspend() local 344 dev_dbg(ts3a227e->dev, "suspend disable irq\n"); ts3a227e_suspend() 345 disable_irq(ts3a227e->irq); ts3a227e_suspend() 352 struct ts3a227e *ts3a227e = dev_get_drvdata(dev); ts3a227e_resume() local 354 dev_dbg(ts3a227e->dev, "resume enable irq\n"); ts3a227e_resume() 355 enable_irq(ts3a227e->irq); ts3a227e_resume() 366 { "ts3a227e", 0 }, 372 { .compatible = "ti,ts3a227e", }, 379 .name = "ts3a227e", 388 MODULE_DESCRIPTION("ASoC ts3a227e driver");
|
H A D | Makefile | 127 snd-soc-ts3a227e-objs := ts3a227e.o 319 obj-$(CONFIG_SND_SOC_TS3A227E) += snd-soc-ts3a227e.o
|
/linux-4.4.14/sound/soc/rockchip/ |
H A D | rockchip_max98090.c | 32 #include "../codecs/ts3a227e.h"
|
/linux-4.4.14/sound/soc/intel/boards/ |
H A D | cht_bsw_max98090_ti.c | 32 #include "../../codecs/ts3a227e.h"
|
Completed in 293 milliseconds