Lines Matching refs:aud2htx

27 	struct fsl_aud2htx *aud2htx = snd_soc_dai_get_drvdata(dai);  in fsl_aud2htx_trigger()  local
33 regmap_update_bits(aud2htx->regmap, AUD2HTX_CTRL, in fsl_aud2htx_trigger()
35 regmap_update_bits(aud2htx->regmap, AUD2HTX_CTRL_EXT, in fsl_aud2htx_trigger()
41 regmap_update_bits(aud2htx->regmap, AUD2HTX_CTRL_EXT, in fsl_aud2htx_trigger()
43 regmap_update_bits(aud2htx->regmap, AUD2HTX_CTRL, in fsl_aud2htx_trigger()
58 struct fsl_aud2htx *aud2htx = dev_get_drvdata(cpu_dai->dev); in fsl_aud2htx_dai_probe() local
61 regmap_update_bits(aud2htx->regmap, AUD2HTX_CTRL_EXT, in fsl_aud2htx_dai_probe()
65 regmap_update_bits(aud2htx->regmap, AUD2HTX_IRQ_MASK, in fsl_aud2htx_dai_probe()
74 regmap_update_bits(aud2htx->regmap, AUD2HTX_CTRL_EXT, in fsl_aud2htx_dai_probe()
77 regmap_update_bits(aud2htx->regmap, AUD2HTX_CTRL_EXT, in fsl_aud2htx_dai_probe()
81 snd_soc_dai_init_dma_data(cpu_dai, &aud2htx->dma_params_tx, in fsl_aud2htx_dai_probe()
82 &aud2htx->dma_params_rx); in fsl_aud2htx_dai_probe()
189 struct fsl_aud2htx *aud2htx; in fsl_aud2htx_probe() local
194 aud2htx = devm_kzalloc(&pdev->dev, sizeof(*aud2htx), GFP_KERNEL); in fsl_aud2htx_probe()
195 if (!aud2htx) in fsl_aud2htx_probe()
198 aud2htx->pdev = pdev; in fsl_aud2htx_probe()
204 aud2htx->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in fsl_aud2htx_probe()
206 if (IS_ERR(aud2htx->regmap)) { in fsl_aud2htx_probe()
208 return PTR_ERR(aud2htx->regmap); in fsl_aud2htx_probe()
216 dev_name(&pdev->dev), aud2htx); in fsl_aud2htx_probe()
222 aud2htx->bus_clk = devm_clk_get(&pdev->dev, "bus"); in fsl_aud2htx_probe()
223 if (IS_ERR(aud2htx->bus_clk)) { in fsl_aud2htx_probe()
225 return PTR_ERR(aud2htx->bus_clk); in fsl_aud2htx_probe()
228 aud2htx->dma_params_tx.chan_name = "tx"; in fsl_aud2htx_probe()
229 aud2htx->dma_params_tx.maxburst = AUD2HTX_MAXBURST; in fsl_aud2htx_probe()
230 aud2htx->dma_params_tx.addr = res->start + AUD2HTX_WR; in fsl_aud2htx_probe()
232 platform_set_drvdata(pdev, aud2htx); in fsl_aud2htx_probe()
235 regcache_cache_only(aud2htx->regmap, true); in fsl_aud2htx_probe()
269 struct fsl_aud2htx *aud2htx = dev_get_drvdata(dev); in fsl_aud2htx_runtime_suspend() local
271 regcache_cache_only(aud2htx->regmap, true); in fsl_aud2htx_runtime_suspend()
272 clk_disable_unprepare(aud2htx->bus_clk); in fsl_aud2htx_runtime_suspend()
279 struct fsl_aud2htx *aud2htx = dev_get_drvdata(dev); in fsl_aud2htx_runtime_resume() local
282 ret = clk_prepare_enable(aud2htx->bus_clk); in fsl_aud2htx_runtime_resume()
286 regcache_cache_only(aud2htx->regmap, false); in fsl_aud2htx_runtime_resume()
287 regcache_mark_dirty(aud2htx->regmap); in fsl_aud2htx_runtime_resume()
288 regcache_sync(aud2htx->regmap); in fsl_aud2htx_runtime_resume()