From: Takashi Iwai Subject: Re: [PATCH] ALSA: compress: add num_sample_rates in snd_codec_desc Date: Tue, 07 Jan 2014 18:34:14 +0100 Message-ID: References: <1389111942-20810-1-git-send-email-vinod.koul@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 19D8D26507D for ; Tue, 7 Jan 2014 18:34:15 +0100 (CET) In-Reply-To: <1389111942-20810-1-git-send-email-vinod.koul@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: alsa-devel@alsa-project.org, broonie@kernel.org, lgirdwood@gmail.com List-Id: alsa-devel@alsa-project.org At Tue, 7 Jan 2014 21:55:42 +0530, Vinod Koul wrote: > > this gives ability to convey the valid values of supported rates in > sample_rates array > > Signed-off-by: Vinod Koul Thanks, applied. Takashi > --- > include/uapi/sound/compress_params.h | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h > index b62b24b..165e705 100644 > --- a/include/uapi/sound/compress_params.h > +++ b/include/uapi/sound/compress_params.h > @@ -326,6 +326,7 @@ union snd_codec_options { > /** struct snd_codec_desc - description of codec capabilities > * @max_ch: Maximum number of audio channels > * @sample_rates: Sampling rates in Hz, use values like 48000 for this > + * @num_sample_rates: Number of valid values in sample_rates array > * @bit_rate: Indexed array containing supported bit rates > * @num_bitrates: Number of valid values in bit_rate array > * @rate_control: value is specified by SND_RATECONTROLMODE defines. > @@ -348,6 +349,7 @@ union snd_codec_options { > struct snd_codec_desc { > __u32 max_ch; > __u32 sample_rates[MAX_NUM_SAMPLE_RATES]; > + __u32 num_sample_rates; > __u32 bit_rate[MAX_NUM_BITRATES]; > __u32 num_bitrates; > __u32 rate_control; > -- > 1.7.0.4 >