Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp939295rbd; Thu, 13 Jun 2024 01:48:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQf5WhP3hXFd+yXIZyaN7wcTuua3RKLgB49f93jbMGm7g18seCcY30NyGTZowi6pUIH/2HEC2ECKnFSSSIZdrMfCuGq/Ms1sEkZ8hMjQ== X-Google-Smtp-Source: AGHT+IGicvEqIBGyiDB13Rpa9eGULDIDDhmsRqmnrdOW+gj8vd+LhiNqjdwZ4hUckj8zn2UArd/v X-Received: by 2002:ac8:5a4e:0:b0:441:5704:af4a with SMTP id d75a77b69052e-4415ac60ab9mr50933641cf.55.1718268496859; Thu, 13 Jun 2024 01:48:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718268496; cv=pass; d=google.com; s=arc-20160816; b=NqMh1eIVwR/FiuBPq67bAn4tvAhT4nTDoFQAUBHIhivKn2T9MUE5X/JvEJquu3W2J4 GEdZfd+/Vb7QvtuvOmZ3G3O+40FhPKIAuJqI1X/sL/ZxcBKgHZmGcIiZ0j9K8N+dKDeW 0vaYqUX9ZxCj8/J4YkqicEqf1aaDTZNhIH1e3tdXr5vX11miX05E4fZtL3dwXrt/zkt/ KeOlb+8PT6RNDDUYjEF0V8sZ950nfyg8JbKRqIjxgbsGUDpVw1xRSnOsqN5DRFFfkWif K+kgvOsuE6Vj9hrGTz53QL3ZWfE1dx+ouBT49EwOwk/nnplHzeokQdWo/h7xd1P/MOWD 9O9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3yfZl5Uy3j61nQCZXcBqw5F4yIksen6ORXxHgk45Kks=; fh=Oq2BrO5jcnUQu51gs0vProKXYky5o18JEIt1s1yu9/4=; b=O0sUqAIZPOibOYDYNMigIU5kkvoQHRjFp/KT/sXx3rNjHBlKohZbAQ2Bj1NsFdgVbp 2fqPTX6dt1VTHjVDIIe4d/nKj0zs562rm0VRK2pII2H/OSojRclzue9aseql/btihIl1 3Q7KObSu9Y11vUnxEzNsuWwZETnO2fedOIwdgB1ADvzTQi1J2CkZ5sIIQJMB6Qwmx6NE CU8bg4l2d8FlbBStCdqMlKEObOfARpNNi6cq0iJgG6cbm7w4J/DR7eUyPew3vtLipLT3 rtoowbjwBijoWYmTIrojCFSJr6d/wiaa0V8qpnBqGWctQPnR7/KnGEUHY2aITGmLaKRu tlyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UoBfTe+n; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-212869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-441f2ffad2esi9389871cf.628.2024.06.13.01.48.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 01:48:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UoBfTe+n; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-212869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9808C1C22EBD for ; Thu, 13 Jun 2024 08:48:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A68FC13D50A; Thu, 13 Jun 2024 08:47:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UoBfTe+n" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B08413FD82; Thu, 13 Jun 2024 08:47:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718268421; cv=none; b=oFwUbIJuLqxYM7C7O70PIOOhCBlc6IXGUaDbNscsjGdEsScmE8i6vdnkNmMvvcMwt+hmeyF8URjqaq8AWWE6AGrpRIntgoxuLPdAysDsuq2zMNK46p/s4VAPuYc6iaQxWPG2TEfPyZqtP9HjCppK3VVD5D8a5J+yTeg4v9r2LVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718268421; c=relaxed/simple; bh=1MIGK6FDq9dwWEqTUEUAAu8rtn11B0ER/xsJgA5onv4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YbgOpKdqR6FaORjterfg7Ruy94z0sXzMj8htITdzqDiAWGY9il/Yat2bDYZCYeHkcxXEATNh5Dvfy2p5AdCTQTIl3VGOT7CZR63aYSNZwAEa5pqRgIoJZk6AWxGSCcWltASFrS5mM7qdqMeKFStIjTdwjw0OgKx6sCr8DOF8gh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UoBfTe+n; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a6f0dc80ab9so114278966b.2; Thu, 13 Jun 2024 01:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718268418; x=1718873218; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3yfZl5Uy3j61nQCZXcBqw5F4yIksen6ORXxHgk45Kks=; b=UoBfTe+nvOqjQk9STh/9BxTfVK0JHDd1ZlBbxQdoP9LH5IML7Run+FO4ApdPS/DjlB puCFFyk0kBPWVSBIDU3MzH8UW45SkCo7PPAHvD/IVKIUc8EyUHVAJveSzoC1HmTNfeeP 2J6j0tKAZeA9Ac1kxQoGomYNADKd/ZypTAEIwu+k6xw7K+RZoDhRaBNG9/zazqBAehjT czYYhSg3XVLcRhFkqLzCQRerrYlcap1qBm2bPs7r9i2KMZLUjlTWXqyCSksqM1dcM4O2 CYeLSfA+cm9nUi7K6s3bXepvjYmJ5rAeVORZeMJaowqyij/MFla1DDfLD5luPpzpcNIH Sp4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718268418; x=1718873218; 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=3yfZl5Uy3j61nQCZXcBqw5F4yIksen6ORXxHgk45Kks=; b=j5rVbcIyEtbcE8/Nyw+bHSPoynTbBTMi3AAM1kTLULe8UbHIgzD3iHenk9u/ROdCDP MaU7bCtdbVbiQJgCPVWk4HRAGkH90r0hDKWQeKEXUIHYZVAhbkyuMm0WGWUnH3dULmN5 S4J5+2fAXRoM+XP13hlzWSpXZF5pATbmFr17TLL0N4BhMbkqH/nexLUUYCsDVu/4Hh95 U7GWrRQvirHFZYlxEMYa80a+zXOBIcJbiPSb3WSjlN/JTZjq5ysJ38NcPGcrdZrkEW59 afTv9ZkWSUPZWSi4wl89KRRBrPGhA+5RLmkM9VNV8nnDi8OAO9Sak+AZF1b0jx6xwq2n t3dw== X-Forwarded-Encrypted: i=1; AJvYcCXSASeI5zkP1kE9YBt7jmlrJm+gDB5IFR6Dd6sKcFPMj+PhkPrnM1xxfTj5nqH94yk17zY1B+RFnDA6k6y4xT/luxj6EJMJPmdJ11Ls X-Gm-Message-State: AOJu0YxYvi828Xaa5Ecj1HGTc3fPF+WTcAUKFG5N3OM7QjTClGdIstDU 4EDL5NtBlWWIenWZPwTbZ+fdBOnvK9yzcutxtNkXcJNXM13cX0YO X-Received: by 2002:a17:907:72c5:b0:a69:13a2:4f6e with SMTP id a640c23a62f3a-a6f47d61fe0mr323396166b.74.1718268418356; Thu, 13 Jun 2024 01:46:58 -0700 (PDT) Received: from andrejs-nb.. (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56dd2daasm48364266b.97.2024.06.13.01.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 01:46:57 -0700 (PDT) From: Andrejs Cainikovs To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Andrejs Cainikovs Subject: [PATCH v2 0/3] ASoC: nau8822: add MCLK support Date: Thu, 13 Jun 2024 10:46:49 +0200 Message-Id: <20240613084652.13113-1-andrejs.cainikovs@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Andrejs Cainikovs This change adds local MCLK handling, which would cover a case when a reference audio clock is present in a system, but is not allowed to be changed, see [1]. [1]: https://lore.kernel.org/all/ZfBdxrzX3EnPuGOn@ediswmail9.ad.cirrus.com/ v1: - https://lore.kernel.org/all/20240409121719.337709-1-andrejs.cainikovs@gmail.com/ v2: - Fixes the issue of unbalanced clock enable and disable which resulted in a negative clock reference count. This triggered "already disabled" warning when the system was suspended. Andrejs Cainikovs (3): ASoC: nau8822: move nau8822_set_dai_sysclk() ASoC: nau8822: set NAU8822_REFIMP_80K only once ASoC: nau8822: add MCLK support sound/soc/codecs/nau8822.c | 76 +++++++++++++++++++++++++++++--------- sound/soc/codecs/nau8822.h | 1 + 2 files changed, 60 insertions(+), 17 deletions(-) -- 2.34.1