From: Takashi Iwai Subject: Re: Query about SNDRV_PCM_FORMAT_S24_LE Date: Thu, 28 Feb 2013 09:45:56 +0100 Message-ID: References: <512F108E.20904@codeaurora.org> 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 8D884264F23 for ; Thu, 28 Feb 2013 09:45:57 +0100 (CET) In-Reply-To: <512F108E.20904@codeaurora.org> 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: Patrick Lai Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At Thu, 28 Feb 2013 00:08:46 -0800, Patrick Lai wrote: > > Hi, > > The DSP I am working with currently supports 24-bit PCM sample in > 32-bit data space but with LSB padded. Based on the discussion I found > on line, SNDRV_PCM_FORMAT_S24_LE is defined to be 24-bit PCM sample in > 32-bit data space with MSB padded. Also, there is no format macro > defined for the format which my DSP supports. Please correct me if I am > wrong. Furthermore, which software layer in audio stack of a typical > linux distribution such as ubuntu handles the padding. I don't think > it's handled by the alsa library. Does application or pulseaudio handle > the padding? I would think it's done in pulseaudio. I have not study > pulseaudio codec extensively but would think someone on the mailing > list can give a quick answer. In that case, the format itself is identical with S32_LE. You can inform the msbits width via snd_pcm_hw_constraint_msbits() if needed. Takashi