struct clk *i2s_clk;// i2s clk ,is bclk lrck
struct clk *i2s_mclk;//i2s mclk,rk32xx can different i2s clk.
-
+ struct clk *i2s_hclk;
struct snd_dmaengine_dai_dma_data capture_dma_data;
struct snd_dmaengine_dai_dma_data playback_dma_data;
}
rk30_i2s = i2s;
+
+ i2s->i2s_hclk = clk_get(&pdev->dev, "i2s_hclk");
+ if(IS_ERR(i2s->i2s_hclk) ) {
+ dev_err(&pdev->dev, "get i2s_hclk failed.\n");
+ } else{
+ clk_prepare_enable(i2s->i2s_hclk);
+ }
+
i2s->i2s_clk= clk_get(&pdev->dev, "i2s_clk");
if (IS_ERR(i2s->i2s_clk)) {
dev_err(&pdev->dev, "Can't retrieve i2s clock\n");