From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Fwd: ALSA queries Date: Tue, 07 Aug 2018 15:15:36 +0200 Message-ID: References: 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 mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id C296D267692 for ; Tue, 7 Aug 2018 15:15:37 +0200 (CEST) In-Reply-To: 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: Chakravarthi Pradeep Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Tue, 07 Aug 2018 15:12:08 +0200, Chakravarthi Pradeep wrote: > > Dear Takashi, > > Thanks for your reply. > > > The "period" in ALSA PCM definition represents the interval time (or > > frames) of the periodical interrupts on the ring buffer. If the irq > > is issued for each 256 frames while the ring buffer size is 1024 > > frames, periods = 1024/256 = 4. The periods_min defines the minimal > > number of periods the hardware may accept. > > Is it 256 frames or 256 bytes ? In the case above it's in frames. But it can be defined in bytes depending on the hardware spec. Some hardware defines in the time unit (like msec), too. > fuser -v /dev/snd/* output is > USER > PID ACCESS COMMAND > /dev/snd/controlC0 Dell 1815 > F..... pulseaudio Now you know it. And remember that PA is often die-hard. Takashi