Home
last modified time | relevance | path

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

12

/openbmc/linux/sound/soc/meson/
H A Daiu.c83 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_cpu_component_probe() local
91 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_cpu_component_remove() local
214 struct aiu *aiu = dev_get_drvdata(dev); in aiu_clk_get() local
228 &aiu->i2s); in aiu_clk_get()
233 &aiu->spdif); in aiu_clk_get()
245 struct aiu *aiu; in aiu_probe() local
248 aiu = devm_kzalloc(dev, sizeof(*aiu), GFP_KERNEL); in aiu_probe()
249 if (!aiu) in aiu_probe()
253 if (!aiu->platform) in aiu_probe()
274 if (aiu->i2s.irq < 0) in aiu_probe()
[all …]
H A 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
H A 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()
H A 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()
H A Daiu-fifo-spdif.c171 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_fifo_spdif_dai_probe() local
184 fifo->pclk = aiu->spdif.clks[PCLK].clk; in aiu_fifo_spdif_dai_probe()
185 fifo->irq = aiu->spdif.irq; in aiu_fifo_spdif_dai_probe()
H A Daiu-fifo-i2s.c156 struct aiu *aiu = snd_soc_component_get_drvdata(component); in aiu_fifo_i2s_dai_probe() local
169 fifo->pclk = aiu->i2s.clks[PCLK].clk; in aiu_fifo_i2s_dai_probe()
170 fifo->irq = aiu->i2s.irq; in aiu_fifo_i2s_dai_probe()
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Damlogic,aiu.yaml4 $id: http://devicetree.org/schemas/sound/amlogic,aiu.yaml#
25 - amlogic,aiu-gxbb
26 - amlogic,aiu-gxl
27 - amlogic,aiu-meson8
28 - amlogic,aiu-meson8b
29 - const: amlogic,aiu
92 aiu: audio-controller@5400 {
93 compatible = "amlogic,aiu-gxl", "amlogic,aiu";
/openbmc/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-gxbb-wetek-hub.dts10 #include <dt-bindings/sound/meson-aiu.h>
28 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
32 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
37 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
42 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
51 &aiu {
H A Dmeson-gxbb-wetek-play2.dts11 #include <dt-bindings/sound/meson-aiu.h>
61 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
65 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
69 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
74 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
79 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
87 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
96 &aiu {
H A Dmeson-gxl-s905x-p212.dts10 #include <dt-bindings/sound/meson-aiu.h>
61 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
65 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
70 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
74 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
79 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
87 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
101 &aiu {
H A Dmeson-gxbb-kii-pro.dts12 #include <dt-bindings/sound/meson-aiu.h>
58 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
62 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
66 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
71 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
76 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
84 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
93 &aiu {
H A Dmeson-gxm-nexbox-a1.dts13 #include <dt-bindings/sound/meson-aiu.h>
99 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
103 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
107 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
112 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
117 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
125 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
134 &aiu {
H A Dmeson-gx-p23x-q20x.dtsi11 #include <dt-bindings/sound/meson-aiu.h>
141 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
145 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
149 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
154 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
158 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
163 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
171 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
179 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
193 &aiu {
H A Dmeson-gxm-rbox-pro.dts17 #include <dt-bindings/sound/meson-aiu.h>
114 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
118 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
122 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
127 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
132 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
140 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
149 &aiu {
H A Dmeson-gxl-s805x-p241.dts11 #include <dt-bindings/sound/meson-aiu.h>
140 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
144 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
149 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
153 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
158 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
166 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
180 &aiu {
H A Dmeson-gxbb-vega-s95.dtsi7 #include <dt-bindings/sound/meson-aiu.h>
121 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
125 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
129 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
134 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
139 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
147 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
156 &aiu {
H A Dmeson-gxl-s805x-libretech-ac.dts11 #include <dt-bindings/sound/meson-aiu.h>
135 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
139 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
144 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
148 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
153 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
161 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
175 &aiu {
H A Dmeson-gxl-s905x-khadas-vim.dts10 #include <dt-bindings/sound/meson-aiu.h>
79 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
83 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
88 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
93 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
102 &aiu {
H A Dmeson-gxl-s905x-libretech-cc.dts11 #include <dt-bindings/sound/meson-aiu.h>
154 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
158 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
163 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
167 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
172 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
180 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
194 &aiu {
H A Dmeson-gxbb-nexbox-a95x.dts13 #include <dt-bindings/sound/meson-aiu.h>
154 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
158 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
163 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
168 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
177 &aiu {
H A Dmeson-gxl-s905x-libretech-cc-v2.dts11 #include <dt-bindings/sound/meson-aiu.h>
172 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
176 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
181 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
186 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
195 &aiu {
H A Dmeson-gx-libretech-pc.dtsi11 #include <dt-bindings/sound/meson-aiu.h>
206 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
210 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
215 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
219 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
224 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
232 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
246 &aiu {
H A 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 {
H A Dmeson-gxbb-odroidc2.dts12 #include <dt-bindings/sound/meson-aiu.h>
189 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
193 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
198 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
203 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
212 &aiu {
H A Dmeson-gxbb-nanopi-k2.dts10 #include <dt-bindings/sound/meson-aiu.h>
147 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
151 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
156 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
161 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
170 &aiu {

12