Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2208013rwd; Fri, 9 Jun 2023 08:05:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5w6vsnitENDM9tZdR1HkznQpfhwaX0F61s/vLoaAKqQpM6Zetnh9OVD/n9gDA/gSEhnMvd X-Received: by 2002:a17:90b:4b05:b0:256:2b45:8e1a with SMTP id lx5-20020a17090b4b0500b002562b458e1amr1264801pjb.25.1686323117335; Fri, 09 Jun 2023 08:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686323117; cv=none; d=google.com; s=arc-20160816; b=kTVXl6MiUEK7FInJ2L+MEkMdNkr454l6xSOcc/4FbO+uhLw97Y8ONdyiA50qARxb02 IhxHf6VJ1va8MN2ur3BpdJohg9F1bs7vvlJf9IZDYZGGXxeiCZ/IKZV+B+NTN8dBLX04 k81pRI7Q51P/kSAyoSY6ZfGBUxawO9FEGQapw7gVTITSs6J8EHJCiYLwTZfWTL4uT6mJ DactvWvc8SGVr8Yl0vuxjDFXzVKeHqIb8zVcFex3xPGFjkqZwWY/VTzqY/j2W2M5j6HZ 5k+tzWS1zK3kPGzQxc5vWWtb2k7KyDtcsJjY3awUTM6Eu+Kbh1cjq36H7a36qOcFoxkl O12A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QeftDeyvvysATSitJ+hgLelm68R1NmQyMnxNP/qXI28=; b=on4+DPz8hb6ZOg5U+qHP60EXdctzkREKfWV5GZqIAPEVvE7fNs1qguDyEymH/z9IIZ bp5ZKk1AO1X2lhWDDajR2lrDnuDYKNdEZYll6B5LAfHg6pk2Ky1e3NuC4yYi/AygE07e nMt9o3rE10d1hch91seuHF4SGnKCwvMAlFXhhCFpvISnHqBASFaBZFhUh/HKPv7BAL2N 6GEYi5jN8l6v/FXF0vvJIjcsIfCTgy4dlRTEW0/1TXzhbJg0aahKnsJ9Bn1WJqqfqnZh 0NMYTzje1O3J8Ft0TxBFYTW+I6KyPx6mpSEgj3G2+NdB8F5trHIvcmCCtHUF6Gk2Sl1W Fc4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KSOkzUtK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id na4-20020a17090b4c0400b00246a5991cc6si2864043pjb.162.2023.06.09.08.05.02; Fri, 09 Jun 2023 08:05:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KSOkzUtK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241610AbjFIOyU (ORCPT + 99 others); Fri, 9 Jun 2023 10:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241606AbjFIOyT (ORCPT ); Fri, 9 Jun 2023 10:54:19 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA16C30F7 for ; Fri, 9 Jun 2023 07:54:15 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f61d79b0f2so2450693e87.3 for ; Fri, 09 Jun 2023 07:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686322454; x=1688914454; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QeftDeyvvysATSitJ+hgLelm68R1NmQyMnxNP/qXI28=; b=KSOkzUtKrwVPxWpFH7oNQ7Fv+3X39paXhtnpEsPt+jAqXuCsDV9K4ANu1Hzlg03d1o jVYB5dJdyl1nlnrZSu4WyJ2RnAl9gMmKFIZ469cV3tSOiCHeIRMjVrOHLafx5Wkq4oJM xMoymFNVcUtkE+b1mnEiecCGzP7l8yCRVHeGq5lncuHOfaxXK+K77AdDU+jAwflnMobM 1Trb+ckh94xZwnPpyKHvplw/j+U0OGLIuj5rPfKvldMNHhUTN7N/zD7b541UB3nkaoOU Jl9vIVpslY/2GcIGa2s3k6Ce60foTnSPlqsDR8r5KSYOPNr4pMwKUkdU3WcsAjcHJyL3 2Yug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686322454; x=1688914454; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QeftDeyvvysATSitJ+hgLelm68R1NmQyMnxNP/qXI28=; b=HNDXqVQdnK4FB2lOahrj5oVh2Xd+uciAH6ZfOHesJdLDI735USxJn3QU+mBrRgBBGh nAp6aLdVnxWZJS7O4m3GkHMrcd0bzjsn/zieOye1+JYbc5uVpbE6QF7jZOqNIkgmKM1i 7cO2/ZZTy2DNlV5v/0bWGiMObRsrh1XrJzjOWOOai7ecMAJNloyIFwn7HMRR94kWCVW4 pI0OUjYCWSqu9vrQ89ZpgRb07tKmP33/Oc0nVrTQ5fQLMXs8FRJF/OkyX9gzytwiHras KoYwqFTmISyG1ROHs/Gk1d3xIBR2QLisUcu9f/GZMADjaCoRP8TtwFJv2mw+QehjHqSt il2w== X-Gm-Message-State: AC+VfDy40VezhxyGV6s6AFdXGiLpB68wlXi++3el6dlXEX71onkvaSBu VQijy2lzUIBwdqcHbQUTJGCI6w== X-Received: by 2002:a19:5f16:0:b0:4f6:25a3:95ab with SMTP id t22-20020a195f16000000b004f625a395abmr1044393lfb.25.1686322453936; Fri, 09 Jun 2023 07:54:13 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id c21-20020a05600c0ad500b003f7310a3ffasm2946632wmr.2.2023.06.09.07.54.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 07:54:13 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Cc: perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, ckeepax@opensource.cirrus.com, kuninori.morimoto.gx@renesas.com, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, Srinivas Kandagatla Subject: [PATCH v2 00/11] ASoC: qcom: audioreach: add compress offload support Date: Fri, 9 Jun 2023 15:53:56 +0100 Message-Id: <20230609145407.18774-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds compressed offload support to Qualcomm audioreach drivers. Currently it supports AAC, MP3 and FALC along with gapless. Tested this on SM8450 and sc7280. thanks, srini Changes since v1: - removed lots of code duplication - moved ALSA patch out of this series. Mohammad Rafi Shaik (4): ASoC: qcom: SC7280: audioreach: Add sc7280 hardware param fixup callback ASoC: q6dsp: q6apm: add end of stream events ASoC: q6dsp: audioreach: Add support to set compress format params ASoC: q6dsp: audioreach: Add gapless feature support Srinivas Kandagatla (7): ASoC: q6dsp: audioreach: add helper function to set u32 param ASoC: q6dsp: audioreach: Add placeholder decoder for compress playback ASoC: q6dsp: q6apm-dai: Add open/free compress DAI callbacks ASoC: q6dsp: q6apm-dai: Add compress DAI and codec caps get callbacks ASoC: q6dsp: q6apm-dai: Add trigger/pointer compress DAI callbacks ASoC: q6dsp: q6apm-dai: Add compress set params and metadata DAI callbacks ASoC: q6dsp: q6apm-dai: Add mmap and copy compress DAI callbacks sound/soc/qcom/qdsp6/audioreach.c | 248 ++++++++++------- sound/soc/qcom/qdsp6/audioreach.h | 51 ++++ sound/soc/qcom/qdsp6/q6apm-dai.c | 445 ++++++++++++++++++++++++++++++ sound/soc/qcom/qdsp6/q6apm.c | 68 +++++ sound/soc/qcom/qdsp6/q6apm.h | 6 + sound/soc/qcom/sc7280.c | 23 +- 6 files changed, 745 insertions(+), 96 deletions(-) -- 2.21.0