Lines Matching refs:component
80 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in snd_soc_tlv320aic23_put_volsw() local
94 reg = snd_soc_component_read(component, TLV320AIC23_ANLG) & (~0x1C0); in snd_soc_tlv320aic23_put_volsw()
95 snd_soc_component_write(component, TLV320AIC23_ANLG, reg | (val << 6)); in snd_soc_tlv320aic23_put_volsw()
103 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in snd_soc_tlv320aic23_get_volsw() local
106 val = snd_soc_component_read(component, TLV320AIC23_ANLG) & (0x1C0); in snd_soc_tlv320aic23_get_volsw()
294 static void get_current_sample_rates(struct snd_soc_component *component, int mclk, in get_current_sample_rates() argument
297 int src = snd_soc_component_read(component, TLV320AIC23_SRATE); in get_current_sample_rates()
311 static int set_sample_rate_control(struct snd_soc_component *component, int mclk, in set_sample_rate_control() argument
321 snd_soc_component_write(component, TLV320AIC23_SRATE, data); in set_sample_rate_control()
325 get_current_sample_rates(component, mclk, &adc, &dac); in set_sample_rate_control()
337 struct snd_soc_component *component = dai->component; in tlv320aic23_hw_params() local
340 struct aic23 *aic23 = snd_soc_component_get_drvdata(component); in tlv320aic23_hw_params()
354 ret = set_sample_rate_control(component, aic23->mclk, sample_rate_adc, in tlv320aic23_hw_params()
359 iface_reg = snd_soc_component_read(component, TLV320AIC23_DIGT_FMT) & ~(0x03 << 2); in tlv320aic23_hw_params()
374 snd_soc_component_write(component, TLV320AIC23_DIGT_FMT, iface_reg); in tlv320aic23_hw_params()
382 struct snd_soc_component *component = dai->component; in tlv320aic23_pcm_prepare() local
385 snd_soc_component_write(component, TLV320AIC23_ACTIVE, 0x0001); in tlv320aic23_pcm_prepare()
393 struct snd_soc_component *component = dai->component; in tlv320aic23_shutdown() local
394 struct aic23 *aic23 = snd_soc_component_get_drvdata(component); in tlv320aic23_shutdown()
397 if (!snd_soc_component_active(component)) { in tlv320aic23_shutdown()
399 snd_soc_component_write(component, TLV320AIC23_ACTIVE, 0x0); in tlv320aic23_shutdown()
409 struct snd_soc_component *component = dai->component; in tlv320aic23_mute() local
412 reg = snd_soc_component_read(component, TLV320AIC23_DIGT); in tlv320aic23_mute()
419 snd_soc_component_write(component, TLV320AIC23_DIGT, reg); in tlv320aic23_mute()
427 struct snd_soc_component *component = codec_dai->component; in tlv320aic23_set_dai_fmt() local
430 iface_reg = snd_soc_component_read(component, TLV320AIC23_DIGT_FMT) & (~0x03); in tlv320aic23_set_dai_fmt()
465 snd_soc_component_write(component, TLV320AIC23_DIGT_FMT, iface_reg); in tlv320aic23_set_dai_fmt()
478 static int tlv320aic23_set_bias_level(struct snd_soc_component *component, in tlv320aic23_set_bias_level() argument
481 u16 reg = snd_soc_component_read(component, TLV320AIC23_PWR) & 0x17f; in tlv320aic23_set_bias_level()
488 snd_soc_component_write(component, TLV320AIC23_PWR, reg); in tlv320aic23_set_bias_level()
494 snd_soc_component_write(component, TLV320AIC23_PWR, in tlv320aic23_set_bias_level()
499 snd_soc_component_write(component, TLV320AIC23_ACTIVE, 0x0); in tlv320aic23_set_bias_level()
500 snd_soc_component_write(component, TLV320AIC23_PWR, 0x1ff); in tlv320aic23_set_bias_level()
537 static int tlv320aic23_resume(struct snd_soc_component *component) in tlv320aic23_resume() argument
539 struct aic23 *aic23 = snd_soc_component_get_drvdata(component); in tlv320aic23_resume()
546 static int tlv320aic23_component_probe(struct snd_soc_component *component) in tlv320aic23_component_probe() argument
549 snd_soc_component_write(component, TLV320AIC23_RESET, 0); in tlv320aic23_component_probe()
551 snd_soc_component_write(component, TLV320AIC23_DIGT, TLV320AIC23_DEEMP_44K); in tlv320aic23_component_probe()
554 snd_soc_component_update_bits(component, TLV320AIC23_LINVOL, in tlv320aic23_component_probe()
557 snd_soc_component_update_bits(component, TLV320AIC23_RINVOL, in tlv320aic23_component_probe()
560 snd_soc_component_update_bits(component, TLV320AIC23_ANLG, in tlv320aic23_component_probe()
565 snd_soc_component_write(component, TLV320AIC23_LCHNVOL, in tlv320aic23_component_probe()
567 snd_soc_component_write(component, TLV320AIC23_RCHNVOL, in tlv320aic23_component_probe()
570 snd_soc_component_write(component, TLV320AIC23_ACTIVE, 0x1); in tlv320aic23_component_probe()