Home
last modified time | relevance | path

Searched refs:snd_soc_component_write (Results 1 – 25 of 94) sorted by relevance

1234

/linux/sound/soc/codecs/
H A Dwm8510.c105 #define wm8510_reset(c) snd_soc_component_write(c, WM8510_RESET, 0)
321 snd_soc_component_write(component, WM8510_CLOCK, reg & 0x0ff); in wm8510_set_dai_pll()
325 snd_soc_component_write(component, WM8510_POWER1, reg & 0x1df); in wm8510_set_dai_pll()
331 snd_soc_component_write(component, WM8510_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8510_set_dai_pll()
332 snd_soc_component_write(component, WM8510_PLLK1, pll_div.k >> 18); in wm8510_set_dai_pll()
333 snd_soc_component_write(component, WM8510_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8510_set_dai_pll()
334 snd_soc_component_write(component, WM8510_PLLK3, pll_div.k & 0x1ff); in wm8510_set_dai_pll()
336 snd_soc_component_write(component, WM8510_POWER1, reg | 0x020); in wm8510_set_dai_pll()
340 snd_soc_component_write(component, WM8510_CLOCK, reg | 0x100); in wm8510_set_dai_pll()
357 snd_soc_component_write(component, WM8510_GPIO, reg | div); in wm8510_set_dai_clkdiv()
[all …]
H A Dtlv320aic3x.c1080 snd_soc_component_write(component, AIC3X_ASD_INTF_CTRLB, data); in aic3x_hw_params()
1106 snd_soc_component_write(component, AIC3X_PLL_PROGA_REG, pll_q << PLLQ_SHIFT); in aic3x_hw_params()
1107 snd_soc_component_write(component, AIC3X_GPIOB_REG, CODEC_CLKIN_CLKDIV); in aic3x_hw_params()
1112 snd_soc_component_write(component, AIC3X_GPIOB_REG, CODEC_CLKIN_PLLDIV); in aic3x_hw_params()
1124 snd_soc_component_write(component, AIC3X_CODEC_DATAPATH_REG, data); in aic3x_hw_params()
1133 snd_soc_component_write(component, AIC3X_SAMPLE_RATE_SEL_REG, data); in aic3x_hw_params()
1203 snd_soc_component_write(component, AIC3X_OVRF_STATUS_AND_PLLR_REG, in aic3x_hw_params()
1205 snd_soc_component_write(component, AIC3X_PLL_PROGB_REG, pll_j << PLLJ_SHIFT); in aic3x_hw_params()
1206 snd_soc_component_write(component, AIC3X_PLL_PROGC_REG, in aic3x_hw_params()
1208 snd_soc_component_write(component, AIC3X_PLL_PROGD_REG, in aic3x_hw_params()
[all …]
H A Dwm8940.c336 #define wm8940_reset(c) snd_soc_component_write(c, WM8940_SOFTRESET, 0)
354 snd_soc_component_write(component, WM8940_CLOCK, clk); in wm8940_set_dai_fmt()
387 snd_soc_component_write(component, WM8940_IFACE, iface); in wm8940_set_dai_fmt()
435 ret = snd_soc_component_write(component, WM8940_ADDCNTRL, addcntrl); in wm8940_i2s_hw_params()
455 ret = snd_soc_component_write(component, WM8940_COMPANDINGCTL, companding); in wm8940_i2s_hw_params()
458 ret = snd_soc_component_write(component, WM8940_IFACE, iface); in wm8940_i2s_hw_params()
472 return snd_soc_component_write(component, WM8940_DAC, mute_reg); in wm8940_mute()
490 ret = snd_soc_component_write(component, WM8940_OUTPUTCTL, val | 0x2); in wm8940_set_bias_level()
494 ret = snd_soc_component_write(component, WM8940_POWER1, pwr_reg | 0x1); in wm8940_set_bias_level()
499 ret = snd_soc_component_write(componen in wm8940_set_bias_level()
[all...]
H A Dwm8974.c53 #define wm8974_reset(c) snd_soc_component_write(c, WM8974_RESET, 0)
322 snd_soc_component_write(component, WM8974_CLOCK, reg & 0x0ff); in wm8974_set_dai_pll()
326 snd_soc_component_write(component, WM8974_POWER1, reg & 0x1df); in wm8974_set_dai_pll()
332 snd_soc_component_write(component, WM8974_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8974_set_dai_pll()
333 snd_soc_component_write(component, WM8974_PLLK1, pll_div.k >> 18); in wm8974_set_dai_pll()
334 snd_soc_component_write(component, WM8974_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8974_set_dai_pll()
335 snd_soc_component_write(component, WM8974_PLLK3, pll_div.k & 0x1ff); in wm8974_set_dai_pll()
337 snd_soc_component_write(component, WM8974_POWER1, reg | 0x020); in wm8974_set_dai_pll()
341 snd_soc_component_write(component, WM8974_CLOCK, reg | 0x100); in wm8974_set_dai_pll()
358 snd_soc_component_write(componen in wm8974_set_dai_clkdiv()
[all...]
H A Dwm8753.c147 #define wm8753_reset(c) snd_soc_component_write(c, WM8753_RESET, 0)
254 snd_soc_component_write(component, WM8753_IOCTL, ioctl); in wm8753_set_dai()
759 snd_soc_component_write(component, WM8753_PLL1CTL1 + offset, 0x0026); in wm8753_set_dai_pll()
760 snd_soc_component_write(component, WM8753_CLOCK, reg); in wm8753_set_dai_pll()
771 snd_soc_component_write(component, WM8753_PLL1CTL2 + offset, value); in wm8753_set_dai_pll()
775 snd_soc_component_write(component, WM8753_PLL1CTL3 + offset, value); in wm8753_set_dai_pll()
779 snd_soc_component_write(component, WM8753_PLL1CTL4 + offset, value); in wm8753_set_dai_pll()
782 snd_soc_component_write(component, WM8753_PLL1CTL1 + offset, 0x0027 | in wm8753_set_dai_pll()
784 snd_soc_component_write(component, WM8753_CLOCK, reg | enable); in wm8753_set_dai_pll()
912 snd_soc_component_write(component, WM8753_PCM, voice); in wm8753_vdac_adc_set_dai_fmt()
[all …]
H A Dwm8711.c57 #define wm8711_reset(c) snd_soc_component_write(c, WM8711_RESET, 0)
165 snd_soc_component_write(component, WM8711_SRATE, srate); in wm8711_hw_params()
179 snd_soc_component_write(component, WM8711_IFACE, iface); in wm8711_hw_params()
189 snd_soc_component_write(component, WM8711_ACTIVE, 0x0001); in wm8711_pcm_prepare()
202 snd_soc_component_write(component, WM8711_ACTIVE, 0x0); in wm8711_shutdown()
212 snd_soc_component_write(component, WM8711_APDIGI, mute_reg | 0x8); in wm8711_mute()
214 snd_soc_component_write(component, WM8711_APDIGI, mute_reg); in wm8711_mute()
292 snd_soc_component_write(component, WM8711_IFACE, iface); in wm8711_set_dai_fmt()
305 snd_soc_component_write(component, WM8711_PWR, reg); in wm8711_set_bias_level()
313 snd_soc_component_write(component, WM8711_PWR, reg | 0x0040); in wm8711_set_bias_level()
[all …]
H A Dtlv320aic23.c95 snd_soc_component_write(component, TLV320AIC23_ANLG, reg | (val << 6)); in snd_soc_tlv320aic23_put_volsw()
321 snd_soc_component_write(component, TLV320AIC23_SRATE, data); in set_sample_rate_control()
374 snd_soc_component_write(component, TLV320AIC23_DIGT_FMT, iface_reg); in tlv320aic23_hw_params()
385 snd_soc_component_write(component, TLV320AIC23_ACTIVE, 0x0001); in tlv320aic23_pcm_prepare()
399 snd_soc_component_write(component, TLV320AIC23_ACTIVE, 0x0); in tlv320aic23_shutdown()
419 snd_soc_component_write(component, TLV320AIC23_DIGT, reg); in tlv320aic23_mute()
465 snd_soc_component_write(component, TLV320AIC23_DIGT_FMT, iface_reg); in tlv320aic23_set_dai_fmt()
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(componen in tlv320aic23_set_bias_level()
[all...]
H A Dmax98095.c270 snd_soc_component_write(component, eq_reg++, M98095_BYTE1(coefs[i])); in m98095_eq_band()
271 snd_soc_component_write(component, eq_reg++, M98095_BYTE0(coefs[i])); in m98095_eq_band()
296 snd_soc_component_write(component, bq_reg++, M98095_BYTE1(coefs[i])); in m98095_biquad_band()
297 snd_soc_component_write(component, bq_reg++, M98095_BYTE0(coefs[i])); in m98095_biquad_band()
983 snd_soc_component_write(component, M98095_028_DAI1_CLKCFG_HI, in max98095_dai1_hw_params()
985 snd_soc_component_write(component, M98095_029_DAI1_CLKCFG_LO, in max98095_dai1_hw_params()
1044 snd_soc_component_write(component, M98095_032_DAI2_CLKCFG_HI, in max98095_dai2_hw_params()
1046 snd_soc_component_write(component, M98095_033_DAI2_CLKCFG_LO, in max98095_dai2_hw_params()
1105 snd_soc_component_write(component, M98095_03C_DAI3_CLKCFG_HI, in max98095_dai3_hw_params()
1107 snd_soc_component_write(component, M98095_03D_DAI3_CLKCFG_LO, in max98095_dai3_hw_params()
[all …]
H A Dad1980.c222 snd_soc_component_write(component, AC97_AD_SERIAL_CFG, 0x9900); in ad1980_reset()
266 snd_soc_component_write(component, AC97_MASTER, 0x0000); in ad1980_soc_probe()
267 snd_soc_component_write(component, AC97_PCM, 0x0000); in ad1980_soc_probe()
268 snd_soc_component_write(component, AC97_REC_GAIN, 0x0000); in ad1980_soc_probe()
269 snd_soc_component_write(component, AC97_CENTER_LFE_MASTER, 0x0000); in ad1980_soc_probe()
270 snd_soc_component_write(component, AC97_SURROUND_MASTER, 0x0000); in ad1980_soc_probe()
274 snd_soc_component_write(component, AC97_EXTENDED_STATUS, ext_status&~0x3800); in ad1980_soc_probe()
H A Dda7219-aad.c98 snd_soc_component_write(component, DA7219_MICBIAS_CTRL, micbias_ctrl); in da7219_aad_btn_det_work()
157 snd_soc_component_write(component, DA7219_GAIN_RAMP_CTRL, DA7219_GAIN_RAMP_RATE_X8); in da7219_aad_hptest_work()
163 snd_soc_component_write(component, DA7219_TONE_GEN_CFG1, 0); in da7219_aad_hptest_work()
172 snd_soc_component_write(component, DA7219_DAC_L_GAIN, DA7219_DAC_DIGITAL_GAIN_0DB); in da7219_aad_hptest_work()
173 snd_soc_component_write(component, DA7219_DAC_R_GAIN, DA7219_DAC_DIGITAL_GAIN_0DB); in da7219_aad_hptest_work()
174 snd_soc_component_write(component, DA7219_HP_L_GAIN, DA7219_HP_AMP_GAIN_0DB); in da7219_aad_hptest_work()
175 snd_soc_component_write(component, DA7219_HP_R_GAIN, DA7219_HP_AMP_GAIN_0DB); in da7219_aad_hptest_work()
238 snd_soc_component_write(component, DA7219_TONE_GEN_ON_PER, DA7219_BEEP_ON_PER_MASK); in da7219_aad_hptest_work()
245 snd_soc_component_write(component, DA7219_TONE_GEN_CFG1, DA7219_START_STOPN_MASK); in da7219_aad_hptest_work()
257 snd_soc_component_write(componen in da7219_aad_hptest_work()
[all...]
H A Dmax9850.c130 snd_soc_component_write(component, MAX9850_LRCLK_MSB, (lrclk_div >> 8) & 0x7f); in max9850_hw_params()
131 snd_soc_component_write(component, MAX9850_LRCLK_LSB, lrclk_div & 0xff); in max9850_hw_params()
159 snd_soc_component_write(component, MAX9850_CLOCK, 0x0); in max9850_set_dai_sysclk()
161 snd_soc_component_write(component, MAX9850_CLOCK, 0x4); in max9850_set_dai_sysclk()
163 snd_soc_component_write(component, MAX9850_CLOCK, 0x8); in max9850_set_dai_sysclk()
219 snd_soc_component_write(component, MAX9850_DIGITAL_AUDIO, da); in max9850_set_dai_fmt()
H A Dwm8728.c77 snd_soc_component_write(component, WM8728_DACCTL, mute_reg | 1); in wm8728_mute()
79 snd_soc_component_write(component, WM8728_DACCTL, mute_reg & ~1); in wm8728_mute()
106 snd_soc_component_write(component, WM8728_DACCTL, dac); in wm8728_hw_params()
155 snd_soc_component_write(component, WM8728_IFCTL, iface); in wm8728_set_dai_fmt()
173 snd_soc_component_write(component, WM8728_DACCTL, reg & ~0x4); in wm8728_set_bias_level()
182 snd_soc_component_write(component, WM8728_DACCTL, reg | 0x4); in wm8728_set_bias_level()
H A Dda7218.c407 snd_soc_component_write(component, DA7218_IN_1_HPF_FILTER_CTRL, in_1_hpf_ctrl); in da7218_alc_calib()
408 snd_soc_component_write(component, DA7218_IN_2_HPF_FILTER_CTRL, in_2_hpf_ctrl); in da7218_alc_calib()
411 snd_soc_component_write(component, DA7218_IN_1L_FILTER_CTRL, in_1l_filt_ctrl); in da7218_alc_calib()
412 snd_soc_component_write(component, DA7218_IN_1R_FILTER_CTRL, in_1r_filt_ctrl); in da7218_alc_calib()
413 snd_soc_component_write(component, DA7218_IN_2L_FILTER_CTRL, in_2l_filt_ctrl); in da7218_alc_calib()
414 snd_soc_component_write(component, DA7218_IN_2R_FILTER_CTRL, in_2r_filt_ctrl); in da7218_alc_calib()
417 snd_soc_component_write(component, DA7218_MIXIN_1_CTRL, mixin_1_ctrl); in da7218_alc_calib()
418 snd_soc_component_write(component, DA7218_MIXIN_2_CTRL, mixin_2_ctrl); in da7218_alc_calib()
421 snd_soc_component_write(component, DA7218_MIC_1_CTRL, mic_1_ctrl); in da7218_alc_calib()
422 snd_soc_component_write(componen in da7218_alc_calib()
[all...]
H A Dda7213.c269 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTRL, reg_val);
272 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTRL, in da7213_get_alc_data()
277 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTRL, in da7213_get_alc_data()
305 snd_soc_component_write(component, DA7213_ALC_OFFSET_MAN_M_L, reg_val); in da7213_alc_calib_man()
307 snd_soc_component_write(component, DA7213_ALC_OFFSET_MAN_U_L, reg_val); in da7213_alc_calib_man()
310 snd_soc_component_write(component, DA7213_ALC_OFFSET_MAN_M_R, reg_val); in da7213_alc_calib_man()
312 snd_soc_component_write(component, DA7213_ALC_OFFSET_MAN_U_R, reg_val); in da7213_alc_calib_man()
397 snd_soc_component_write(component, DA7213_MIXIN_L_SELECT, mixin_l_sel); in da7213_alc_calib()
398 snd_soc_component_write(component, DA7213_MIXIN_R_SELECT, mixin_r_sel); in da7213_alc_calib()
401 snd_soc_component_write(componen in da7213_alc_calib()
[all...]
H A Dcq93vc.c67 snd_soc_component_write(component, DAVINCI_VC_REG12, in cq93vc_set_bias_level()
73 snd_soc_component_write(component, DAVINCI_VC_REG12, in cq93vc_set_bias_level()
78 snd_soc_component_write(component, DAVINCI_VC_REG12, in cq93vc_set_bias_level()
H A Dstac9766.c179 return snd_soc_component_write(component, reg, runtime->rate); in ac97_analog_prepare()
189 snd_soc_component_write(component, AC97_SPDIF, 0x2002); in ac97_digital_prepare()
196 return snd_soc_component_write(component, reg, runtime->rate); in ac97_digital_prepare()
206 snd_soc_component_write(component, AC97_POWERDOWN, 0x0000); in stac9766_set_bias_level()
210 snd_soc_component_write(component, AC97_POWERDOWN, 0xffff); in stac9766_set_bias_level()
H A Dwm8958-dsp2.c93 snd_soc_component_write(component, 0x102, 0x2); in wm8958_dsp2_fw()
94 snd_soc_component_write(component, 0x900, 0x2); in wm8958_dsp2_fw()
182 snd_soc_component_write(component, 0x900, 0x0); in wm8958_dsp2_fw()
183 snd_soc_component_write(component, 0x102, 0x0); in wm8958_dsp2_fw()
212 snd_soc_component_write(component, i + WM8958_MBC_BAND_1_K_1, in wm8958_dsp_start_mbc()
216 snd_soc_component_write(component, in wm8958_dsp_start_mbc()
222 snd_soc_component_write(component, WM8958_DSP2_EXECCONTROL, in wm8958_dsp_start_mbc()
251 snd_soc_component_write(component, i + 0x2800, in wm8958_dsp_start_vss()
260 snd_soc_component_write(component, i + 0x2600, cfg->regs[i]); in wm8958_dsp_start_vss()
268 snd_soc_component_write(componen in wm8958_dsp_start_vss()
[all...]
H A Dtas2552.c86 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xc0); in tas2552_post_event()
97 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xbe); in tas2552_post_event()
222 snd_soc_component_write(component, TAS2552_PLL_CTRL_2, in tas2552_setup_pll()
224 snd_soc_component_write(component, TAS2552_PLL_CTRL_3, in tas2552_setup_pll()
339 snd_soc_component_write(component, TAS2552_SER_CTRL_2, delay); in tas2552_prepare()
604 snd_soc_component_write(component, TAS2552_CFG_3, TAS2552_I2S_OUT_SEL | in tas2552_component_probe()
606 snd_soc_component_write(component, TAS2552_OUTPUT_DATA, in tas2552_component_probe()
609 snd_soc_component_write(component, TAS2552_BOOST_APT_CTRL, TAS2552_APT_DELAY_200 | in tas2552_component_probe()
612 snd_soc_component_write(component, TAS2552_CFG_2, TAS2552_BOOST_EN | TAS2552_APT_EN | in tas2552_component_probe()
H A Dwm8731.c325 snd_soc_component_write(component, WM8731_SRATE, srate); in wm8731_hw_params()
344 snd_soc_component_write(component, WM8731_IFACE, iface); in wm8731_hw_params()
354 snd_soc_component_write(component, WM8731_APDIGI, mute_reg | 0x8); in wm8731_mute()
356 snd_soc_component_write(component, WM8731_APDIGI, mute_reg); in wm8731_mute()
459 snd_soc_component_write(component, WM8731_IFACE, iface); in wm8731_set_dai_fmt()
491 snd_soc_component_write(component, WM8731_PWR, reg | 0x0040); in wm8731_set_bias_level()
495 snd_soc_component_write(component, WM8731_PWR, 0xffff); in wm8731_set_bias_level()
H A Drtq9124.c82 snd_soc_component_write(comp, RTQ9124_REG_ERR_INT_0 + i, 0xffff); in rtq9124_enable_event()
146 snd_soc_component_write(comp, RTQ9124_REG_DCR_TH, 0x5e30); in rtq9124_comp_probe()
147 snd_soc_component_write(comp, RTQ9124_REG_ERR_TH, 0x3ff); in rtq9124_comp_probe()
148 snd_soc_component_write(comp, RTQ9124_REG_PROT_EN, 0x3fc); in rtq9124_comp_probe()
149 snd_soc_component_write(comp, RTQ9124_REG_ERR_MASK6, 0); in rtq9124_comp_probe()
203 snd_soc_component_write(comp, RTQ9124_REG_TDM_TX_CH0 + i, byte_loc); in rtq9124_dai_set_tdm_slot()
208 snd_soc_component_write(comp, RTQ9124_REG_TDM_RX_CH0, byte_loc); in rtq9124_dai_set_tdm_slot()
H A Dinno_rk3036.c334 snd_soc_component_write(component, INNO_R00, in rk3036_codec_reset()
336 snd_soc_component_write(component, INNO_R00, in rk3036_codec_reset()
357 snd_soc_component_write(component, INNO_R10, INNO_R10_MAX_CUR); in rk3036_codec_set_bias_level()
359 snd_soc_component_write(component, INNO_R06, INNO_R06_DAC_PRECHARGE); in rk3036_codec_set_bias_level()
365 snd_soc_component_write(component, INNO_R10, INNO_R10_MAX_CUR); in rk3036_codec_set_bias_level()
367 snd_soc_component_write(component, INNO_R06, INNO_R06_DAC_DISCHARGE); in rk3036_codec_set_bias_level()
H A Dwm8580.c508 snd_soc_component_write(component, WM8580_PLLA1 + offset, pll_div.k & 0x1ff); in wm8580_set_dai_pll()
509 snd_soc_component_write(component, WM8580_PLLA2 + offset, (pll_div.k >> 9) & 0x1ff); in wm8580_set_dai_pll()
510 snd_soc_component_write(component, WM8580_PLLA3 + offset, in wm8580_set_dai_pll()
518 snd_soc_component_write(component, WM8580_PLLA4 + offset, reg); in wm8580_set_dai_pll()
677 snd_soc_component_write(component, WM8580_PAIF1 + codec_dai->driver->id, aifa); in wm8580_set_paif_dai_fmt()
678 snd_soc_component_write(component, WM8580_PAIF3 + codec_dai->driver->id, aifb); in wm8580_set_paif_dai_fmt()
713 snd_soc_component_write(component, WM8580_PLLB4, reg); in wm8580_set_dai_clkdiv()
739 snd_soc_component_write(component, WM8580_PLLB4, reg); in wm8580_set_dai_clkdiv()
814 snd_soc_component_write(component, WM8580_DAC_CONTROL5, reg); in wm8580_mute()
935 ret = snd_soc_component_write(component, WM8580_RESET, 0); in wm8580_probe()
H A Dtlv320aic26.c116 snd_soc_component_write(component, AIC26_REG_PLL_PROG1, reg); in aic26_hw_params()
118 snd_soc_component_write(component, AIC26_REG_PLL_PROG2, reg); in aic26_hw_params()
303 snd_soc_component_write(component, AIC26_REG_RESET, 0xBB00); in aic26_probe()
306 snd_soc_component_write(component, AIC26_REG_POWER_CTRL, 0); in aic26_probe()
312 snd_soc_component_write(component, AIC26_REG_AUDIO_CTRL3, reg); in aic26_probe()
H A Dwm9090.c256 snd_soc_component_write(component, WM9090_ANALOGUE_HP_0, reg); in hp_ev()
264 snd_soc_component_write(component, WM9090_DC_SERVO_0, in hp_ev()
273 snd_soc_component_write(component, WM9090_ANALOGUE_HP_0, reg); in hp_ev()
284 snd_soc_component_write(component, WM9090_ANALOGUE_HP_0, reg); in hp_ev()
286 snd_soc_component_write(component, WM9090_DC_SERVO_0, 0); in hp_ev()
445 snd_soc_component_write(component, WM9090_AGC_CONTROL_0 + i, in wm9090_add_controls()
/linux/sound/soc/meson/
H A Daiu-encoder-spdif.c84 snd_soc_component_write(component, AIU_958_CHSTAT_L0, val); in aiu_encoder_spdif_setup_cs_word()
85 snd_soc_component_write(component, AIU_958_CHSTAT_R0, val); in aiu_encoder_spdif_setup_cs_word()
89 snd_soc_component_write(component, AIU_958_CHSTAT_L1, val); in aiu_encoder_spdif_setup_cs_word()
90 snd_soc_component_write(component, AIU_958_CHSTAT_R1, val); in aiu_encoder_spdif_setup_cs_word()

1234