From: Takashi Iwai Subject: Re: mmap_commit() and hardware buffering Date: Wed, 02 Nov 2005 11:49:39 +0100 Message-ID: References: <20051101165651.2a5f125b.davmac@davmac.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20051101165651.2a5f125b.davmac@davmac.org> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Davin McCall Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 1 Nov 2005 16:56:51 +1100, Davin McCall wrote: > > Hi, > > I have an intel 8x0 card and Alsa 1.0.9. > > Despite snd_pcm_hw_params_is_batch() and is_double() both returning false, the hardware seems to be double buffering the mmap buffer. That is, if I snd_pcm_mmap_commit() the whole buffer, and then immediately modify the buffer, the modification doesn't take effect - the sound hardware just outputs the original contents of the buffer. To be sure, do you call snd_pcm_mmap_begin() at each time? > Can anyone confirm whether these cards actually do double buffering? No, it's not. > Or is there something else going on here? Basically no double-buffer should happen with mmap mode. Although the mmap buffer provided though alsa-lib plugin isn't always the real hardware buffer. That is, the data ranged by snd_pcm_mmap_begin() is processed/transferred manually after mmap_commit(). Takashi ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php