From patchwork Wed May 5 07:26:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12239183 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7560EC433ED for ; Wed, 5 May 2021 07:27:17 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E25EE6117A for ; Wed, 5 May 2021 07:27:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E25EE6117A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D31BC16A5; Wed, 5 May 2021 09:26:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D31BC16A5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1620199633; bh=J4rP+0V7QFNCIHHF0uZBOk0UMDfPAWQ+DKfH4HxTOAk=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=RdAyFG/DWrajC03a42ggigdtHuzJLJ7jm7TKln3T3SgTkpCuDM1bjd0zi/PjW1Qr9 6R+aATWDqCRI2TrzCsX9J1GoKCWKrbSbGxPQnhVULL6Sj1C/B1exMZRTuxL4NrZuF6 EElV5ICRrn+9ByquG8Gme5Lnl/5JR9irqR0H6Fj0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 34A6FF80163; Wed, 5 May 2021 09:26:23 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8D4EDF80268; Wed, 5 May 2021 09:26:20 +0200 (CEST) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 45D0FF80163 for ; Wed, 5 May 2021 09:26:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 45D0FF80163 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="tNBsreuC" Received: by mail-wr1-x42f.google.com with SMTP id l14so644830wrx.5 for ; Wed, 05 May 2021 00:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sSGB223I3PeBh3TG2RAuibwn3vbLRJONtkpynCow05g=; b=tNBsreuCJZemMha64jCuI97TnHZ0gwzRwx0zYrIb/M9JCEXaMBrNLQ7RxmV/PmWrbY HJoT2YoPVdEKNxcpCrk1VeJ0q5XVpBaRl0oNSqrmPy9aJajrmXRwxzcptYXNLBL22kg4 kCI9rkOnmAKzVCFy0DAPO33h3iH53CX7AB+litwzli2VPeHS5m1OcNMogGiPj6w022RA E25OcZd9zZ4KiGk25bLrmRDXKvKPpwNFRI86GPn4Ff70sJHM29lmSjg7EFFDr/Ig830k tsKRqgMl3nZz5hbO9EZE4zKIvHL7NXpVXpMHGPUE/vvVs2FNzPMtmZmn3ndH27pIZCXU 81RQ== 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=sSGB223I3PeBh3TG2RAuibwn3vbLRJONtkpynCow05g=; b=dXtfmVZ8DxZVCLzenxz0ESswGhsorS0KwjPj39pRCHQ0OnzjBybkSmgvDMgADkJMdK RF29z7/ikZbEQ1p5AyZYJRw2F2jia7+4wRSKM83gLN921ypOzCcEAfFGYcCY3hQ4oQAX v/WtZTxc2c6mzdaMA5VftT/yexTH7apny4S8Rl2khsZHbHqIFtbGYNvvbB2yl+UoTBki G9qyXNoLYZdwwHvZR+CcpegxawyKh7ZX7VwxCUjD2uaTbmrMtA8RepTxSHYXxLitJyIe u5mWqTssmdJCyMlmvtEvi9bTQK5kdGtYd89wS/CMvc41ePik7IaEuIC9YspMlQoqps/v AASg== X-Gm-Message-State: AOAM532IdTjAm6zNacVWT3zLY801G+bbzX8ZysuoeVu/frt0LZqIB415 EaPE+RWn5woNcrJux3n9ABXdPw== X-Google-Smtp-Source: ABdhPJyABkwemPMKwQp9GLUEV/VZsbakg+LdwJTV16+JOgDc0yiICSRNDSpsAxOBJf+N1wu1PvwxEA== X-Received: by 2002:a05:6000:508:: with SMTP id a8mr18035799wrf.315.1620199572246; Wed, 05 May 2021 00:26:12 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:6eb3:66ab:cb1e:ef0]) by smtp.gmail.com with ESMTPSA id f25sm19008991wrd.67.2021.05.05.00.26.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 00:26:11 -0700 (PDT) From: Neil Armstrong To: jbrunet@baylibre.com, broonie@kernel.org Subject: [PATCH v2 0/2] ASoC: meson: g12a-toacodec: add support for SM1 Date: Wed, 5 May 2021 09:26:04 +0200 Message-Id: <20210505072607.3815442-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: linux-amlogic@lists.infradead.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" This patchset adds Amlogic SM1 support on the TOACODEC driver, first by switching to regmap fields for some bit fields to avoid code duplication, and then by adding the corresponding bits & struct for the SM1 changed bits. Changes since v1 at [1]: - switch to regmap field [1] https://lore.kernel.org/r/20210429170147.3615883-1-narmstrong@baylibre.com Neil Armstrong (2): ASoC: meson: g12a-toacodec: use regmap fields to prepare SM1 support ASoC: meson: g12a-toacodec: add support for SM1 TOACODEC sound/soc/meson/g12a-toacodec.c | 144 +++++++++++++++++++++++++++----- 1 file changed, 125 insertions(+), 19 deletions(-)