Lines Matching refs:component
450 static int da9055_get_alc_data(struct snd_soc_component *component, u8 reg_val) in da9055_get_alc_data() argument
459 snd_soc_component_write(component, DA9055_ALC_CIC_OP_LVL_CTRL, reg_val); in da9055_get_alc_data()
462 snd_soc_component_write(component, DA9055_ALC_CIC_OP_LVL_CTRL, in da9055_get_alc_data()
464 mid_data = snd_soc_component_read(component, DA9055_ALC_CIC_OP_LVL_DATA); in da9055_get_alc_data()
467 snd_soc_component_write(component, DA9055_ALC_CIC_OP_LVL_CTRL, in da9055_get_alc_data()
469 top_data = snd_soc_component_read(component, DA9055_ALC_CIC_OP_LVL_DATA); in da9055_get_alc_data()
480 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da9055_put_alc_sw() local
491 mic_left = snd_soc_component_read(component, DA9055_MIC_L_CTRL); in da9055_put_alc_sw()
492 mic_right = snd_soc_component_read(component, DA9055_MIC_R_CTRL); in da9055_put_alc_sw()
495 snd_soc_component_update_bits(component, DA9055_MIC_L_CTRL, in da9055_put_alc_sw()
497 snd_soc_component_update_bits(component, DA9055_MIC_R_CTRL, in da9055_put_alc_sw()
501 adc_left = snd_soc_component_read(component, DA9055_ADC_L_CTRL); in da9055_put_alc_sw()
502 adc_right = snd_soc_component_read(component, DA9055_ADC_R_CTRL); in da9055_put_alc_sw()
505 snd_soc_component_update_bits(component, DA9055_ADC_L_CTRL, in da9055_put_alc_sw()
507 snd_soc_component_update_bits(component, DA9055_ADC_R_CTRL, in da9055_put_alc_sw()
512 avg_left_data = da9055_get_alc_data(component, in da9055_put_alc_sw()
515 avg_right_data = da9055_get_alc_data(component, in da9055_put_alc_sw()
523 snd_soc_component_write(component, DA9055_ALC_OFFSET_OP2M_L, reg_val); in da9055_put_alc_sw()
525 snd_soc_component_write(component, DA9055_ALC_OFFSET_OP2U_L, reg_val); in da9055_put_alc_sw()
528 snd_soc_component_write(component, DA9055_ALC_OFFSET_OP2M_R, reg_val); in da9055_put_alc_sw()
530 snd_soc_component_write(component, DA9055_ALC_OFFSET_OP2U_R, reg_val); in da9055_put_alc_sw()
533 snd_soc_component_write(component, DA9055_ADC_L_CTRL, adc_left); in da9055_put_alc_sw()
534 snd_soc_component_write(component, DA9055_ADC_R_CTRL, adc_right); in da9055_put_alc_sw()
537 snd_soc_component_write(component, DA9055_MIC_L_CTRL, mic_left); in da9055_put_alc_sw()
538 snd_soc_component_write(component, DA9055_MIC_R_CTRL, mic_right); in da9055_put_alc_sw()
1051 struct snd_soc_component *component = dai->component; in da9055_hw_params() local
1052 struct da9055_priv *da9055 = snd_soc_component_get_drvdata(component); in da9055_hw_params()
1074 snd_soc_component_update_bits(component, DA9055_AIF_CTRL, DA9055_AIF_WORD_LENGTH_MASK, in da9055_hw_params()
1124 snd_soc_component_write(component, DA9055_SR, fs); in da9055_hw_params()
1133 snd_soc_component_write(component, DA9055_SR, DA9055_SR_48000); in da9055_hw_params()
1140 snd_soc_component_update_bits(component, DA9055_PLL_CTRL, in da9055_hw_params()
1145 snd_soc_component_update_bits(component, DA9055_PLL_CTRL, in da9055_hw_params()
1150 snd_soc_component_update_bits(component, DA9055_PLL_CTRL, DA9055_PLL_EN, 0); in da9055_hw_params()
1159 struct snd_soc_component *component = codec_dai->component; in da9055_set_dai_fmt() local
1160 struct da9055_priv *da9055 = snd_soc_component_get_drvdata(component); in da9055_set_dai_fmt()
1179 if ((snd_soc_component_read(component, DA9055_PLL_CTRL) & DA9055_PLL_EN) && in da9055_set_dai_fmt()
1206 snd_soc_component_update_bits(component, DA9055_AIF_CLK_MODE, in da9055_set_dai_fmt()
1209 snd_soc_component_update_bits(component, DA9055_AIF_CTRL, DA9055_AIF_FORMAT_MASK, in da9055_set_dai_fmt()
1216 struct snd_soc_component *component = dai->component; in da9055_mute() local
1219 snd_soc_component_update_bits(component, DA9055_DAC_L_CTRL, in da9055_mute()
1221 snd_soc_component_update_bits(component, DA9055_DAC_R_CTRL, in da9055_mute()
1224 snd_soc_component_update_bits(component, DA9055_DAC_L_CTRL, in da9055_mute()
1226 snd_soc_component_update_bits(component, DA9055_DAC_R_CTRL, in da9055_mute()
1239 struct snd_soc_component *component = codec_dai->component; in da9055_set_dai_sysclk() local
1240 struct da9055_priv *da9055 = snd_soc_component_get_drvdata(component); in da9055_set_dai_sysclk()
1282 struct snd_soc_component *component = codec_dai->component; in da9055_set_dai_pll() local
1283 struct da9055_priv *da9055 = snd_soc_component_get_drvdata(component); in da9055_set_dai_pll()
1288 snd_soc_component_update_bits(component, DA9055_PLL_CTRL, DA9055_PLL_EN, 0); in da9055_set_dai_pll()
1311 snd_soc_component_write(component, DA9055_PLL_FRAC_TOP, pll_frac_top); in da9055_set_dai_pll()
1312 snd_soc_component_write(component, DA9055_PLL_FRAC_BOT, pll_frac_bot); in da9055_set_dai_pll()
1313 snd_soc_component_write(component, DA9055_PLL_INTEGER, pll_integer); in da9055_set_dai_pll()
1353 static int da9055_set_bias_level(struct snd_soc_component *component, in da9055_set_bias_level() argument
1361 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in da9055_set_bias_level()
1363 snd_soc_component_update_bits(component, DA9055_REFERENCES, in da9055_set_bias_level()
1370 snd_soc_component_update_bits(component, DA9055_REFERENCES, in da9055_set_bias_level()
1377 static int da9055_probe(struct snd_soc_component *component) in da9055_probe() argument
1379 struct da9055_priv *da9055 = snd_soc_component_get_drvdata(component); in da9055_probe()
1382 snd_soc_component_update_bits(component, DA9055_AUX_L_CTRL, in da9055_probe()
1384 snd_soc_component_update_bits(component, DA9055_AUX_R_CTRL, in da9055_probe()
1386 snd_soc_component_update_bits(component, DA9055_MIXIN_L_CTRL, in da9055_probe()
1388 snd_soc_component_update_bits(component, DA9055_MIXIN_R_CTRL, in da9055_probe()
1390 snd_soc_component_update_bits(component, DA9055_ADC_L_CTRL, in da9055_probe()
1392 snd_soc_component_update_bits(component, DA9055_ADC_R_CTRL, in da9055_probe()
1394 snd_soc_component_update_bits(component, DA9055_DAC_L_CTRL, in da9055_probe()
1396 snd_soc_component_update_bits(component, DA9055_DAC_R_CTRL, in da9055_probe()
1398 snd_soc_component_update_bits(component, DA9055_HP_L_CTRL, in da9055_probe()
1400 snd_soc_component_update_bits(component, DA9055_HP_R_CTRL, in da9055_probe()
1402 snd_soc_component_update_bits(component, DA9055_LINE_CTRL, in da9055_probe()
1412 snd_soc_component_update_bits(component, DA9055_MIXIN_L_CTRL, in da9055_probe()
1414 snd_soc_component_update_bits(component, DA9055_MIXIN_R_CTRL, in da9055_probe()
1417 snd_soc_component_update_bits(component, DA9055_MIXOUT_L_CTRL, in da9055_probe()
1419 snd_soc_component_update_bits(component, DA9055_MIXOUT_R_CTRL, in da9055_probe()
1423 snd_soc_component_write(component, DA9055_PLL_CTRL, DA9055_PLL_INDIV_10_20_MHZ); in da9055_probe()
1429 snd_soc_component_update_bits(component, DA9055_MIXIN_R_SELECT, in da9055_probe()
1433 snd_soc_component_update_bits(component, DA9055_MIXIN_R_SELECT, in da9055_probe()
1442 snd_soc_component_update_bits(component, DA9055_MIC_CONFIG, in da9055_probe()