Lines Matching refs:mclk
38 struct clk *mclk; member
61 clk_disable_unprepare(spdif->mclk); in rk_spdif_runtime_suspend()
72 ret = clk_prepare_enable(spdif->mclk); in rk_spdif_runtime_resume()
93 int srate, mclk; in rk_spdif_hw_params() local
101 mclk = 96000 * 128; /* 12288000 hz */ in rk_spdif_hw_params()
104 mclk = 44100 * 256; /* 11289600 hz */ in rk_spdif_hw_params()
107 mclk = 192000 * 128; /* 24576000 hz */ in rk_spdif_hw_params()
128 ret = clk_set_rate(spdif->mclk, mclk); in rk_spdif_hw_params()
135 val |= SPDIF_CFGR_CLK_DIV(mclk/(srate * 256)); in rk_spdif_hw_params()
316 spdif->mclk = devm_clk_get(&pdev->dev, "mclk"); in rk_spdif_probe()
317 if (IS_ERR(spdif->mclk)) { in rk_spdif_probe()
319 ret = PTR_ERR(spdif->mclk); in rk_spdif_probe()
323 ret = clk_prepare_enable(spdif->mclk); in rk_spdif_probe()
375 clk_disable_unprepare(spdif->mclk); in rk_spdif_probe()
390 clk_disable_unprepare(spdif->mclk); in rk_spdif_remove()