From: Takashi Iwai Subject: Re: [PATCH 1/4] ALSA: x86: Don't pass SNDRV_PCM_INFO_BATCH flag Date: Mon, 06 Feb 2017 22:51:50 +0100 Message-ID: References: <20170203164400.12983-1-tiwai@suse.de> <20170203164400.12983-2-tiwai@suse.de> <5a4f2f34-81eb-6f40-2849-0212a1f68e78@linux.intel.com> <458a0b0d-218b-ab9d-64d9-461334d51be1@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D40AE266E26 for ; Mon, 6 Feb 2017 22:51:51 +0100 (CET) In-Reply-To: <458a0b0d-218b-ab9d-64d9-461334d51be1@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, Jerome Anand List-Id: alsa-devel@alsa-project.org On Mon, 06 Feb 2017 22:27:28 +0100, Pierre-Louis Bossart wrote: > > On 2/6/17 1:01 PM, Takashi Iwai wrote: > > On Sat, 04 Feb 2017 08:57:08 +0100, > > Takashi Iwai wrote: > >> > >>>> In anyway, it'd be appreciated if you can test on your hardware. > >>>> I could test only on a single machine. > >>> I can test more but only in 10 days from now so if we could delay this > >>> patch a bit it'd be better. > >> > >> OK, I can postpone this change and keep BATCH and DOUBLE. > > > > I've tested more intensively, and this seems working well, so far. > > Hopefully the DMA FIFO or fetch timing doesn't play a big role. > > As I mentioned in the other email, the FIFO can be up to 512 bytes so > beware. And it makes sense to limit the period size to 1024 bytes > minimum. Yes, I've examined this minimum by some trial-and-error, so it be set now. > > BTW, with the combination of this and the latest my PCM rewrite patch, > > a more interesting experiment can be done: extend to (a kind of) > > no-period-wakeup mode. Of course, it doesn't work like HD-audio, as > > we can't the ring buffer persistently on LPE audio but have to refresh > > the buffer descriptors. But the refresh of BDs is also done at PCM > > pointer callback, so it would work as is. For supporting the case > > period=1, though, another trick is needed: namely, we set up 4 BDs > > pointing to the same address, so that it won't go out to underrun.' > > Both the pseudo-no-period-wakeup and single period should work but I > am not sure how useful this is. The practical gain would be fairly small, I suppose. But it'd be nice to have such a platform as a reference implementation. Takashi