From patchwork Thu Jun 19 09:37:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 4381801 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 079209F1C4 for ; Thu, 19 Jun 2014 09:36:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FE36202EB for ; Thu, 19 Jun 2014 09:36:52 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 60E2320306 for ; Thu, 19 Jun 2014 09:36:51 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C4169264F2D; Thu, 19 Jun 2014 11:36:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 68E812619F3; Thu, 19 Jun 2014 11:36:45 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 61EA8261ABD; Thu, 19 Jun 2014 11:36:44 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by alsa0.perex.cz (Postfix) with ESMTP id 30DC5261A81 for ; Thu, 19 Jun 2014 11:36:31 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 19 Jun 2014 02:31:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,506,1400050800"; d="scan'208";a="550278109" Received: from vkoul-udesk3.iind.intel.com (HELO localhost.localdomain) ([10.223.96.65]) by fmsmga001.fm.intel.com with ESMTP; 19 Jun 2014 02:36:29 -0700 From: Vinod Koul To: alsa-devel@alsa-project.org Date: Thu, 19 Jun 2014 15:07:02 +0530 Message-Id: <1403170623-6288-1-git-send-email-vinod.koul@intel.com> X-Mailer: git-send-email 1.7.0.4 Cc: Vinod Koul Subject: [alsa-devel] [PATCH 1/2] tinycompress: update compress headers for sample rate field X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP commit "929559b: ALSA: compress: add num_sample_rates in snd_codec_desc" adds array for passing sample rate instead of bit map. Update the local header as well Signed-off-by: Vinod Koul --- include/sound/compress_params.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/include/sound/compress_params.h b/include/sound/compress_params.h index deda425..378417a 100644 --- a/include/sound/compress_params.h +++ b/include/sound/compress_params.h @@ -23,6 +23,7 @@ #define MAX_NUM_CODECS 32 #define MAX_NUM_CODEC_DESCRIPTORS 32 #define MAX_NUM_BITRATES 32 +#define MAX_NUM_SAMPLE_RATES 32 #define SND_AUDIOCODEC_PCM ((__u32) 0x00000001) #define SND_AUDIOCODEC_MP3 ((__u32) 0x00000002) @@ -209,7 +210,8 @@ union snd_codec_options { struct snd_codec_desc { __u32 max_ch; - __u32 sample_rates; + __u32 sample_rates[MAX_NUM_SAMPLE_RATES]; + __u32 num_sample_rates; __u32 bit_rate[MAX_NUM_BITRATES]; __u32 num_bitrates; __u32 rate_control;