Lines Matching refs:aiu

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()
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()
229 return dev_err_probe(dev, PTR_ERR(aiu->spdif_mclk), in aiu_clk_get()
233 &aiu->i2s); in aiu_clk_get()
238 &aiu->spdif); in aiu_clk_get()
242 ret = clk_prepare_enable(aiu->pclk); in aiu_clk_get()
250 aiu->pclk); in aiu_clk_get()
262 struct aiu *aiu; in aiu_probe() local
265 aiu = devm_kzalloc(dev, sizeof(*aiu), GFP_KERNEL); in aiu_probe()
266 if (!aiu) in aiu_probe()
269 aiu->platform = device_get_match_data(dev); in aiu_probe()
270 if (!aiu->platform) in aiu_probe()
273 platform_set_drvdata(pdev, aiu); in aiu_probe()
290 aiu->i2s.irq = platform_get_irq_byname(pdev, "i2s"); in aiu_probe()
291 if (aiu->i2s.irq < 0) in aiu_probe()
292 return aiu->i2s.irq; in aiu_probe()
294 aiu->spdif.irq = platform_get_irq_byname(pdev, "spdif"); in aiu_probe()
295 if (aiu->spdif.irq < 0) in aiu_probe()
296 return aiu->spdif.irq; in aiu_probe()
319 if (aiu->platform->has_acodec) { in aiu_probe()