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: 12239185 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=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 EA9A9C433ED for ; Wed, 5 May 2021 07:29:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 9D672613BA for ; Wed, 5 May 2021 07:29:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D672613BA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=SKBJAbvGarAsLhnpWnOQlDht+mgbrJar6SsnpLNuat0=; b=D261ZvEOPb2IA7FDFstprWXa8V h+Zd9uATupl73sIcOZhFn7pQCisMQTd0OEQbpgyCo6iGeE7iV2jkT/KkK9fR7HJFVUZrl9ygjd/e2 wwrc02NOdEk8Xy/CX0kOYymKtZkzPArBG1yXYrbq5v3nWaIkuUKpSiqdFT4rzJjjfb8QzhznuUlgh aUi2xvDPuZ5c/mOGXFjw0QWRM5Nvwk4orAir69NM9ItGW2Bx+vYTZWGXBeQCpQc95v/LAedVYW6rM zZKYVbfWaYOjd1h8n5MHOdkgKu2XXd7qbUrsj3JypM2q4FKpXYW3Dl//ks1praRBmlI1r4hK8Psen OxabohUA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leBvN-000SbV-6G; Wed, 05 May 2021 07:26:25 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leBvF-000Sa8-SJ for linux-arm-kernel@desiato.infradead.org; Wed, 05 May 2021 07:26:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=sSGB223I3PeBh3TG2RAuibwn3vbLRJONtkpynCow05g=; b=ymU/+L4bllu1OqFL87RO6mdotQ dVhGorKvrMK1q6sojL4ACSjWUG1kc1jM5VtkmaxYvzh6WGrFjJN14W3DwEYsdgzrdseZETMXYrw7b Lbr3deDoiH0PkO5VODvwnLHMUlsf0fngTMhB2v/j8nL5a/pbbwplgpBOLlb6+Q26c9FWEEG3izub2 0BbFT9keiFEP5iZwDqBTSkK6eqd9ZlqTb9rMjxmB64EuHmu4fey+NqsIjWanJNDnfdhOb1WABg1lP I8L2ZdCFugPaItfn741a9jYwDLs/mCQNZQPWoe+9OUG/vHX6b+dSUVrt8wJrpLXKI0LpFhJevynWw xsf2831Q==; Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leBvC-004Wrn-H4 for linux-arm-kernel@lists.infradead.org; Wed, 05 May 2021 07:26:16 +0000 Received: by mail-wr1-x42e.google.com with SMTP id h4so624237wrt.12 for ; Wed, 05 May 2021 00:26:13 -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=d3H0airkJkp5EIGuJCB+nXgY8zCUnvwe/q9GKFCki8YwXvkHjGo23ta3kVqqY+ZQ9l opBh9E1FAzTJU52ohmpNEH+/P7XXEPsV6X3YVK5jw29SFigY84MKx6KT+xVuUE5w+grH PhydqEOwJCL3c2PZQ3mzsD58m0WTdiGj4mkr745rpXg1tx8q9+6O8IJzK4gBMKr5OzDJ RLDSRHhiB0udC+P70xLxgWe87b+eIoHaZfcnw9GB9Pah78ij5CbqnvjVfVDCZaPcR4LU 7cw0HvO5tZfXfMhwD6jLtkW0Fb2/AoCPeddE8szjbYJe61kGvk/PTaaurgPKwEZajZ/l wazw== X-Gm-Message-State: AOAM532hqa6IeNzwE/1/eGEl+GC6TjaVEdWqB6dMjqVLyf970pCrQWg7 S/X8+ua1ALGgMdTpveGomfwjTQ== 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 Cc: alsa-devel@alsa-project.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_002614_663587_C66F4BDB X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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(-)