Lines Matching refs:component
142 struct snd_soc_component *component; member
466 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5616_adc_event() local
470 snd_soc_component_update_bits(component, RT5616_ADC_DIG_VOL, in rt5616_adc_event()
475 snd_soc_component_update_bits(component, RT5616_ADC_DIG_VOL, in rt5616_adc_event()
490 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5616_charge_pump_event() local
495 snd_soc_component_update_bits(component, RT5616_DEPOP_M2, in rt5616_charge_pump_event()
497 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_charge_pump_event()
501 snd_soc_component_write(component, RT5616_PR_BASE + in rt5616_charge_pump_event()
504 snd_soc_component_update_bits(component, RT5616_PWR_ANLG1, in rt5616_charge_pump_event()
506 snd_soc_component_update_bits(component, RT5616_PWR_VOL, in rt5616_charge_pump_event()
509 snd_soc_component_update_bits(component, RT5616_PWR_ANLG1, in rt5616_charge_pump_event()
514 snd_soc_component_update_bits(component, RT5616_PWR_ANLG1, in rt5616_charge_pump_event()
518 snd_soc_component_update_bits(component, RT5616_CHARGE_PUMP, in rt5616_charge_pump_event()
520 snd_soc_component_update_bits(component, RT5616_PR_BASE + in rt5616_charge_pump_event()
522 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_charge_pump_event()
527 snd_soc_component_update_bits(component, RT5616_PR_BASE + in rt5616_charge_pump_event()
529 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_charge_pump_event()
534 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_charge_pump_event()
542 snd_soc_component_update_bits(component, RT5616_PWR_ANLG1, in rt5616_charge_pump_event()
556 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5616_hp_event() local
561 snd_soc_component_update_bits(component, RT5616_DEPOP_M3, in rt5616_hp_event()
567 snd_soc_component_write(component, RT5616_PR_BASE + in rt5616_hp_event()
569 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_hp_event()
571 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_hp_event()
573 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_hp_event()
577 snd_soc_component_update_bits(component, RT5616_HP_VOL, in rt5616_hp_event()
580 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_hp_event()
585 snd_soc_component_update_bits(component, RT5616_HP_CALIB_AMP_DET, in rt5616_hp_event()
591 snd_soc_component_update_bits(component, RT5616_DEPOP_M3, in rt5616_hp_event()
597 snd_soc_component_write(component, RT5616_PR_BASE + in rt5616_hp_event()
599 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_hp_event()
601 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_hp_event()
603 snd_soc_component_update_bits(component, RT5616_DEPOP_M1, in rt5616_hp_event()
607 snd_soc_component_update_bits(component, RT5616_HP_CALIB_AMP_DET, in rt5616_hp_event()
610 snd_soc_component_update_bits(component, RT5616_HP_VOL, in rt5616_hp_event()
626 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5616_lout_event() local
630 snd_soc_component_update_bits(component, RT5616_PWR_ANLG1, in rt5616_lout_event()
632 snd_soc_component_update_bits(component, RT5616_LOUT_CTRL1, in rt5616_lout_event()
637 snd_soc_component_update_bits(component, RT5616_LOUT_CTRL1, in rt5616_lout_event()
640 snd_soc_component_update_bits(component, RT5616_PWR_ANLG1, in rt5616_lout_event()
654 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5616_bst1_event() local
658 snd_soc_component_update_bits(component, RT5616_PWR_ANLG2, in rt5616_bst1_event()
663 snd_soc_component_update_bits(component, RT5616_PWR_ANLG2, in rt5616_bst1_event()
677 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5616_bst2_event() local
681 snd_soc_component_update_bits(component, RT5616_PWR_ANLG2, in rt5616_bst2_event()
686 snd_soc_component_update_bits(component, RT5616_PWR_ANLG2, in rt5616_bst2_event()
960 struct snd_soc_component *component = dai->component; in rt5616_hw_params() local
961 struct rt5616_priv *rt5616 = snd_soc_component_get_drvdata(component); in rt5616_hw_params()
970 dev_err(component->dev, "Unsupported clock setting\n"); in rt5616_hw_params()
975 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size); in rt5616_hw_params()
1004 snd_soc_component_update_bits(component, RT5616_I2S1_SDP, in rt5616_hw_params()
1006 snd_soc_component_update_bits(component, RT5616_ADDA_CLK1, mask_clk, val_clk); in rt5616_hw_params()
1013 struct snd_soc_component *component = dai->component; in rt5616_set_dai_fmt() local
1014 struct rt5616_priv *rt5616 = snd_soc_component_get_drvdata(component); in rt5616_set_dai_fmt()
1055 snd_soc_component_update_bits(component, RT5616_I2S1_SDP, in rt5616_set_dai_fmt()
1065 struct snd_soc_component *component = dai->component; in rt5616_set_dai_sysclk() local
1066 struct rt5616_priv *rt5616 = snd_soc_component_get_drvdata(component); in rt5616_set_dai_sysclk()
1080 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt5616_set_dai_sysclk()
1084 snd_soc_component_update_bits(component, RT5616_GLB_CLK, in rt5616_set_dai_sysclk()
1097 struct snd_soc_component *component = dai->component; in rt5616_set_dai_pll() local
1098 struct rt5616_priv *rt5616 = snd_soc_component_get_drvdata(component); in rt5616_set_dai_pll()
1107 dev_dbg(component->dev, "PLL disabled\n"); in rt5616_set_dai_pll()
1111 snd_soc_component_update_bits(component, RT5616_GLB_CLK, in rt5616_set_dai_pll()
1119 snd_soc_component_update_bits(component, RT5616_GLB_CLK, in rt5616_set_dai_pll()
1125 snd_soc_component_update_bits(component, RT5616_GLB_CLK, in rt5616_set_dai_pll()
1130 dev_err(component->dev, "Unknown PLL source %d\n", source); in rt5616_set_dai_pll()
1136 dev_err(component->dev, "Unsupported input clock %d\n", freq_in); in rt5616_set_dai_pll()
1140 dev_dbg(component->dev, "bypass=%d m=%d n=%d k=%d\n", in rt5616_set_dai_pll()
1144 snd_soc_component_write(component, RT5616_PLL_CTRL1, in rt5616_set_dai_pll()
1146 snd_soc_component_write(component, RT5616_PLL_CTRL2, in rt5616_set_dai_pll()
1158 static int rt5616_set_bias_level(struct snd_soc_component *component, in rt5616_set_bias_level() argument
1161 struct rt5616_priv *rt5616 = snd_soc_component_get_drvdata(component); in rt5616_set_bias_level()
1180 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_ON) { in rt5616_set_bias_level()
1190 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in rt5616_set_bias_level()
1191 snd_soc_component_update_bits(component, RT5616_PWR_ANLG1, in rt5616_set_bias_level()
1197 snd_soc_component_update_bits(component, RT5616_PWR_ANLG1, in rt5616_set_bias_level()
1200 snd_soc_component_update_bits(component, RT5616_D_MISC, in rt5616_set_bias_level()
1207 snd_soc_component_update_bits(component, RT5616_D_MISC, RT5616_D_GATE_EN, 0); in rt5616_set_bias_level()
1208 snd_soc_component_write(component, RT5616_PWR_DIG1, 0x0000); in rt5616_set_bias_level()
1209 snd_soc_component_write(component, RT5616_PWR_DIG2, 0x0000); in rt5616_set_bias_level()
1210 snd_soc_component_write(component, RT5616_PWR_VOL, 0x0000); in rt5616_set_bias_level()
1211 snd_soc_component_write(component, RT5616_PWR_MIXER, 0x0000); in rt5616_set_bias_level()
1212 snd_soc_component_write(component, RT5616_PWR_ANLG1, 0x0000); in rt5616_set_bias_level()
1213 snd_soc_component_write(component, RT5616_PWR_ANLG2, 0x0000); in rt5616_set_bias_level()
1223 static int rt5616_probe(struct snd_soc_component *component) in rt5616_probe() argument
1225 struct rt5616_priv *rt5616 = snd_soc_component_get_drvdata(component); in rt5616_probe()
1228 rt5616->mclk = devm_clk_get(component->dev, "mclk"); in rt5616_probe()
1232 rt5616->component = component; in rt5616_probe()
1238 static int rt5616_suspend(struct snd_soc_component *component) in rt5616_suspend() argument
1240 struct rt5616_priv *rt5616 = snd_soc_component_get_drvdata(component); in rt5616_suspend()
1248 static int rt5616_resume(struct snd_soc_component *component) in rt5616_resume() argument
1250 struct rt5616_priv *rt5616 = snd_soc_component_get_drvdata(component); in rt5616_resume()