From: Takashi Iwai Subject: Re: RFC: support for 12 & 24Khz Date: Thu, 25 Jul 2013 18:31:33 +0200 Message-ID: References: <20130724172640.GE18642@intel.com> <51F0CAC0.9090702@ladisch.de> <20130725154501.GN18642@intel.com> 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 1597026084C for ; Thu, 25 Jul 2013 18:30:03 +0200 (CEST) In-Reply-To: <20130725154501.GN18642@intel.com> 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: Vinod Koul Cc: pierre-louis.bossart@linux.jf.intel.com, alsa-devel@alsa-project.org, Clemens Ladisch List-Id: alsa-devel@alsa-project.org At Thu, 25 Jul 2013 21:15:01 +0530, Vinod Koul wrote: > > On Thu, Jul 25, 2013 at 08:50:40AM +0200, Clemens Ladisch wrote: > > Vinod Koul wrote: > > > For compressed audio we also need to support the PCM rates of 12 and 24KHz. > > > > > > Looking at pcm.h these are not defined > > > > You don't need such symbols to use a rate. These symbols are intended > > for often-used rates. As long as only one or two drivers use a rate, > > they can just set KNOT and install a constraint. > okay so how exactly is the rate passed to driver and converted and sent to > drivers? Define the own hw_constraint. Usually it's implemented via snd_pcm_hw_constraint_list(). > > > But am worried about wider impact of adding these rates. > > > > > > Can you let me know if more is required to be done or below is fine > > > > Grep for 176400 in sound/core/, include/, and in alsa-lib. > SNDRV_PCM_RATE_176400? Heh, this was an already added one. Rather take a look at SNDRV_PCM_RATE_KNOT. Takashi