From patchwork Thu Nov 15 18:13:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10684815 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 2B28514BA for ; Thu, 15 Nov 2018 18:15:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 193EF2C92A for ; Thu, 15 Nov 2018 18:15:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CCB02CE25; Thu, 15 Nov 2018 18:15:38 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 87DDF2CD68 for ; Thu, 15 Nov 2018 18:15:36 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 77B88267B01; Thu, 15 Nov 2018 19:15:34 +0100 (CET) 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 7BC3C267AFF; Thu, 15 Nov 2018 19:15:31 +0100 (CET) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by alsa0.perex.cz (Postfix) with ESMTP id 21926267AFF for ; Thu, 15 Nov 2018 19:15:28 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id l9so9358643wrt.13 for ; Thu, 15 Nov 2018 10:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=db37Pa5OnJlalbC1Xts7cB6LQKlYl4+3RdSS9c6lNEI=; b=bLtWpFaBpk/wPHspDeG0fIh9AbH2ujlh3EP51D444ZgAzlve+vlGjjxEwDxcaTtAkT rgCXRY+PxxPmOdX+GoEAIA3qb+GIlb/LYP7WV1Xa2Nx8vf84VK9E1mfPts4YMLEfC/mp TN57c/VZ+KENihs+z3dvMsHCpTnfXMO2tHFAI= 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:mime-version :content-transfer-encoding; bh=db37Pa5OnJlalbC1Xts7cB6LQKlYl4+3RdSS9c6lNEI=; b=IyEv9ax0xK6kNRsk3/i4MRqwQpIJarfG8Kg7L2rgoYiSmqdT6JqRMd5XQGbQkb24kV 7rJle+O1i6E0qHoTHg7EA5TtDGfKWpcGgPZNT5dIL+qn88Ypl6ZlehsTMdUB8N+e7Xi1 23IKwC4RWCzzGnvV8+2QwtmkhiqR91lJmrAtrvPjlCDnrK3j3BhKIXFPxpYTPaT2a72H 7TDalAcEC3XluXnHCtz8PRM/1U91fYd7b6hSn2p5aR1t/1wu07gZCveinCKMVBZY6gEX oPo6o5rdJCm8KoH/ZJXKSydn3NwZXqj/Bwe/f2bmnjcsO/l5T60wmuBIojVuenWFp+rE VqAg== X-Gm-Message-State: AA+aEWaDAamFmAHVZiJzAcL+kIvZNLRwYeh6P/KGRoPvBkyqaw19wsod Y+j8OPOEShxBN6+SKNkKodaGEA== X-Google-Smtp-Source: AFSGD/X9cKTlxIlAHbK3AE971I0x3LU0e0k3zdvI7XGTRV1QKBslBSu0q0Qpu5sHjR4a711oMu5X8Q== X-Received: by 2002:adf:ecd0:: with SMTP id s16-v6mr1634740wro.208.1542305728442; Thu, 15 Nov 2018 10:15:28 -0800 (PST) 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 r76-v6sm20934737wmb.21.2018.11.15.10.15.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Nov 2018 10:15:27 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org, vkoul@kernel.org Date: Thu, 15 Nov 2018 18:13:19 +0000 Message-Id: <20181115181324.26784-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, tiwai@suse.com, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, robh+dt@kernel.org, rohitkr@codeaurora.org, srini@kernel.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH v3 0/5] ASoC: qdsp6: add compress offload support 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds support to very basic MP3 playback compress offload support via QDSP ASM module. Tested this patchset on DB410c with APQ8016 and DB820c with APQ8096 using tinycompress library. Adding other codec support should be trivial w.r.t qdsp6 side, however there are other dependencies like compress UAPI header changes and FastRPC which are being worked in parallel. Once ready will post them! thanks, srini Changes since v2 (//lkml.org/lkml/2018/9/26/461): - Removed some unnecessary empty line adds. - Added more info to snd_compr_set_runtime_buffer() commit message Srinivas Kandagatla (5): ALSA: soc-compress: add support to snd_compr_set_runtime_buffer() ALSA: compress: make use of runtime buffer for copy ASoC: q6asm-dai: dt-bindings: Add support to compress dais ASoC: qdsp6: q6asm: add support to MP3 format ASoC: qdsp6: q6asm-dai: Add support to compress offload .../devicetree/bindings/sound/qcom,q6asm.txt | 27 ++ include/sound/compress_driver.h | 19 + sound/core/compress_offload.c | 18 +- sound/soc/qcom/Kconfig | 1 + sound/soc/qcom/qdsp6/q6asm-dai.c | 372 +++++++++++++++++- sound/soc/qcom/qdsp6/q6asm.c | 5 + 6 files changed, 438 insertions(+), 4 deletions(-) Acked-by: Vinod Koul