Lines Matching refs:component
128 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in r1019_dac_event() local
132 snd_soc_component_write(component, RT1019_SDB_CTRL, 0xb); in r1019_dac_event()
135 snd_soc_component_write(component, RT1019_SDB_CTRL, 0xa); in r1019_dac_event()
159 struct snd_soc_component *component = dai->component; in rt1019_hw_params() local
160 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_hw_params()
169 dev_err(component->dev, "Unsupported clock setting\n"); in rt1019_hw_params()
175 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size); in rt1019_hw_params()
232 snd_soc_component_update_bits(component, RT1019_TDM_2, RT1019_I2S_DL_MASK, in rt1019_hw_params()
234 snd_soc_component_update_bits(component, RT1019_CLK_TREE_1, in rt1019_hw_params()
236 snd_soc_component_update_bits(component, RT1019_CLK_TREE_2, in rt1019_hw_params()
240 snd_soc_component_update_bits(component, RT1019_CLK_TREE_3, in rt1019_hw_params()
248 struct snd_soc_component *component = dai->component; in rt1019_set_dai_fmt() local
281 snd_soc_component_update_bits(component, RT1019_TDM_2, in rt1019_set_dai_fmt()
283 snd_soc_component_update_bits(component, RT1019_TDM_1, in rt1019_set_dai_fmt()
292 struct snd_soc_component *component = dai->component; in rt1019_set_dai_sysclk() local
293 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_set_dai_sysclk()
309 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt1019_set_dai_sysclk()
318 snd_soc_component_update_bits(component, RT1019_CLK_TREE_1, in rt1019_set_dai_sysclk()
327 struct snd_soc_component *component = dai->component; in rt1019_set_dai_pll() local
328 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_set_dai_pll()
333 dev_dbg(component->dev, "PLL disabled\n"); in rt1019_set_dai_pll()
345 snd_soc_component_update_bits(component, RT1019_CLK_TREE_1, in rt1019_set_dai_pll()
350 snd_soc_component_update_bits(component, RT1019_CLK_TREE_1, in rt1019_set_dai_pll()
355 dev_err(component->dev, "Unknown PLL source %d\n", source); in rt1019_set_dai_pll()
361 dev_err(component->dev, "Unsupported input clock %d\n", freq_in); in rt1019_set_dai_pll()
365 dev_dbg(component->dev, "bypass=%d m=%d n=%d k=%d\n", in rt1019_set_dai_pll()
369 snd_soc_component_update_bits(component, RT1019_PWR_STRP_2, in rt1019_set_dai_pll()
372 snd_soc_component_update_bits(component, RT1019_PLL_1, in rt1019_set_dai_pll()
377 snd_soc_component_update_bits(component, RT1019_PLL_2, in rt1019_set_dai_pll()
379 snd_soc_component_update_bits(component, RT1019_PLL_3, in rt1019_set_dai_pll()
392 struct snd_soc_component *component = dai->component; in rt1019_set_tdm_slot() local
435 dev_err(component->dev, "too many rx slots or zero slot\n"); in rt1019_set_tdm_slot()
449 snd_soc_component_update_bits(component, in rt1019_set_tdm_slot()
460 snd_soc_component_update_bits(component, in rt1019_set_tdm_slot()
472 snd_soc_component_update_bits(component, RT1019_TDM_1, in rt1019_set_tdm_slot()
474 snd_soc_component_update_bits(component, RT1019_TDM_2, in rt1019_set_tdm_slot()
481 static int rt1019_probe(struct snd_soc_component *component) in rt1019_probe() argument
483 struct rt1019_priv *rt1019 = snd_soc_component_get_drvdata(component); in rt1019_probe()
485 rt1019->component = component; in rt1019_probe()
486 snd_soc_component_write(component, RT1019_SDB_CTRL, 0xa); in rt1019_probe()