Home
last modified time | relevance | path

Searched full:aiu (Results 1 – 25 of 41) sorted by relevance

12

/linux/sound/soc/meson/
H A Daiu.c15 #include <dt-bindings/sound/meson-aiu.h>
16 #include "aiu.h"
17 #include "aiu-fifo.h"
83 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()
97 .name = "AIU CPU",
214 struct aiu *aiu = dev_get_drvdata(dev); in aiu_clk_get() local
220 return dev_err_probe(dev, PTR_ERR(pclk), "Can't get the aiu pclk\n"); in aiu_clk_get()
[all …]
H A DMakefile3 snd-soc-meson-aiu-y := aiu.o
4 snd-soc-meson-aiu-y += aiu-acodec-ctrl.o
5 snd-soc-meson-aiu-y += aiu-codec-ctrl.o
6 snd-soc-meson-aiu-y += aiu-encoder-i2s.o
7 snd-soc-meson-aiu-y += aiu-encoder-spdif.o
8 snd-soc-meson-aiu-y += aiu-fifo.o
9 snd-soc-meson-aiu-y += aiu-fifo-i2s.o
10 snd-soc-meson-aiu-y += aiu-fifo-spdif.o
29 obj-$(CONFIG_SND_MESON_AIU) += snd-soc-meson-aiu.o
H A Daiu-encoder-spdif.c13 #include "aiu.h"
100 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.c12 #include "aiu.h"
147 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.c11 #include "aiu.h"
12 #include "aiu-fifo.h"
171 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.c12 #include "aiu.h"
13 #include "aiu-fifo.h"
156 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()
/linux/Documentation/devicetree/bindings/sound/
H A Damlogic,aiu.yaml4 $id: http://devicetree.org/schemas/sound/amlogic,aiu.yaml#
7 title: Amlogic AIU audio output controller
25 - amlogic,aiu-gxbb
26 - amlogic,aiu-gxl
27 - amlogic,aiu-meson8
28 - amlogic,aiu-meson8b
29 - const: amlogic,aiu
33 - description: AIU peripheral clock
92 aiu: audio-controller@5400 {
93 compatible = "amlogic,aiu-gxl", "amlogic,aiu";
/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-gxbb-wetek-play2.dts11 #include <dt-bindings/sound/meson-aiu.h>
64 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
68 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
72 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
77 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
82 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
90 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
99 &aiu {
H A Dmeson-gxl-s905x-vero4k.dts11 #include <dt-bindings/sound/meson-aiu.h>
107 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
111 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
115 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
120 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
124 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
129 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
137 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
145 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
159 &aiu {
H A Dmeson-gxl-s905x-p212.dts10 #include <dt-bindings/sound/meson-aiu.h>
65 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
69 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
74 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
78 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
83 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
91 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
105 &aiu {
H A Dmeson-gxbb-kii-pro.dts12 #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-gxbb-wetek-hub.dts10 #include <dt-bindings/sound/meson-aiu.h>
32 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
36 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
41 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
46 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
55 &aiu {
H A Dmeson-gxbb-p201.dts11 #include <dt-bindings/sound/meson-aiu.h>
33 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
37 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
42 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
47 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
56 &aiu {
H A Dmeson-gxbb-p200.dts12 #include <dt-bindings/sound/meson-aiu.h>
84 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
88 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
92 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
97 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
102 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
110 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
119 &aiu {
H A Dmeson-gx-p23x-q20x.dtsi11 #include <dt-bindings/sound/meson-aiu.h>
144 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
148 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
152 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
157 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
161 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
166 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
174 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
182 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
196 &aiu {
H A Dmeson-gxm-nexbox-a1.dts13 #include <dt-bindings/sound/meson-aiu.h>
102 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
106 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
110 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
115 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
120 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
128 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
137 &aiu {
H A Dmeson-gxm-rbox-pro.dts17 #include <dt-bindings/sound/meson-aiu.h>
117 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
121 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
125 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
130 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
135 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
143 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
152 &aiu {
H A Dmeson-gxl-s805x-p241.dts11 #include <dt-bindings/sound/meson-aiu.h>
144 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
148 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
153 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
157 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
162 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
170 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
184 &aiu {
H A Dmeson-gxl-s805x-libretech-ac.dts11 #include <dt-bindings/sound/meson-aiu.h>
139 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
143 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
148 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
152 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
157 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
165 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
179 &aiu {
H A Dmeson-gxbb-vega-s95.dtsi7 #include <dt-bindings/sound/meson-aiu.h>
124 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
128 sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
132 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
137 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
142 sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
150 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
159 &aiu {
H A Dmeson-gxl-s905x-libretech-cc.dts11 #include <dt-bindings/sound/meson-aiu.h>
158 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
162 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
167 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
171 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
176 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
184 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
198 &aiu {
H A Dmeson-gxl-s905x-khadas-vim.dts10 #include <dt-bindings/sound/meson-aiu.h>
83 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
87 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
92 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
97 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
106 &aiu {
H A Dmeson-gx-libretech-pc.dtsi11 #include <dt-bindings/sound/meson-aiu.h>
210 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
214 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
219 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
223 sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
228 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
236 sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
250 &aiu {
H A Dmeson-gxbb-nexbox-a95x.dts13 #include <dt-bindings/sound/meson-aiu.h>
158 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
162 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
167 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
172 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
181 &aiu {
H A Dmeson-gxl-s905x-libretech-cc-v2.dts11 #include <dt-bindings/sound/meson-aiu.h>
176 sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
180 sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
185 sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
190 sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
199 &aiu {

12