Lines Matching refs:component
48 struct snd_soc_component *component; member
195 static int rt1308_reg_init(struct snd_soc_component *component) in rt1308_reg_init() argument
197 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_reg_init()
299 struct snd_soc_component *component = in rt1308_classd_event() local
305 snd_soc_component_update_bits(component, RT1308_POWER_STATUS, in rt1308_classd_event()
311 snd_soc_component_update_bits(component, RT1308_POWER_STATUS, in rt1308_classd_event()
454 struct snd_soc_component *component = dai->component; in rt1308_hw_params() local
455 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_hw_params()
462 dev_err(component->dev, in rt1308_hw_params()
469 dev_err(component->dev, "Unsupported frame size: %d\n", in rt1308_hw_params()
477 dev_dbg(component->dev, "bclk_ms is %d and pre_div is %d for iis %d\n", in rt1308_hw_params()
480 dev_dbg(component->dev, "lrck is %dHz and pre_div is %d for iis %d\n", in rt1308_hw_params()
504 snd_soc_component_update_bits(component, in rt1308_hw_params()
509 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id); in rt1308_hw_params()
513 snd_soc_component_update_bits(component, RT1308_CLK_1, in rt1308_hw_params()
521 struct snd_soc_component *component = dai->component; in rt1308_set_dai_fmt() local
522 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_set_dai_fmt()
561 snd_soc_component_update_bits(component, in rt1308_set_dai_fmt()
564 snd_soc_component_update_bits(component, in rt1308_set_dai_fmt()
569 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id); in rt1308_set_dai_fmt()
575 static int rt1308_set_component_sysclk(struct snd_soc_component *component, in rt1308_set_component_sysclk() argument
578 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_set_component_sysclk()
587 snd_soc_component_update_bits(component, in rt1308_set_component_sysclk()
601 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt1308_set_component_sysclk()
604 snd_soc_component_update_bits(component, RT1308_CLK_1, in rt1308_set_component_sysclk()
609 dev_dbg(component->dev, "Sysclk is %dHz and clock id is %d\n", in rt1308_set_component_sysclk()
615 static int rt1308_set_component_pll(struct snd_soc_component *component, in rt1308_set_component_pll() argument
619 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_set_component_pll()
628 dev_dbg(component->dev, "PLL disabled\n"); in rt1308_set_component_pll()
632 snd_soc_component_update_bits(component, in rt1308_set_component_pll()
640 snd_soc_component_update_bits(component, in rt1308_set_component_pll()
643 snd_soc_component_update_bits(component, in rt1308_set_component_pll()
648 snd_soc_component_update_bits(component, in rt1308_set_component_pll()
653 snd_soc_component_update_bits(component, in rt1308_set_component_pll()
659 dev_err(component->dev, "Unknown PLL Source %d\n", source); in rt1308_set_component_pll()
665 dev_err(component->dev, "Unsupported input clock %d\n", freq_in); in rt1308_set_component_pll()
669 dev_dbg(component->dev, "bypass=%d m=%d n=%d k=%d\n", in rt1308_set_component_pll()
673 snd_soc_component_write(component, RT1308_PLL_1, in rt1308_set_component_pll()
686 static int rt1308_probe(struct snd_soc_component *component) in rt1308_probe() argument
688 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_probe()
690 rt1308->component = component; in rt1308_probe()
692 return rt1308_reg_init(component); in rt1308_probe()
695 static void rt1308_remove(struct snd_soc_component *component) in rt1308_remove() argument
697 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_remove()
703 static int rt1308_suspend(struct snd_soc_component *component) in rt1308_suspend() argument
705 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_suspend()
713 static int rt1308_resume(struct snd_soc_component *component) in rt1308_resume() argument
715 struct rt1308_priv *rt1308 = snd_soc_component_get_drvdata(component); in rt1308_resume()