Home
last modified time | relevance | path

Searched refs:aiu (Results 1 – 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/sound/soc/meson/
Daiu.c83 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_cpu_component_probe() local
86 return clk_prepare_enable(aiu->i2s.clks[PCLK].clk); in aiu_cpu_component_probe()
91 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_cpu_component_remove() local
93 clk_disable_unprepare(aiu->i2s.clks[PCLK].clk); in aiu_cpu_component_remove()
217 struct aiu *aiu = dev_get_drvdata(dev); in aiu_clk_get() local
220 aiu->pclk = devm_clk_get(dev, "pclk"); in aiu_clk_get()
221 if (IS_ERR(aiu->pclk)) { in aiu_clk_get()
222 if (PTR_ERR(aiu->pclk) != -EPROBE_DEFER) in aiu_clk_get()
224 return PTR_ERR(aiu->pclk); in aiu_clk_get()
227 aiu->spdif_mclk = devm_clk_get(dev, "spdif_mclk"); in aiu_clk_get()
[all …]
DMakefile3 snd-soc-meson-aiu-objs := aiu.o
4 snd-soc-meson-aiu-objs += aiu-acodec-ctrl.o
5 snd-soc-meson-aiu-objs += aiu-codec-ctrl.o
6 snd-soc-meson-aiu-objs += aiu-encoder-i2s.o
7 snd-soc-meson-aiu-objs += aiu-encoder-spdif.o
8 snd-soc-meson-aiu-objs += aiu-fifo.o
9 snd-soc-meson-aiu-objs += aiu-fifo-i2s.o
10 snd-soc-meson-aiu-objs += aiu-fifo-spdif.o
29 obj-$(CONFIG_SND_MESON_AIU) += snd-soc-meson-aiu.o
Daiu-encoder-spdif.c100 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_encoder_spdif_hw_params() local
144 ret = clk_set_rate(aiu->spdif.clks[MCLK].clk, mrate); in aiu_encoder_spdif_hw_params()
168 struct aiu *aiu = snd_soc_component_get_drvdata(dai->component); in aiu_encoder_spdif_startup() local
183 ret = clk_set_parent(aiu->spdif.clks[MCLK].clk, in aiu_encoder_spdif_startup()
184 aiu->spdif_mclk); in aiu_encoder_spdif_startup()
188 ret = clk_bulk_prepare_enable(aiu->spdif.clk_num, aiu->spdif.clks); in aiu_encoder_spdif_startup()
198 struct aiu *aiu = snd_soc_component_get_drvdata(dai->component); in aiu_encoder_spdif_shutdown() local
200 clk_bulk_disable_unprepare(aiu->spdif.clk_num, aiu->spdif.clks); in aiu_encoder_spdif_shutdown()
Daiu-encoder-i2s.c147 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_encoder_i2s_set_clocks() local
153 fs = DIV_ROUND_CLOSEST(clk_get_rate(aiu->i2s.clks[MCLK].clk), srate); in aiu_encoder_i2s_set_clocks()
171 if (aiu->platform->has_clk_ctrl_more_i2s_div) in aiu_encoder_i2s_set_clocks()
270 struct aiu *aiu = snd_soc_component_get_drvdata(dai->component); in aiu_encoder_i2s_set_sysclk() local
279 ret = clk_set_rate(aiu->i2s.clks[MCLK].clk, freq); in aiu_encoder_i2s_set_sysclk()
296 struct aiu *aiu = snd_soc_component_get_drvdata(dai->component); in aiu_encoder_i2s_startup() local
308 ret = clk_bulk_prepare_enable(aiu->i2s.clk_num, aiu->i2s.clks); in aiu_encoder_i2s_startup()
318 struct aiu *aiu = snd_soc_component_get_drvdata(dai->component); in aiu_encoder_i2s_shutdown() local
320 clk_bulk_disable_unprepare(aiu->i2s.clk_num, aiu->i2s.clks); in aiu_encoder_i2s_shutdown()
Daiu-fifo-i2s.c154 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_fifo_i2s_dai_probe() local
167 fifo->pclk = aiu->i2s.clks[PCLK].clk; in aiu_fifo_i2s_dai_probe()
168 fifo->irq = aiu->i2s.irq; in aiu_fifo_i2s_dai_probe()
Daiu-fifo-spdif.c169 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_fifo_spdif_dai_probe() local
182 fifo->pclk = aiu->spdif.clks[PCLK].clk; in aiu_fifo_spdif_dai_probe()
183 fifo->irq = aiu->spdif.irq; in aiu_fifo_spdif_dai_probe()
Daiu.h35 struct aiu { struct
/kernel/linux/linux-5.10/arch/arm64/boot/dts/amlogic/
Dmeson-gx-p23x-q20x.dtsi11 #include <dt-bindings/sound/meson-aiu.h>
143 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
147 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
151 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
156 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
160 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
165 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
173 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
181 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
195 &aiu {
Dmeson-gxl-s805x-libretech-ac.dts11 #include <dt-bindings/sound/meson-aiu.h>
136 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
140 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
145 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
149 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
154 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
162 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
176 &aiu {
Dmeson-gxl-s905x-libretech-cc.dts11 #include <dt-bindings/sound/meson-aiu.h>
155 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
159 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
164 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
168 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
173 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
181 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
195 &aiu {
Dmeson-gxl-s905x-libretech-cc-v2.dts11 #include <dt-bindings/sound/meson-aiu.h>
175 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
179 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
184 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
189 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
199 &aiu {
Dmeson-gx-libretech-pc.dtsi11 #include <dt-bindings/sound/meson-aiu.h>
207 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
211 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
216 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
220 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
225 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
233 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
247 &aiu {
Dmeson-gxbb.dtsi64 &aiu {
65 compatible = "amlogic,aiu-gxbb", "amlogic,aiu";
Dmeson-gxl.dtsi80 &aiu {
81 compatible = "amlogic,aiu-gxl", "amlogic,aiu";
Dmeson-gx.dtsi282 aiu: audio-controller@5400 { label
283 compatible = "amlogic,aiu";