Lines Matching refs:aiu

15 #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);
86 return clk_prepare_enable(aiu->i2s.clks[PCLK].clk);
91 struct aiu *aiu = snd_soc_component_get_drvdata(component);
93 clk_disable_unprepare(aiu->i2s.clks[PCLK].clk);
217 struct aiu *aiu = dev_get_drvdata(dev);
220 aiu->pclk = devm_clk_get(dev, "pclk");
221 if (IS_ERR(aiu->pclk)) {
222 if (PTR_ERR(aiu->pclk) != -EPROBE_DEFER)
223 dev_err(dev, "Can't get the aiu pclk\n");
224 return PTR_ERR(aiu->pclk);
227 aiu->spdif_mclk = devm_clk_get(dev, "spdif_mclk");
228 if (IS_ERR(aiu->spdif_mclk)) {
229 if (PTR_ERR(aiu->spdif_mclk) != -EPROBE_DEFER)
230 dev_err(dev, "Can't get the aiu spdif master clock\n");
231 return PTR_ERR(aiu->spdif_mclk);
235 &aiu->i2s);
243 &aiu->spdif);
250 ret = clk_prepare_enable(aiu->pclk);
258 aiu->pclk);
270 struct aiu *aiu;
273 aiu = devm_kzalloc(dev, sizeof(*aiu), GFP_KERNEL);
274 if (!aiu)
277 aiu->platform = device_get_match_data(dev);
278 if (!aiu->platform)
281 platform_set_drvdata(pdev, aiu);
301 aiu->i2s.irq = platform_get_irq_byname(pdev, "i2s");
302 if (aiu->i2s.irq < 0)
303 return aiu->i2s.irq;
305 aiu->spdif.irq = platform_get_irq_byname(pdev, "spdif");
306 if (aiu->spdif.irq < 0)
307 return aiu->spdif.irq;
313 /* Register the cpu component of the aiu */
330 if (aiu->platform->has_acodec) {
368 { .compatible = "amlogic,aiu-gxbb", .data = &aiu_gxbb_pdata },
369 { .compatible = "amlogic,aiu-gxl", .data = &aiu_gxl_pdata },
370 { .compatible = "amlogic,aiu-meson8", .data = &aiu_meson8_pdata },
371 { .compatible = "amlogic,aiu-meson8b", .data = &aiu_meson8_pdata },
380 .name = "meson-aiu",