[alsa-devel] [RFC PATCH 07/14] ASoC: qcom: add no osr clk flag to lpass variant

Srinivas Kandagatla srinivas.kandagatla at linaro.org
Tue May 5 09:16:50 CEST 2015



On 04/05/15 13:26, Mark Brown wrote:
> On Thu, Apr 30, 2015 at 06:17:24PM +0100, Srinivas Kandagatla wrote:
>
>> +	if (!drvdata->variant->no_osr_clk) {
>> +		ret = clk_prepare_enable(drvdata->mi2s_osr_clk[dai->id]);
>
> Can we do this by checking to see if the clock is set to IS_ERR()
> instead?  That's what we're doing elsewhere for possibly optional
> clocks.
>
Yes, I think that should be possible, I will fix it in next version.

--srini


More information about the Alsa-devel mailing list