Lines Matching refs:component
329 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7210_put_alc_sw() local
333 if (snd_soc_component_read(component, DA7210_CONTROL) & DA7210_NOISE_SUP_EN) { in da7210_put_alc_sw()
334 dev_dbg(component->dev, in da7210_put_alc_sw()
352 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7210_put_noise_sup_sw() local
357 if (snd_soc_component_read(component, DA7210_ADC) & DA7210_ADC_ALC_EN) in da7210_put_noise_sup_sw()
361 if ((snd_soc_component_read(component, DA7210_ZERO_CROSS) & in da7210_put_noise_sup_sw()
368 val = snd_soc_component_read(component, DA7210_IN_GAIN); in da7210_put_noise_sup_sw()
375 if (((snd_soc_component_read(component, DA7210_AUX1_L) & DA7210_AUX1_L_VOL) < in da7210_put_noise_sup_sw()
377 ((snd_soc_component_read(component, DA7210_AUX1_R) & DA7210_AUX1_R_VOL) < in da7210_put_noise_sup_sw()
758 struct snd_soc_component *component = dai->component; in da7210_hw_params() local
759 struct da7210_priv *da7210 = snd_soc_component_get_drvdata(component); in da7210_hw_params()
764 snd_soc_component_write(component, DA7210_DAI_SRC_SEL, in da7210_hw_params()
768 snd_soc_component_write(component, DA7210_DAI_CFG3, DA7210_DAI_OE | DA7210_DAI_EN); in da7210_hw_params()
770 dai_cfg1 = 0xFC & snd_soc_component_read(component, DA7210_DAI_CFG1); in da7210_hw_params()
789 snd_soc_component_write(component, DA7210_DAI_CFG1, dai_cfg1); in da7210_hw_params()
837 snd_soc_component_update_bits(component, DA7210_STARTUP1, DA7210_SC_MST_EN, 0); in da7210_hw_params()
839 snd_soc_component_update_bits(component, DA7210_PLL, DA7210_PLL_FS_MASK, fs); in da7210_hw_params()
843 snd_soc_component_update_bits(component, DA7210_PLL_DIV3, DA7210_PLL_BYP, 0); in da7210_hw_params()
847 snd_soc_component_update_bits(component, DA7210_PLL, in da7210_hw_params()
855 snd_soc_component_update_bits(component, DA7210_PLL, DA7210_MCLK_DET_EN, in da7210_hw_params()
857 snd_soc_component_update_bits(component, DA7210_PLL_DIV3, DA7210_PLL_BYP, in da7210_hw_params()
861 snd_soc_component_update_bits(component, DA7210_STARTUP1, in da7210_hw_params()
872 struct snd_soc_component *component = codec_dai->component; in da7210_set_dai_fmt() local
873 struct da7210_priv *da7210 = snd_soc_component_get_drvdata(component); in da7210_set_dai_fmt()
877 dai_cfg1 = 0x7f & snd_soc_component_read(component, DA7210_DAI_CFG1); in da7210_set_dai_fmt()
878 dai_cfg3 = 0xfc & snd_soc_component_read(component, DA7210_DAI_CFG3); in da7210_set_dai_fmt()
880 if ((snd_soc_component_read(component, DA7210_PLL) & DA7210_PLL_EN) && in da7210_set_dai_fmt()
881 (!(snd_soc_component_read(component, DA7210_PLL_DIV3) & DA7210_PLL_BYP))) in da7210_set_dai_fmt()
921 snd_soc_component_write(component, DA7210_DAI_CFG1, dai_cfg1); in da7210_set_dai_fmt()
922 snd_soc_component_write(component, DA7210_DAI_CFG3, dai_cfg3); in da7210_set_dai_fmt()
929 struct snd_soc_component *component = dai->component; in da7210_mute() local
930 u8 mute_reg = snd_soc_component_read(component, DA7210_DAC_HPF) & 0xFB; in da7210_mute()
933 snd_soc_component_write(component, DA7210_DAC_HPF, mute_reg | 0x4); in da7210_mute()
935 snd_soc_component_write(component, DA7210_DAC_HPF, mute_reg); in da7210_mute()
945 struct snd_soc_component *component = codec_dai->component; in da7210_set_dai_sysclk() local
946 struct da7210_priv *da7210 = snd_soc_component_get_drvdata(component); in da7210_set_dai_sysclk()
988 struct snd_soc_component *component = codec_dai->component; in da7210_set_dai_pll() local
989 struct da7210_priv *da7210 = snd_soc_component_get_drvdata(component); in da7210_set_dai_pll()
1014 snd_soc_component_update_bits(component, DA7210_STARTUP1, DA7210_SC_MST_EN, 0); in da7210_set_dai_pll()
1016 snd_soc_component_write(component, DA7210_PLL_DIV1, pll_div1); in da7210_set_dai_pll()
1017 snd_soc_component_write(component, DA7210_PLL_DIV2, pll_div2); in da7210_set_dai_pll()
1018 snd_soc_component_update_bits(component, DA7210_PLL_DIV3, in da7210_set_dai_pll()
1022 snd_soc_component_update_bits(component, DA7210_PLL, DA7210_PLL_EN, DA7210_PLL_EN); in da7210_set_dai_pll()
1025 snd_soc_component_update_bits(component, DA7210_STARTUP1, DA7210_SC_MST_EN, in da7210_set_dai_pll()
1065 static int da7210_probe(struct snd_soc_component *component) in da7210_probe() argument
1067 struct da7210_priv *da7210 = snd_soc_component_get_drvdata(component); in da7210_probe()
1069 dev_info(component->dev, "DA7210 Audio Codec %s\n", DA7210_VERSION); in da7210_probe()
1075 snd_soc_component_write(component, DA7210_CONTROL, DA7210_REG_EN | DA7210_BIAS_EN); in da7210_probe()
1082 snd_soc_component_write(component, DA7210_MIC_L, DA7210_MIC_L_EN | DA7210_MICBIAS_EN); in da7210_probe()
1083 snd_soc_component_write(component, DA7210_MIC_R, DA7210_MIC_R_EN); in da7210_probe()
1086 snd_soc_component_write(component, DA7210_INMIX_L, DA7210_IN_L_EN); in da7210_probe()
1087 snd_soc_component_write(component, DA7210_INMIX_R, DA7210_IN_R_EN); in da7210_probe()
1090 snd_soc_component_write(component, DA7210_ADC, DA7210_ADC_L_EN | DA7210_ADC_R_EN); in da7210_probe()
1097 snd_soc_component_write(component, DA7210_DAC_SEL, in da7210_probe()
1102 snd_soc_component_write(component, DA7210_OUTMIX_L, DA7210_OUT_L_EN); in da7210_probe()
1103 snd_soc_component_write(component, DA7210_OUTMIX_R, DA7210_OUT_R_EN); in da7210_probe()
1106 snd_soc_component_write(component, DA7210_HP_CFG, in da7210_probe()
1111 snd_soc_component_write(component, DA7210_SOFTMUTE, DA7210_RAMP_EN); in da7210_probe()
1139 snd_soc_component_write(component, DA7210_OUT1_L, DA7210_OUT1_L_EN); in da7210_probe()
1140 snd_soc_component_write(component, DA7210_OUT1_R, DA7210_OUT1_R_EN); in da7210_probe()
1141 snd_soc_component_write(component, DA7210_OUT2, DA7210_OUT2_EN | in da7210_probe()
1145 snd_soc_component_write(component, DA7210_AUX1_L, DA7210_AUX1_L_EN); in da7210_probe()
1146 snd_soc_component_write(component, DA7210_AUX1_R, DA7210_AUX1_R_EN); in da7210_probe()
1148 snd_soc_component_write(component, DA7210_AUX2, DA7210_AUX2_EN); in da7210_probe()
1151 snd_soc_component_write(component, DA7210_PLL_DIV3, DA7210_MCLK_RANGE_10_20_MHZ | in da7210_probe()
1155 snd_soc_component_write(component, DA7210_PLL, DA7210_PLL_FS_48000); in da7210_probe()
1158 snd_soc_component_write(component, DA7210_STARTUP1, DA7210_SC_MST_EN); in da7210_probe()
1160 dev_info(component->dev, "DA7210 Audio Codec %s\n", DA7210_VERSION); in da7210_probe()