From: Takashi Iwai Subject: Re: [ISSUE] rtl8192ce appears to interfere with ALSA playback Date: Thu, 23 Jan 2014 17:40:24 +0100 Message-ID: References: <1389767820.2436.45.camel@Wailaba2> <52D6BEEF.5050705@lwfinger.net> <52D76D56.6060906@trillion01.com> <20140116055547.GU19393@us.netrek.org> <1390464800.2436.111.camel@Wailaba2> <89F8E4011FD7234ABFE48744E300CBC206BCE732@041-DB3MPN1-092.041d.mgd.msft.net> <89F8E4011FD7234ABFE48744E300CBC206BCE752@041-DB3MPN1-092.041d.mgd.msft.net> <89F8E4011FD7234ABFE48744E300CBC206BCE7C6@041-DB3MPN1-092.041d.mgd.msft.net> 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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D222C265253 for ; Thu, 23 Jan 2014 17:40:24 +0100 (CET) In-Reply-To: <89F8E4011FD7234ABFE48744E300CBC206BCE7C6@041-DB3MPN1-092.041d.mgd.msft.net> 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: LANGLOIS Olivier PIS -EXT Cc: Olivier Langlois , "alsa-devel@alsa-project.org" , "daniel@zonque.org" List-Id: alsa-devel@alsa-project.org At Thu, 23 Jan 2014 16:36:45 +0000, LANGLOIS Olivier PIS -EXT wrote: > > > > As small unrelated sidenote, > > > > > > If I let aplay choose the hw params itself, how comes it ends up with 16 > > periods when it calculates the period time to have 4 periods? > > > > How 4 periods come up...? > > period_time = period_size / rate. > > > > > I was referring to this code in aplay.c:set_params(): > > if (period_time == 0 && period_frames == 0) { > if (buffer_time > 0) > period_time = buffer_time / 4; > else > period_frames = buffer_frames / 4; > } But you passed --buffer-size and --period-size options. > > and I think that usually periods_num ~= buffer_time/period_time or buffer_size/period_size > > aplay -Dhw:0,0 sine_48000.wav > > I have: > > buffer_size : 24000 > period_size : 6000 > period_time : 125000 > > but with the default dmix setup: aplay -v sine_48000.wav: > > buffer_size : 16384 > period_size : 1024 > period_time : 21333 As already mentioned, dmix has the fixed setup for its slave PCM. See src/conf/pcm/dmix.conf. Takashi