Home
last modified time | relevance | path

Searched refs:codec_clk (Results 1 – 9 of 9) sorted by relevance

/linux-5.19.10/sound/soc/fsl/
Dimx-sgtl5000.c23 struct clk *codec_clk; member
132 data->codec_clk = clk_get(&codec_dev->dev, NULL); in imx_sgtl5000_probe()
133 if (IS_ERR(data->codec_clk)) { in imx_sgtl5000_probe()
134 ret = PTR_ERR(data->codec_clk); in imx_sgtl5000_probe()
138 data->clk_frequency = clk_get_rate(data->codec_clk); in imx_sgtl5000_probe()
188 if (data && !IS_ERR(data->codec_clk)) in imx_sgtl5000_probe()
189 clk_put(data->codec_clk); in imx_sgtl5000_probe()
201 clk_put(data->codec_clk); in imx_sgtl5000_remove()
Dfsl-asoc-card.c590 struct clk *codec_clk = clk_get(codec_dev, NULL); in fsl_asoc_card_probe() local
592 if (!IS_ERR(codec_clk)) { in fsl_asoc_card_probe()
593 priv->codec_priv.mclk_freq = clk_get_rate(codec_clk); in fsl_asoc_card_probe()
594 clk_put(codec_clk); in fsl_asoc_card_probe()
/linux-5.19.10/sound/soc/codecs/
Dtlv320aic3x.c1043 int codec_clk = 0, bypass_pll = 0, fsref, last_clk = 0; in aic3x_hw_params() local
1120 codec_clk = (2048 * fsref) / (aic3x->sysclk / 1000); in aic3x_hw_params()
1134 if (abs(codec_clk - tmp_clk) < in aic3x_hw_params()
1135 abs(codec_clk - last_clk)) { in aic3x_hw_params()
1142 if (tmp_clk == codec_clk) in aic3x_hw_params()
1149 j = codec_clk * p / 1000; in aic3x_hw_params()
1162 if (abs(codec_clk - clk) < abs(codec_clk - last_clk)) { in aic3x_hw_params()
1168 if (clk == codec_clk) in aic3x_hw_params()
/linux-5.19.10/drivers/clk/sunxi-ng/
Dccu-suniv-f1c100s.c309 static SUNXI_CCU_GATE(codec_clk, "codec", "pll-audio", 0x140, BIT(31), 0);
374 &codec_clk.common,
465 [CLK_CODEC] = &codec_clk.common.hw,
Dccu-sun5i.c483 static SUNXI_CCU_GATE(codec_clk, "codec", "pll-audio",
598 &codec_clk.common,
724 [CLK_CODEC] = &codec_clk.common.hw,
853 [CLK_CODEC] = &codec_clk.common.hw,
968 [CLK_CODEC] = &codec_clk.common.hw,
Dccu-sun4i-a10.c769 static SUNXI_CCU_GATE(codec_clk, "codec", "pll-audio",
1020 &codec_clk.common,
1202 [CLK_CODEC] = &codec_clk.common.hw,
1371 [CLK_CODEC] = &codec_clk.common.hw,
Dccu-sun6i-a31.c606 static SUNXI_CCU_GATE(codec_clk, "codec", "pll-audio",
934 &codec_clk.common,
1122 [CLK_CODEC] = &codec_clk.common.hw,
Dccu-sun8i-r40.c704 static SUNXI_CCU_GATE(codec_clk, "codec", "pll-audio",
943 &codec_clk.common,
1146 [CLK_CODEC] = &codec_clk.common.hw,
/linux-5.19.10/Documentation/devicetree/bindings/sound/
Dallwinner,sun4i-a10-codec.yaml240 clocks = <&apb0_gates 0>, <&codec_clk>;