Lines Matching refs:component
71 struct snd_soc_component *component; member
243 static int rt1305_reg_init(struct snd_soc_component *component) in rt1305_reg_init() argument
245 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_reg_init()
407 struct snd_soc_component *component = in rt1305_is_rc_clk_from_pll() local
409 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_is_rc_clk_from_pll()
412 val = snd_soc_component_read(component, RT1305_CLK_1); in rt1305_is_rc_clk_from_pll()
424 struct snd_soc_component *component = in rt1305_is_sys_clk_from_pll() local
426 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_is_sys_clk_from_pll()
437 struct snd_soc_component *component = in rt1305_classd_event() local
442 snd_soc_component_update_bits(component, RT1305_POWER_CTRL_1, in rt1305_classd_event()
446 snd_soc_component_update_bits(component, RT1305_POWER_CTRL_1, in rt1305_classd_event()
626 struct snd_soc_component *component = dai->component; in rt1305_hw_params() local
627 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_hw_params()
634 dev_warn(component->dev, "Force using PLL "); in rt1305_hw_params()
643 dev_err(component->dev, "Unsupported frame size: %d\n", in rt1305_hw_params()
651 dev_dbg(component->dev, "bclk_ms is %d and pre_div is %d for iis %d\n", in rt1305_hw_params()
654 dev_dbg(component->dev, "lrck is %dHz and pre_div is %d for iis %d\n", in rt1305_hw_params()
678 snd_soc_component_update_bits(component, RT1305_I2S_SET_2, in rt1305_hw_params()
683 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id); in rt1305_hw_params()
687 snd_soc_component_update_bits(component, RT1305_CLK_2, in rt1305_hw_params()
695 struct snd_soc_component *component = dai->component; in rt1305_set_dai_fmt() local
696 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_set_dai_fmt()
740 snd_soc_component_update_bits(component, RT1305_I2S_SET_1, in rt1305_set_dai_fmt()
742 snd_soc_component_update_bits(component, RT1305_I2S_SET_2, in rt1305_set_dai_fmt()
747 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id); in rt1305_set_dai_fmt()
753 static int rt1305_set_component_sysclk(struct snd_soc_component *component, in rt1305_set_component_sysclk() argument
756 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_set_component_sysclk()
765 snd_soc_component_update_bits(component, in rt1305_set_component_sysclk()
776 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt1305_set_component_sysclk()
779 snd_soc_component_update_bits(component, RT1305_CLK_1, in rt1305_set_component_sysclk()
784 dev_dbg(component->dev, "Sysclk is %dHz and clock id is %d\n", in rt1305_set_component_sysclk()
790 static int rt1305_set_component_pll(struct snd_soc_component *component, in rt1305_set_component_pll() argument
794 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_set_component_pll()
803 dev_dbg(component->dev, "PLL disabled\n"); in rt1305_set_component_pll()
807 snd_soc_component_update_bits(component, RT1305_CLK_1, in rt1305_set_component_pll()
815 snd_soc_component_update_bits(component, RT1305_CLK_1, in rt1305_set_component_pll()
819 snd_soc_component_update_bits(component, in rt1305_set_component_pll()
824 snd_soc_component_update_bits(component, in rt1305_set_component_pll()
829 snd_soc_component_update_bits(component, RT1305_CLK_1, in rt1305_set_component_pll()
836 dev_err(component->dev, "Unknown PLL Source %d\n", source); in rt1305_set_component_pll()
842 dev_err(component->dev, "Unsupported input clock %d\n", freq_in); in rt1305_set_component_pll()
846 dev_dbg(component->dev, "bypass=%d m=%d n=%d k=%d\n", in rt1305_set_component_pll()
850 snd_soc_component_write(component, RT1305_PLL1_1, in rt1305_set_component_pll()
854 snd_soc_component_write(component, RT1305_PLL1_2, in rt1305_set_component_pll()
864 static int rt1305_probe(struct snd_soc_component *component) in rt1305_probe() argument
866 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_probe()
868 rt1305->component = component; in rt1305_probe()
871 rt1305_reg_init(component); in rt1305_probe()
876 static void rt1305_remove(struct snd_soc_component *component) in rt1305_remove() argument
878 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_remove()
884 static int rt1305_suspend(struct snd_soc_component *component) in rt1305_suspend() argument
886 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_suspend()
894 static int rt1305_resume(struct snd_soc_component *component) in rt1305_resume() argument
896 struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component); in rt1305_resume()