Lines Matching refs:spdif
29 struct tegra20_spdif *spdif = dev_get_drvdata(dev); in tegra20_spdif_runtime_suspend() local
31 clk_disable_unprepare(spdif->clk_spdif_out); in tegra20_spdif_runtime_suspend()
38 struct tegra20_spdif *spdif = dev_get_drvdata(dev); in tegra20_spdif_runtime_resume() local
41 ret = clk_prepare_enable(spdif->clk_spdif_out); in tegra20_spdif_runtime_resume()
55 struct tegra20_spdif *spdif = snd_soc_dai_get_drvdata(dai); in tegra20_spdif_hw_params() local
70 regmap_update_bits(spdif->regmap, TEGRA20_SPDIF_CTRL, mask, val); in tegra20_spdif_hw_params()
98 ret = clk_set_rate(spdif->clk_spdif_out, spdifclock); in tegra20_spdif_hw_params()
107 static void tegra20_spdif_start_playback(struct tegra20_spdif *spdif) in tegra20_spdif_start_playback() argument
109 regmap_update_bits(spdif->regmap, TEGRA20_SPDIF_CTRL, in tegra20_spdif_start_playback()
114 static void tegra20_spdif_stop_playback(struct tegra20_spdif *spdif) in tegra20_spdif_stop_playback() argument
116 regmap_update_bits(spdif->regmap, TEGRA20_SPDIF_CTRL, in tegra20_spdif_stop_playback()
123 struct tegra20_spdif *spdif = snd_soc_dai_get_drvdata(dai); in tegra20_spdif_trigger() local
129 tegra20_spdif_start_playback(spdif); in tegra20_spdif_trigger()
134 tegra20_spdif_stop_playback(spdif); in tegra20_spdif_trigger()
145 struct tegra20_spdif *spdif = snd_soc_dai_get_drvdata(dai); in tegra20_spdif_probe() local
148 dai->playback_dma_data = &spdif->playback_dma_data; in tegra20_spdif_probe()
253 struct tegra20_spdif *spdif; in tegra20_spdif_platform_probe() local
258 spdif = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_spdif), in tegra20_spdif_platform_probe()
260 if (!spdif) in tegra20_spdif_platform_probe()
263 dev_set_drvdata(&pdev->dev, spdif); in tegra20_spdif_platform_probe()
265 spdif->clk_spdif_out = devm_clk_get(&pdev->dev, "spdif_out"); in tegra20_spdif_platform_probe()
266 if (IS_ERR(spdif->clk_spdif_out)) { in tegra20_spdif_platform_probe()
268 ret = PTR_ERR(spdif->clk_spdif_out); in tegra20_spdif_platform_probe()
283 spdif->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in tegra20_spdif_platform_probe()
285 if (IS_ERR(spdif->regmap)) { in tegra20_spdif_platform_probe()
287 ret = PTR_ERR(spdif->regmap); in tegra20_spdif_platform_probe()
291 spdif->playback_dma_data.addr = mem->start + TEGRA20_SPDIF_DATA_OUT; in tegra20_spdif_platform_probe()
292 spdif->playback_dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in tegra20_spdif_platform_probe()
293 spdif->playback_dma_data.maxburst = 4; in tegra20_spdif_platform_probe()
294 spdif->playback_dma_data.slave_id = dmareq->start; in tegra20_spdif_platform_probe()