Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp208675rwn; Wed, 7 Sep 2022 23:38:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5duZzEIk8Azgt4259dysdsva+twAjUJMeMeYdDQRQPTJt9q/SVkr4L/ITo9PP+ffEXZGu2 X-Received: by 2002:a17:90b:3b49:b0:1fe:3552:ed85 with SMTP id ot9-20020a17090b3b4900b001fe3552ed85mr2577182pjb.240.1662619118338; Wed, 07 Sep 2022 23:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662619118; cv=none; d=google.com; s=arc-20160816; b=xLkeUyuQvQBauEAj8eX6MAU+4dySQpQPeO7X9NYV8MWNGnRLQBXceROIL6ZDn1NtLW KnRXz4zcS8PY0SGIy7Ihm8A/KMGX2IIAUDQDxAIXl82cjafTX4GV/9RoecYr8Vw1ySfx Rctbnuo5FqZOS6AQ6H/GzneKz6CuRBBw7O0pWWUkZAvrhKdChVbb9vqyGyo+pz+UcIAX 2UbD2K/nvThsO0ZeoHOnsLrPAHAFAfkFRUHyRr4lg8YU/UIpm/gcyRxWVeWmooVggAwq AmtXer0jWsA5C25Spkn//NHj81SKUL4QjeIJ1ywvBuZzdlxmSTzaU16FiH0ABTejZRQF wSmg== 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=tLJi+1w8MGj6nplunwfzLCX3uDNlAZf3MHgDHEZL7Y0=; b=octCG8BUyaYFVz9QK4lYKn9cxpbXkvPw7RKpHQGu10feInqvwR0Mg9wwwMlO+J7Hc5 Mpvp0gw6wlZvdxaYv4M1RO0ufFitV4RUyPtmGl07X2Q07p4KigqXGhZ9s7R81iNPbaVv 00vG0n1nM+SGhG62kOfuOISEYjZ6ZzBbqz65hjl8mYd74STQFECzMOnQLoqtKDrd3lBN j8OBLrVonm/EL5PWtKQOZPg/q0wx+DO9zunHUrbMGAJFK+IZUTB76veiEpP60Fs4LX+z mca+VP8uTObPyycT0Xljx9d2oRI/ccUSY+idJnswOkwuDs/aVKhhhoThP138zGDycnTi OQ+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ViX7+BLa; 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 bd15-20020a656e0f000000b0041cc7ba2f03si20221439pgb.377.2022.09.07.23.38.26; Wed, 07 Sep 2022 23:38:38 -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=ViX7+BLa; 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 S230313AbiIHGe4 (ORCPT + 99 others); Thu, 8 Sep 2022 02:34:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbiIHGey (ORCPT ); Thu, 8 Sep 2022 02:34:54 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CCF23D582 for ; Wed, 7 Sep 2022 23:34:53 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id z14-20020a7bc7ce000000b003a5db0388a8so1539105wmk.1 for ; Wed, 07 Sep 2022 23:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=tLJi+1w8MGj6nplunwfzLCX3uDNlAZf3MHgDHEZL7Y0=; b=ViX7+BLaUNPNjuus8Uy3mY8zMA8xwBvhnAt7lISD+fG1MbEQHdxoQFqE8eWQzmNLSB Q18yoMXueyqrFpQaJ+XKhiUlOtv1FTnU+7Gm24QDP1SMd2pqnBoaY8llHZA3T72i6GjS 9oP5NZdd36MOz74OQDmwHTgMLb458ju+f49bxUTB2lnVuQWS2oF394OGuDd1LF+7eav6 0/EAM5IU3acuhA+7rXT1G7YsWrma30SUIN7bnrpYpUZaKn/SNM/dd8JvX61eJBCspLLu Y8IyH6sSMHvlyj1EtBvzBnnw6mEY9JosZaWiZq1MbklzeprFr+EzHwAiHWoVPX1wAT/X 8XQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=tLJi+1w8MGj6nplunwfzLCX3uDNlAZf3MHgDHEZL7Y0=; b=k+0uLJQKdBArjuy800iwPiZzenKw0k2uYRhO7s1OEzwGpn2iWe2tdjFYXglfsInWCF 21EXD3jjVZR+uz9crJ/YzsyEywWnJ2dCpBcA66WZmkfL9XCYwuy2B8/4tVFtghz+Kq3b xa/02aGASnGmy0818HHRWY9TIJw3/Yf4DShmshmJo4QMXKulnurODwJgZ3ZJB9QeDnIj syRaRi38EzQRAueORpYtrq5+vHyFu85o5rKmqQ29WVmAqhkq0MBzJNwvsqTx9cMtxV4A rWWM0mUXTV9WX7A0Z2iHxYg01+xM9u2cjj4lGWmpJsld3CfZ1WqmwyLtf7zrg7up+Lyx MyPQ== X-Gm-Message-State: ACgBeo0k1jlg4ZJPMI8nHqc2eUS7geEnoFQgjkwLeGXKxg+sjhU9H4uz Iqjz3NUMjqTQnAtWDUixmK4hQw== X-Received: by 2002:a05:600c:1c1b:b0:3a5:e6ec:d12f with SMTP id j27-20020a05600c1c1b00b003a5e6ecd12fmr1106946wms.2.1662618891588; Wed, 07 Sep 2022 23:34:51 -0700 (PDT) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id m3-20020a05600c4f4300b003a2e92edeccsm1549598wmq.46.2022.09.07.23.34.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 23:34:51 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Cc: lgirdwood@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, bgoswami@quicinc.com, perex@perex.cz, tiwai@suse.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v3 0/4] ASoC: qcom: add support for sc8280xp machine Date: Thu, 8 Sep 2022 07:34:44 +0100 Message-Id: <20220908063448.27102-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 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 support for SC8280XP SoC machine driver. First patch moves some of the commonly used code to common from sm8250 machine driver and the follow on code adds minimal support for sc8280xp. Currently this driver is only tested with SmartSpeakers and Headset on Lenovo Thinkpad X13s. Support for sm8450 is tested and I will post the patches soon. Thanks, Srini Changes since v2: - put SoundWire specific symbols under IS_ENABLED check as not all Qcom plaforms need SoundWire that use common.c Srinivas Kandagatla (4): ASoC: qcom: common: use EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL ASoC: dt-bindings: qcom,sm8250: add compatibles for sm8450 and sm8250 ASoC: qcom: sm8250: move some code to common ASoC: qcom: add machine driver for sc8280xp .../bindings/sound/qcom,sm8250.yaml | 2 + sound/soc/qcom/Kconfig | 11 ++ sound/soc/qcom/Makefile | 2 + sound/soc/qcom/common.c | 173 +++++++++++++++++- sound/soc/qcom/common.h | 35 ++++ sound/soc/qcom/sc8280xp.c | 157 ++++++++++++++++ sound/soc/qcom/sm8250.c | 152 +-------------- 7 files changed, 386 insertions(+), 146 deletions(-) create mode 100644 sound/soc/qcom/sc8280xp.c -- 2.21.0