21 Nov
2014
21 Nov
'14
8:32 p.m.
On Mon, Nov 17, 2014 at 04:02:57PM +0800, Qiao Zhou wrote:
Skip dpcm path checking for playback or capture, if corresponding FE doesn't support playback or capture, or currently is not ready. It can reduce the unnecessary cost to search connected widgets.
Applied, but I did change...
/* skip if FE doesn't do playback */
if (!fe->cpu_dai->playback_active
|| !fe->codec_dai->playback_active)
...this and the corresponding capture comment to say "isn't currently playing" - it's not if the front end can play, it's if it is playing right now.