Hi Igor,
Thank you for your reply!
I have read the presentation you provided. I know the common clock framework and the API. Now I want
to use the clock API to the audio driver.
Actually I use the clk_prepare_enable to open the clock and clk_disable_unprepare to close the clock
from the imx6 to the codec. You know when the codec doesn`t work, we should close the codec. So I add
clk_prepare_enable in the codec probe function and clk_disable_unprepare in the codec remove function.
But once the imx6 board starts, the audio driver will be added and also the audio clock will be open. The audio
clock will be closed unless the audio driver is removed. My design aim is to close clock when the codec doesn`t
work in case we can pass EMC much easier.
Thanks and best regards,
Edward