[alsa-devel] [PATCH v5 2/5] ASoC: pcm: Add support for DAI multicodec

Lars-Peter Clausen lars at metafoo.de
Sun Jul 6 16:18:24 CEST 2014


On 07/04/2014 06:07 PM, Benoit Cousson wrote:
[...]
>    */
>   bool snd_soc_runtime_ignore_pmdown_time(struct snd_soc_pcm_runtime *rtd)
>   {
> +	int i;
> +	bool ignore = true;
> +
>   	if (!rtd->pmdown_time || rtd->dai_link->ignore_pmdown_time)
>   		return true;
>
> -	return rtd->cpu_dai->component->ignore_pmdown_time &&
> -			rtd->codec_dai->component->ignore_pmdown_time;
> +	for (i = 0; (i < rtd->num_codecs) && !ignore; i++)

As you said last time this should be '&& ignore'. Or maybe just drop the 
check altogether.

> +		ignore &= rtd->codec_dais[i]->component->ignore_pmdown_time;
> +
> +	return rtd->cpu_dai->component->ignore_pmdown_time && ignore;
>   }
>



More information about the Alsa-devel mailing list