Lines Matching refs:component
567 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in adc3xxx_coefficient_get() local
575 value_msb = snd_soc_component_read(component, reg++); in adc3xxx_coefficient_get()
579 value_lsb = snd_soc_component_read(component, reg++); in adc3xxx_coefficient_get()
593 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in adc3xxx_coefficient_put() local
604 ret = snd_soc_component_write(component, reg++, value_msb); in adc3xxx_coefficient_put()
608 ret = snd_soc_component_write(component, reg++, value_lsb); in adc3xxx_coefficient_put()
1122 static void adc3xxx_setup_pll(struct snd_soc_component *component, in adc3xxx_setup_pll() argument
1128 snd_soc_component_write(component, ADC3XXX_PLL_PROG_PR, in adc3xxx_setup_pll()
1132 snd_soc_component_write(component, ADC3XXX_PLL_PROG_J, in adc3xxx_setup_pll()
1135 snd_soc_component_write(component, ADC3XXX_PLL_PROG_D_LSB, in adc3xxx_setup_pll()
1137 snd_soc_component_write(component, ADC3XXX_PLL_PROG_D_MSB, in adc3xxx_setup_pll()
1145 struct snd_soc_component *component = dai->component; in adc3xxx_hw_params() local
1146 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(dai->component); in adc3xxx_hw_params()
1147 struct adc3xxx *adc3xxx = snd_soc_component_get_drvdata(component); in adc3xxx_hw_params()
1151 i = adc3xxx_get_divs(component->dev, adc3xxx->sysclk, in adc3xxx_hw_params()
1176 dev_err(component->dev, "Unsupported serial data format\n"); in adc3xxx_hw_params()
1179 snd_soc_component_update_bits(component, ADC3XXX_INTERFACE_CTRL_1, in adc3xxx_hw_params()
1182 adc3xxx_setup_pll(component, i); in adc3xxx_hw_params()
1183 snd_soc_component_write(component, ADC3XXX_CLKGEN_MUX, ADC3XXX_USE_PLL); in adc3xxx_hw_params()
1190 snd_soc_component_write(component, ADC3XXX_CLKGEN_MUX, ADC3XXX_NO_PLL); in adc3xxx_hw_params()
1199 snd_soc_component_update_bits(component, ADC3XXX_ADC_NADC, in adc3xxx_hw_params()
1202 snd_soc_component_update_bits(component, ADC3XXX_ADC_MADC, in adc3xxx_hw_params()
1205 snd_soc_component_update_bits(component, ADC3XXX_ADC_AOSR, in adc3xxx_hw_params()
1210 snd_soc_component_update_bits(component, ADC3XXX_BCLK_N_DIV, in adc3xxx_hw_params()
1235 struct snd_soc_component *component = codec_dai->component; in adc3xxx_set_dai_sysclk() local
1236 struct adc3xxx *adc3xxx = snd_soc_component_get_drvdata(component); in adc3xxx_set_dai_sysclk()
1244 dev_dbg(component->dev, "Set sysclk to %u Hz, %s\n", in adc3xxx_set_dai_sysclk()
1251 struct snd_soc_component *component = codec_dai->component; in adc3xxx_set_dai_fmt() local
1252 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in adc3xxx_set_dai_fmt()
1253 struct adc3xxx *adc3xxx = snd_soc_component_get_drvdata(component); in adc3xxx_set_dai_fmt()
1267 dev_err(component->dev, "Invalid DAI clock setup\n"); in adc3xxx_set_dai_fmt()
1292 dev_err(component->dev, "Invalid DAI format\n"); in adc3xxx_set_dai_fmt()
1306 ret = snd_soc_component_update_bits(component, in adc3xxx_set_dai_fmt()