Home
last modified time | relevance | path

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

12

/Linux-v6.1/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()
220 struct aiu *aiu = dev_get_drvdata(dev); in aiu_clk_get() local
223 aiu->pclk = devm_clk_get(dev, "pclk"); in aiu_clk_get()
224 if (IS_ERR(aiu->pclk)) in aiu_clk_get()
225 return dev_err_probe(dev, PTR_ERR(aiu->pclk), "Can't get the aiu pclk\n"); in aiu_clk_get()
227 aiu->spdif_mclk = devm_clk_get(dev, "spdif_mclk"); in aiu_clk_get()
228 if (IS_ERR(aiu->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.c153 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_fifo_i2s_dai_probe() local
166 fifo->pclk = aiu->i2s.clks[PCLK].clk; in aiu_fifo_i2s_dai_probe()
167 fifo->irq = aiu->i2s.irq; in aiu_fifo_i2s_dai_probe()
Daiu-fifo-spdif.c168 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_fifo_spdif_dai_probe() local
181 fifo->pclk = aiu->spdif.clks[PCLK].clk; in aiu_fifo_spdif_dai_probe()
182 fifo->irq = aiu->spdif.irq; in aiu_fifo_spdif_dai_probe()
Daiu.h35 struct aiu { struct
/Linux-v6.1/arch/arm64/boot/dts/amlogic/
Dmeson-gxbb-wetek-hub.dts10 #include <dt-bindings/sound/meson-aiu.h>
29 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
33 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
38 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
43 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
52 &aiu {
Dmeson-gxbb-wetek-play2.dts11 #include <dt-bindings/sound/meson-aiu.h>
62 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
66 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
70 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
75 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
80 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
88 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
97 &aiu {
Dmeson-gxm-nexbox-a1.dts13 #include <dt-bindings/sound/meson-aiu.h>
100 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
104 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
108 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
113 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
118 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
126 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
135 &aiu {
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-gxm-rbox-pro.dts17 #include <dt-bindings/sound/meson-aiu.h>
115 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
119 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
123 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
128 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
133 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
141 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
150 &aiu {
Dmeson-gxl-s805x-p241.dts11 #include <dt-bindings/sound/meson-aiu.h>
141 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
145 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
150 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
154 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
159 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
167 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
181 &aiu {
Dmeson-gxbb-vega-s95.dtsi7 #include <dt-bindings/sound/meson-aiu.h>
122 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
126 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
130 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
135 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
140 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
148 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
157 &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-khadas-vim.dts10 #include <dt-bindings/sound/meson-aiu.h>
80 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
84 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
89 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
94 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
103 &aiu {
Dmeson-gxbb-nexbox-a95x.dts13 #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>;
169 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
178 &aiu {
Dmeson-gxl-s905x-libretech-cc-v2.dts11 #include <dt-bindings/sound/meson-aiu.h>
173 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
177 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
182 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
187 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
196 &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-gxm-khadas-vim2.dts12 #include <dt-bindings/sound/meson-aiu.h>
162 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
166 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
171 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
176 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
185 &aiu {
Dmeson-gxbb-nanopi-k2.dts10 #include <dt-bindings/sound/meson-aiu.h>
148 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
152 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
157 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
162 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
171 &aiu {
Dmeson-gxbb-odroidc2.dts12 #include <dt-bindings/sound/meson-aiu.h>
190 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
194 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
199 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
204 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
213 &aiu {
/Linux-v6.1/arch/arm/boot/dts/
Dmeson.dtsi8 #include <dt-bindings/sound/meson-aiu.h>
40 aiu: audio-controller@5400 { label
41 compatible = "amlogic,aiu";
Dmeson8b-ec100.dts111 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
115 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
271 &aiu {

12