Searched refs:rt711 (Results 1 – 7 of 7) sorted by relevance
/linux/sound/soc/codecs/ |
H A D | rt711-sdca.c | 29 static int rt711_sdca_index_write(struct rt711_sdca_priv *rt711, in rt711_sdca_index_write() argument 33 struct regmap *regmap = rt711->mbq_regmap; in rt711_sdca_index_write() 38 dev_err(&rt711->slave->dev, in rt711_sdca_index_write() 45 static int rt711_sdca_index_read(struct rt711_sdca_priv *rt711, in rt711_sdca_index_read() argument 49 struct regmap *regmap = rt711->mbq_regmap; in rt711_sdca_index_read() 54 dev_err(&rt711->slave->dev, in rt711_sdca_index_read() 61 static int rt711_sdca_index_update_bits(struct rt711_sdca_priv *rt711, in rt711_sdca_index_update_bits() argument 67 ret = rt711_sdca_index_read(rt711, nid, reg, &tmp); in rt711_sdca_index_update_bits() 72 return rt711_sdca_index_write(rt711, nid, reg, tmp); in rt711_sdca_index_update_bits() 75 static void rt711_sdca_reset(struct rt711_sdca_priv *rt711) in rt711_sdca_reset() argument [all …]
|
H A D | rt711.c | 85 static int rt711_calibration(struct rt711_priv *rt711) in rt711_calibration() argument 89 struct regmap *regmap = rt711->regmap; in rt711_calibration() 92 mutex_lock(&rt711->calibrate_mutex); in rt711_calibration() 93 regmap_write(rt711->regmap, in rt711_calibration() 129 regmap_write(rt711->regmap, in rt711_calibration() 131 mutex_unlock(&rt711->calibrate_mutex); in rt711_calibration() 137 static unsigned int rt711_button_detect(struct rt711_priv *rt711) in rt711_button_detect() argument 142 ret = rt711_index_read(rt711->regmap, RT711_VENDOR_REG, in rt711_button_detect() 146 ret = rt711_index_read(rt711->regmap, RT711_VENDOR_REG, in rt711_button_detect() 184 static int rt711_headset_detect(struct rt711_priv *rt711) in rt711_headset_detect() argument [all …]
|
H A D | rt711-sdw.c | 94 struct rt711_priv *rt711 = dev_get_drvdata(dev); in rt711_sdw_read() local 109 ret = regmap_write(rt711->sdw_regmap, reg, 0); in rt711_sdw_read() 114 ret = regmap_write(rt711->sdw_regmap, reg2, val2); in rt711_sdw_read() 119 ret = regmap_write(rt711->sdw_regmap, in rt711_sdw_read() 125 ret = regmap_write(rt711->sdw_regmap, reg4, (*val & 0xff)); in rt711_sdw_read() 130 ret = regmap_write(rt711->sdw_regmap, reg, *val); in rt711_sdw_read() 136 ret = regmap_write(rt711->sdw_regmap, in rt711_sdw_read() 142 ret = regmap_write(rt711->sdw_regmap, reg2, (*val & 0xff)); in rt711_sdw_read() 148 ret = regmap_write(rt711->sdw_regmap, in rt711_sdw_read() 152 ret = regmap_write(rt711->sdw_regmap, reg, (*val & 0xff)); in rt711_sdw_read() [all …]
|
H A D | rt711-sdca-sdw.c | 144 struct rt711_sdca_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_sdca_update_status() local 147 rt711->hw_init = false; in rt711_sdca_update_status() 150 if (rt711->hs_jack) { in rt711_sdca_update_status() 157 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK1, in rt711_sdca_update_status() 159 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK2, in rt711_sdca_update_status() 168 if (rt711->hw_init || status != SDW_SLAVE_ATTACHED) in rt711_sdca_update_status() 240 struct rt711_sdca_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_sdca_interrupt_callback() local 249 if (cancel_delayed_work_sync(&rt711->jack_detect_work)) { in rt711_sdca_interrupt_callback() 252 if (rt711->scp_sdca_stat2) in rt711_sdca_interrupt_callback() 253 scp_sdca_stat2 = rt711->scp_sdca_stat2; in rt711_sdca_interrupt_callback() [all …]
|
H A D | rt711-sdca.h | 243 int rt711_sdca_jack_detect(struct rt711_sdca_priv *rt711, bool *hp, bool *mic);
|
H A D | rt711.h | 249 int rt711_jack_detect(struct rt711_priv *rt711, bool *hp, bool *mic);
|
H A D | Makefile | 263 snd-soc-rt711-y := rt711.o rt711-sdw.o 264 snd-soc-rt711-sdca-y := rt711-sdca.o rt711-sdca-sdw.o 676 obj-$(CONFIG_SND_SOC_RT711) += snd-soc-rt711.o 677 obj-$(CONFIG_SND_SOC_RT711_SDCA_SDW) += snd-soc-rt711-sdca.o
|