[alsa-devel] [PATCH v5 2/5] ASoC: pcm: Add support for DAI multicodec
Benoit Cousson
bcousson at baylibre.com
Sun Jul 6 22:23:10 CEST 2014
On 06/07/2014 16:18, Lars-Peter Clausen wrote:
> 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.
Oops, I forgot to fix it before posting :-(
I guess I'll drop it, it is a little bit overkill.
Thanks,
Benoit
--
Benoît Cousson
BayLibre
Embedded Linux Technology Lab
www.baylibre.com
More information about the Alsa-devel
mailing list