Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1106710rdb; Fri, 20 Oct 2023 08:35:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdQ5bLs9E30Xc3EgKtUBX/NbRdOy+BRCNrM/svL8Fqluh3AcIm7EQ76BdqNp6WxRfvlPdR X-Received: by 2002:a05:6a21:3282:b0:174:2286:81f4 with SMTP id yt2-20020a056a21328200b00174228681f4mr2493196pzb.14.1697816136530; Fri, 20 Oct 2023 08:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697816136; cv=none; d=google.com; s=arc-20160816; b=wh02SpK/NtP8nW99bUc1g3W9gIL0TAA+3BYybte+wZw3LTVM1hgLnxVWj0hRQ17o0x 7ibONItpVrViAc7uJ+/ViiDa7bGsP+DgYKOlv1I/3Oh+0i/5qTX6MGsL6fVS/yT2NL5N YHPrK30DUwyixO5G8ckLTWCF49m9mIOi8uCsxZqXnZgEOTD3AHQSc31rDV4k14JMAPGv dPw6zB0wpaMVesycW9NVy996UoE+RiL+W14wVGstWLSUmYvemofaVk/BEYRoMIGrj+1P mXojElzQ0CCZVePmPXBrkBFsq3N69qO3lWJwH2Oj0nC5mQFy5KxLGjttS6fqrCAUk8M3 h1ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=aGgYsyY9zRUIPyTJLYaJyH6yHch6auDZPlXtHWOsqLw=; fh=4LrQlIJMLB9MQJPZV0BDkVpvo6vlDY9OyiaVtw6KelY=; b=kno5IFPbrAprG1YfK1xprOaB8BkC2/qlRH6MvR+LXRdgRtaRv3tMHaUo4X/NZxl0d+ GniNFH6LBcLDi/4v4x+mysiKXVZ1ARpeiF9TdtMZ008MiIRIqfq+kNPuEX7iGq0+EuS2 9BwWTMY2WVlviXBDEHTEsC9txbh576keT03O3C9FsHZYAIqPZ/AwMFCpizkpLUffX7H0 CtTaZ7sA/aWckfShD838iOqo82k+k1RnN3TrCw6BJjH5eGlwOCA31YAsEuwyYn/bnFPv E9Kvc0ujwfQKsHrHk1eWPBXduhbsWZJBtelDP5ht3Ia1BozulxMQTxTvjVdeGPvaymXL Sw1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=YnVp5gJt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id t17-20020aa79471000000b006901504b6a3si2043364pfq.153.2023.10.20.08.35.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 08:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=YnVp5gJt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E299F83154BD; Fri, 20 Oct 2023 08:35:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377773AbjJTPeh (ORCPT + 99 others); Fri, 20 Oct 2023 11:34:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377658AbjJTPee (ORCPT ); Fri, 20 Oct 2023 11:34:34 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 743BCB3; Fri, 20 Oct 2023 08:34:32 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 18D4040541; Fri, 20 Oct 2023 20:34:10 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1697816051; bh=qRQqOpHEja4+bOVE0+RE+KlNzc3wVdpb5/j4pLNNEf0=; h=From:Subject:Date:To:Cc:From; b=YnVp5gJtdwMX8ZMIaaDoSKDwjqJQvXXgxFshemOzI6ssvK8imq0f2jHehF8s02o+x 6NGZ1TvMAk5o+7eR7uq/vT7ksA6B+wl6irU+dIhUPh3msdagOUudzfv7Vl90VWBB4i OMQY2GiQL/uYXK1IfT2VvprDGjejRSHWXgPhv1hJpxO6pcrNjDsG9QOxpUa1Q6y/aN crB1K61TFsLQmVZdiDV4wyRf1/QZw4IIIHxLFHHXFDGTtsjungB2LYF6hgcOgIhQPI /tIAllZyUlXmCjqtWZY28YcIwuQwelwJ0hu1p6ib9fTzshhpxcg0FLMFTBB/D+iF2g mccbBzgZqcqTw== From: Nikita Travkin Subject: [PATCH 0/2] sc7180: Add qdsp baked soundcard Date: Fri, 20 Oct 2023 20:33:45 +0500 Message-Id: <20231020-sc7180-qdsp-sndcard-v1-0-157706b7d06f@trvn.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANmdMmUC/x3MMQqAMAxA0atIZgNpFSteRRxqGzVL1QZEEO9uc XzD/w8oZ2GFoXog8yUqeyowdQVh82lllFgMlmxjyBJqcKYnPKMeqCkGnyNyT50j43huA5TyyLz I/V/H6X0/NZpha2UAAAA= To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai Cc: jenneron@postmarketos.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin X-Developer-Signature: v=1; a=openpgp-sha256; l=1022; i=nikita@trvn.ru; h=from:subject:message-id; bh=qRQqOpHEja4+bOVE0+RE+KlNzc3wVdpb5/j4pLNNEf0=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBlMp3uUQVyPi1hr+wNx22OyJ94FaggsSQx/aHpO pCkc2BBfUKJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZTKd7gAKCRBDHOzuKBm/ deraD/44ZNzmfdkYDMy8y/DufJVaMHVQHxfIRanM6yiVCm0bQr+6bXRsPMrzxNhBAmU0xDEd69V Tzd4/2b/Z8oAceWzPe+YzANtsN3BUL6W+sVKHv7h9FJoMazFdpVWk1UOhfNqSG5ycJMlylGyOLB 1i96s/Fu2EGO5dc0eB48TWfDtPyxfnXPindRby3GFfy7xhOLDN3ix8UzaLlBpOT/FidRbWetzGO liQOzYRC0laCjulrI/+88i2nGbdyELjoBAz2dNPRkDs81rbIjmRdpQCSHQLCUwhUHqKX3/veR46 LDouuaExRO5PUMhX2JDiIIgHT0f2lc25b3F/Od1RT7uP6BvdMXnQ5bGSu/jlg3uD4nXvrBxPuVJ a4cU1OLcQY63zy1pGGfmBufxWxzNsiiArH159YfllUasvo6I7+TQCKX6XLNgZ4Gg6IkzpGL7ubo Zo3WfntQNX3sXdmgatQwrzJxXpBG2MPhFGD59b1T21KVeT//Hzf65WLUVI6Bl3VXQrG6s7sES0z Ncg7SDR4Sq4LhZq6RBu90R9G3taZNiaZiKccYwEd/rrQfn0XxfBT/dXRyAzwT0TiKjim7/xafY6 U3kcPXfVtq5ngscsz98JVMDs21XIk9pg3CcKHaaIR50ODYs5gmcQVPULZ6aMNSNyu1Jc6c1z9/9 7IuV3DdXwpv7qdA== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 20 Oct 2023 08:35:06 -0700 (PDT) Some devices, such as Acer Aspire 1, can't use lpass dirrectly, but instead must use adsp core to play sound. Since otherwise the hardware is, usually, very similar across the devices on the same platform, it makes sense to reuse the same boardfile. This series refactors the sc7180.c slightly and adds the functions to control clocks via adsp instead of controlling the hardware directly. Existing google devices should experience no change. Signed-off-by: Nikita Travkin --- Nikita Travkin (2): ASoC: dt-bindings: qcom,sm8250: Add sc7180-qdsp6-sndcard ASoC: qcom: sc7180: Add support for qdsp6 baked sound .../devicetree/bindings/sound/qcom,sm8250.yaml | 1 + sound/soc/qcom/sc7180.c | 195 ++++++++++++++++++--- 2 files changed, 174 insertions(+), 22 deletions(-) --- base-commit: 2030579113a1b1b5bfd7ff24c0852847836d8fd1 change-id: 20231020-sc7180-qdsp-sndcard-e8067017eb4c Best regards, -- Nikita Travkin