From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lennart Poettering Subject: Re: Maximum buffer size on HDA Date: Mon, 16 Jun 2008 14:37:41 +0200 Message-ID: <20080616123740.GA15742@tango.0pointer.de> References: <20080613191303.GA3899@tango.0pointer.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from tango.0pointer.de (tango.0pointer.de [85.214.72.216]) by alsa0.perex.cz (Postfix) with ESMTP id AD3732458B for ; Mon, 16 Jun 2008 14:37:41 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, 16.06.08 14:29, Jaroslav Kysela (perex@perex.cz) wrote: > > > > It's rather a silly constraint, and I think it'd be better cut off. > > > > OTOH, this makes the system safer (e.g. avoiding page allocations for > > > > too large buffers), and there is a proper workaround, too. > > > > So, I'm open about this change, so far. > > > > > > Which workaround you're talking about? > > > > Reset a proc file manually like the above. Without this, you cannot > > allocate the buffer over the pre-allocated size. > > I'm not quite sure what you like to change. Make 1MB limit smaller? Or > change the default preallocated size? Or remove preallocation? I think > that it might make sense to increase the default preallocation value to > 128KB or 192KB. For PulseAudio it would be of big benefit if we could change the default in a way the for the highest sensible sampling rate/number of channels/sample type we'd always be able to get a two-second buffer. Windows and Mac use 2s of buffer by default, and I think it would make sense for PulseAudio to do that too. i.e. if the soundcard can do 2ch/16bit/44100hz at best I'd like to have a buffer size of up to 344KB; if the soundcard can to 5.1/32bit/48000 at best then i'd like to have a buffer of up to 2.2MB or so. Lennart -- Lennart Poettering Red Hat, Inc. lennart [at] poettering [dot] net ICQ# 11060553 http://0pointer.net/lennart/ GnuPG 0x1A015CC4