From patchwork Wed Sep 26 10:23:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10615657 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 8B7FA14BD for ; Wed, 26 Sep 2018 10:26:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 859512A7A4 for ; Wed, 26 Sep 2018 10:26:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79A882A7AF; Wed, 26 Sep 2018 10:26:03 +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 BB8B32A7A4 for ; Wed, 26 Sep 2018 10:26:02 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id DF9872678BA; Wed, 26 Sep 2018 12:26:00 +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 1BAEB2678BF; Wed, 26 Sep 2018 12:25:59 +0200 (CEST) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by alsa0.perex.cz (Postfix) with ESMTP id 088C2267730 for ; Wed, 26 Sep 2018 12:25:56 +0200 (CEST) Received: by mail-wr1-f67.google.com with SMTP id y8-v6so22781991wrh.7 for ; Wed, 26 Sep 2018 03:25:56 -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:mime-version :content-transfer-encoding; bh=lcd6u1ndTCnAc1VHhAVdt0N3LitCvS0N9H8ozFD8tYE=; b=NMtLNU3f+JW+ic3veGUj+7PyrO++3Mv3VnrVgAiHhHhoTLWHi3u8muLf7J6DDO693V nRGqo4ePRsIJWwqHVyXI3DZpynGcnTz0209FaSFZ40zKrc2aIDt/ETI2SFWtx0kvh+w0 yz1V/x6ozWQR8r+m0k1gWvNTD6hj1APoWDMyM= 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=lcd6u1ndTCnAc1VHhAVdt0N3LitCvS0N9H8ozFD8tYE=; b=ItuuMyFfGA8PFEscAZUCYZjzOC7l+2ngHButHbLDoEqEIIjzQRsgmJw3xgsCL53VQx Y6vUUSgAOTbYfghpaNNZhQtCo8k27423TnIZaWcoOOdnPrI4Wnel9lVIkcgvVrswlFlv GQnOeZsbxSRSILYYZ+i+b/aOswV0kAJhHztZAE4X0l8OqhbtolYMstyL4+nP6OP39fzq RsR2FwtU5pPmAVqGP8FIE1H9CuoMa4q6vquRIMayZFBHFaSEYGpSGJF612qICxNWOUIU riG3HrY3gL4muojhr2D9OHugSvTWXLbv341VLJbF1UY5Gz75csHAfTR4Kmh/YT098i+3 vyjw== X-Gm-Message-State: ABuFfohRBfjtOUzvQWAu6UucgyYlme33dE8G5El2BHcJs2rlkFTXn74+ QuS8ywdOnwUw5g1kk7V5srcv8Q== X-Google-Smtp-Source: ACcGV63FHtOgDt2F+TjLEQEdMg8AhpmPxnHtFo2PRQH2wBNJ+gLst0w2SVMq3nj6X/LzTk3SkinDNA== X-Received: by 2002:adf:9a84:: with SMTP id a4-v6mr4389463wrc.78.1537957555741; Wed, 26 Sep 2018 03:25:55 -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 b12sm4442648wrx.11.2018.09.26.03.25.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Sep 2018 03:25:55 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org Date: Wed, 26 Sep 2018 11:23:44 +0100 Message-Id: <20180926102349.23481-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 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 v2 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 v1 (https://patchwork.kernel.org/cover/10585805/) - added support to snd_compr_set_runtime_buffer() - make use of generic copy function - few trivial cleanups suggested by Vinod Koul 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 | 377 +++++++++++++++++- sound/soc/qcom/qdsp6/q6asm.c | 5 + 6 files changed, 443 insertions(+), 4 deletions(-)