Searched refs:master_saif (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/sound/soc/mxs/ |
H A D | mxs-saif.c | 95 struct mxs_saif *master_saif; mxs_saif_set_clk() local 100 master_saif = mxs_saif_get_master(saif); mxs_saif_set_clk() 101 if (!master_saif) mxs_saif_set_clk() 104 dev_dbg(saif->dev, "master saif%d\n", master_saif->id); mxs_saif_set_clk() 107 if (master_saif->ongoing && rate != master_saif->cur_rate) { mxs_saif_set_clk() 110 master_saif->id, master_saif->cur_rate); mxs_saif_set_clk() 114 scr = __raw_readl(master_saif->base + SAIF_CTRL); mxs_saif_set_clk() 128 clk_prepare_enable(master_saif->clk); mxs_saif_set_clk() 130 if (master_saif->mclk_in_use) { mxs_saif_set_clk() 133 ret = clk_set_rate(master_saif->clk, 512 * rate); mxs_saif_set_clk() 136 ret = clk_set_rate(master_saif->clk, 384 * rate); mxs_saif_set_clk() 139 clk_disable_unprepare(master_saif->clk); mxs_saif_set_clk() 143 ret = clk_set_rate(master_saif->clk, 512 * rate); mxs_saif_set_clk() 147 clk_disable_unprepare(master_saif->clk); mxs_saif_set_clk() 152 master_saif->cur_rate = rate; mxs_saif_set_clk() 154 if (!master_saif->mclk_in_use) { mxs_saif_set_clk() 155 __raw_writel(scr, master_saif->base + SAIF_CTRL); mxs_saif_set_clk() 197 __raw_writel(scr, master_saif->base + SAIF_CTRL); mxs_saif_set_clk() 244 struct mxs_saif *master_saif; mxs_saif_get_mclk() local 257 master_saif = mxs_saif_get_master(saif); mxs_saif_get_mclk() 258 if (saif != master_saif) { mxs_saif_get_mclk() 396 struct mxs_saif *master_saif; mxs_saif_hw_params() local 400 master_saif = mxs_saif_get_master(saif); mxs_saif_hw_params() 401 if (!master_saif) mxs_saif_hw_params() 429 if (saif != master_saif) { mxs_saif_hw_params() 443 clk_prepare(master_saif->clk); mxs_saif_hw_params() 495 struct mxs_saif *master_saif; mxs_saif_trigger() local 499 master_saif = mxs_saif_get_master(saif); mxs_saif_trigger() 500 if (!master_saif) mxs_saif_trigger() 512 ret = clk_enable(master_saif->clk); mxs_saif_trigger() 522 if (saif != master_saif) { mxs_saif_trigger() 526 clk_disable(master_saif->clk); mxs_saif_trigger() 534 if (!master_saif->mclk_in_use) mxs_saif_trigger() 536 master_saif->base + SAIF_CTRL + MXS_SET_ADDR); mxs_saif_trigger() 560 master_saif->ongoing = 1; mxs_saif_trigger() 567 dev_dbg(master_saif->dev, "CTRL 0x%x STAT 0x%x\n", mxs_saif_trigger() 568 __raw_readl(master_saif->base + SAIF_CTRL), mxs_saif_trigger() 569 __raw_readl(master_saif->base + SAIF_STAT)); mxs_saif_trigger() 580 delay = USEC_PER_SEC / master_saif->cur_rate; mxs_saif_trigger() 582 if (!master_saif->mclk_in_use) { mxs_saif_trigger() 584 master_saif->base + SAIF_CTRL + MXS_CLR_ADDR); mxs_saif_trigger() 587 clk_disable(master_saif->clk); mxs_saif_trigger() 589 if (saif != master_saif) { mxs_saif_trigger() 596 master_saif->ongoing = 0; mxs_saif_trigger()
|
Completed in 47 milliseconds