From patchwork Mon Sep 3 12:34:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10585809 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D5FBF14E0 for ; Mon, 3 Sep 2018 12:37:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C072228FBF for ; Mon, 3 Sep 2018 12:37:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B080828FCD; Mon, 3 Sep 2018 12:37:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F87528FBF for ; Mon, 3 Sep 2018 12:37:55 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4CCF526787F; Mon, 3 Sep 2018 14:37:41 +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 8D5F42676C9; Mon, 3 Sep 2018 14:37:36 +0200 (CEST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by alsa0.perex.cz (Postfix) with ESMTP id 760212673F4 for ; Mon, 3 Sep 2018 14:37:34 +0200 (CEST) Received: by mail-wr1-f42.google.com with SMTP id 20-v6so468384wrb.12 for ; Mon, 03 Sep 2018 05:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HKPlWMrTXSFSzXMCX8iPcSkQb0CTa/AOpm+DdGGB5hQ=; b=HABRKcikHjl/c9FyMsGmVFLGayJ2yq1QBEosCxMVMLLYZKKM4ENTEn4mKq9PZHsNfq Z1kigGpVeRwe4cnM/r9Hx5piPd8I+FPBSe+K87SAhVJ52wZzfKKGM71MAtrKkqHGwh8Q sBf220WEiGI7t2Q+QZAfPKIq/hlVjamkGi74E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HKPlWMrTXSFSzXMCX8iPcSkQb0CTa/AOpm+DdGGB5hQ=; b=egjsywf5OD4KAjvCRHmReBbTN2dVpNzL+QMP+klrn/hUToYR/k41gpu90+qXPUBDLi LkfE0KdteEvkUK6eXoh2NKUAOp859shwBhHzPw1T/GLIw/tVGBzrBJFErdIAEYaNuprA nvgUqafckxO/vs5iM7yqkgk7ZSSPYdRR/Q8ghmhDf2SrA2rjC0t4s95BeuDLLQe2CfFj oLfAC1eKwNCN8FtSTyEW0HOP1GvowQmGL4khPvWQKucERerThCifjnN4XfDh95dBf+RO IybAc3fQ7xmnM3yIdzqMQEoL88/hoDqSAOYgu5CkIIQw8duGAM3TdPuMD8ng86E3zqdP sTCg== X-Gm-Message-State: APzg51B7IwlvCkJkT7Xj5VkLJq7+wjcEUhkLs39z1Qhr0Kax2t52TQHo 4BREQ+xKnwR9gpAfD69n2L4q1w== X-Google-Smtp-Source: ANB0Vda3fUxqNd6jhT5+gcg+qoBhr0qOLE0S4OUEdch3YMktitvHhlKtxg565S+j9rKqFeXVz/++OQ== X-Received: by 2002:adf:c38e:: with SMTP id p14-v6mr20074043wrf.68.1535978253981; Mon, 03 Sep 2018 05:37:33 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id j44-v6sm27481099wre.40.2018.09.03.05.37.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 05:37:33 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org Date: Mon, 3 Sep 2018 13:34:54 +0100 Message-Id: <20180903123455.9290-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903123455.9290-1-srinivas.kandagatla@linaro.org> References: <20180903123455.9290-1-srinivas.kandagatla@linaro.org> Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, tiwai@suse.com, linux-kernel@vger.kernel.org, vkoul@kernel.org, rohitkr@codeaurora.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH 2/3] ASoC: qdsp6: q6asm: add support to MP3 format 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 Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6asm.c b/sound/soc/qcom/qdsp6/q6asm.c index 2b2c7233bb5f..e98aee1baadd 100644 --- a/sound/soc/qcom/qdsp6/q6asm.c +++ b/sound/soc/qcom/qdsp6/q6asm.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -37,6 +38,7 @@ #define ASM_PARAM_ID_ENCDEC_ENC_CFG_BLK_V2 0x00010DA3 #define ASM_SESSION_CMD_RUN_V2 0x00010DAA #define ASM_MEDIA_FMT_MULTI_CHANNEL_PCM_V2 0x00010DA5 +#define ASM_MEDIA_FMT_MP3 0x00010BE9 #define ASM_DATA_CMD_WRITE_V2 0x00010DAB #define ASM_DATA_CMD_READ_V2 0x00010DAC #define ASM_SESSION_CMD_SUSPEND 0x00010DEC @@ -869,6 +871,9 @@ int q6asm_open_write(struct audio_client *ac, uint32_t format, open->postprocopo_id = ASM_NULL_POPP_TOPOLOGY; switch (format) { + case SND_AUDIOCODEC_MP3: + open->dec_fmt_id = ASM_MEDIA_FMT_MP3; + break; case FORMAT_LINEAR_PCM: open->dec_fmt_id = ASM_MEDIA_FMT_MULTI_CHANNEL_PCM_V2; break;