From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 B99FF4BD37E for ; Fri, 9 Oct 2026 11:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791544435; cv=none; b=noaWac9dbLET6DIo4a73QEBROVveLdPg2Xk2cEaH1V19UAjVrQ8XbCLozdWzYJdkG4uYvW21M0V3X5Mei+nmRY339nqfra54ArGekeSUEMliMnKBAee2UbyIV+AZZxU7eFP+gvnLfNFJdTKvyNEmyPzQKh5J3uTOQaknUcdHRYk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791544435; c=relaxed/simple; bh=hB7RUXXcplyw1SxWPvRgz7883UT15C/LbarUbzqzH5g=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=YnDjVuk5iFPybW5vrpEIYsC05VvMKvmDtivFAh08/R4iuvHJ7tVQDxWbfsLcN6F2agtC+vDqUDrIMur5yI6IV2rAifCN88axolmRLNEeJDDXPdahUHrzDePScosXXxePPsF59GqSxr4EwDMlJJrpeeSL9V+LpIQQULMytDy8m4k= 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=f1McgZ/I; arc=none smtp.client-ip=209.85.128.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="f1McgZ/I" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4a061a13884so34487545e9.3 for ; Fri, 09 Oct 2026 04:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791544425; x=1792149225; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Ga3VtcTLqZl5ClQan+7orwRYwMHOLr/NfbU62M9Yt8c=; b=f1McgZ/IlMCsRvPdEeX8Mqbk91HpoDJmnd07R4qzDnQT7//uin6eDwdPU+zy9c5GHy rxOuhuIUYeTVHQWGF02LZpGXsaEncdzytBj4tyEjE3/pEphVQCvzWYXcbTdJKsMoQJ6c UsDfyPhVKmzWMRG+yBT1Vut3CXabMiR7AYzAuh/13FBNsG+87xlNm341mMfLzeJMdmV8 A6c0CcXPHy5mLTm71qesx+0s3XHBPcZQXwnZFhl37rLtvMbOB7Eu5KRRmzeN3ci4Vy6N kqYjxzyadLcNQPJxK5aCWjk4jKUaH+geAlqAfkCBpwkFiBHGmRaSB+DYuTh6nSHHNOF+ LsAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791544425; x=1792149225; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Ga3VtcTLqZl5ClQan+7orwRYwMHOLr/NfbU62M9Yt8c=; b=oeSoa0DVl4nPK0wg9aNg0fmA7VMu6k8OBPHJPjaEusx/Ot0RgnV/7f1R5iY/ZZWubo A0/gfJxTukwSMp4aZYaZTXLWauzFecJ8vSedAve30zq08ceHTQK8dNxHmy6ijHlgIMjF VZXWQ+ASTNJRJ/WQ/q1qTdhiLVepAF/NdzR3xBOJRk5NgxTycERxSc5d+IW4pwJVOsET ZkdUvJMf8i+InGoP9ADmsoOGfpQZJzdlzpcTtkfbUEFVmJAobbPgTU9mPWUe21xS0hOC tTcVfG8ba0VUtxhG4njUwG0uYOC0CGGWpc5PytOUJ8n1nWfxFGfEQKtzQCvb3Uxzc23v K4Og== X-Forwarded-Encrypted: i=1; AKwUvBzUjKWUC9IXHElszCAThskaS4HnrgUn+KjTcAFu+sjBjsvBFpWnF4mV/CP0vCitsKigKehHIWy7Q+02kQ==@vger.kernel.org X-Gm-Message-State: AFuF++kkfuG6v2PBLu3h7uivcJiQ/q6P2CfW7d2Se03CtD+D90LZ/jIR oyDYPVLNSt5C1Sa+bqOBzLqkBpfUKFH20+yf5dv+Su+I3V5GUpOsIE46 X-Gm-Gg: AYBFou1mKyo/0goQQCGnZxIH2AdysXAJnORYpoNG2OImYfJZLWYLXBS85p5xBCKSW0b fjtFK+JYUID4s9wQi0BMFUkKyXtEPqZEC48wCsfTF0Nk+tBsF+MoeoIrijNeH7hPDkiyLu1+FXS aM1rHkTlIMw3PYnM7jZQZCogyxMvRtgNd/x49saaYYIt6XguxIOJo+4V2ifyT4EQ2hYnbheNExo wroCKF9KhBzld90f8ve1L/WikDmfvjiekp8gtzByroPBItBBHfccKGsFQ/ZSzS0iMMrcB3LCz3P 419GIRS1++tyOpZNVwC6WFzFiClspFuZG8eU9ji3LmjF/YWoallBXmFZtfHUqG5R0p9vUPVcJLs VNzOnwAboFf2xkeQyf7KhsGBDx0ExotAP/f1hZvQg2n7ILWjgJWbvXstwABV5BqQ9Jj6s56sG0p 4QAHgcj0ll2QUu1bhnZqgRHrssg4cGtMUV3iHjIO+c+ucgbus/T/xvy648h6xxy8AuZSZX9FnkO 8AjYyj6q+UVWAy6MpXR9BDoZOYornVvWMjVc9xmr9secFPR66H/rQSVlGNrGFlHpwOLMZbenMVt ydEMiU6RQPsYMlI+ X-Received: by 2002:a05:600c:4fcb:b0:4a0:1c69:f607 with SMTP id 5b1f17b1804b1-4a18e4c3dd0mr26633215e9.29.1791544424618; Fri, 09 Oct 2026 04:13:44 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-213-45-9-252.retail.telecomitalia.it. [213.45.9.252]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4a18bf135fasm45503605e9.5.2026.10.09.04.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2026 04:13:44 -0700 (PDT) From: Christian Marangi To: Christian Marangi , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Philipp Zabel , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] ASoC: Add support for AN7581 PCM driver Date: Fri, 9 Oct 2026 13:13:30 +0200 Message-ID: <20261009111334.23522-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Airoha AN7581 SoC provides a PCM interface for VoIP applications, supporting playback and capture at sample rates of 8 kHz and 16 kHz. The driver configures the PCM bit clock to 2.048 MHz and supports 8-bit and 16-bit samples, with up to 32 channels. Add YAML and driver. This has been verified with loopback and confirmed by Airoha with ZSI voice chip. Changes v3: - Out of RFC - Add Documentation patch - Drop SLIC testing code - Add MAINTAINERS entry - Follow normal pattern for commit title - Improve commit description Changes v2: - Rentirely rework IRQ handling - Fix problem for timeslow configuration - Better support duplex mode - Better handle descriptor tracking - Move to Soc directory - General code fixup and cleanup Christian Marangi (2): ASoC: dt-bindings: airoha: Add AN7581 PCM controller ASoC: airoha: Add support for AN7581 PCM driver .../bindings/sound/airoha,an7581-pcm.yaml | 52 + MAINTAINERS | 7 + sound/soc/Kconfig | 1 + sound/soc/Makefile | 1 + sound/soc/airoha/Kconfig | 10 + sound/soc/airoha/Makefile | 3 + sound/soc/airoha/an7581-pcm.c | 910 ++++++++++++++++++ 7 files changed, 984 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/airoha,an7581-pcm.yaml create mode 100644 sound/soc/airoha/Kconfig create mode 100644 sound/soc/airoha/Makefile create mode 100644 sound/soc/airoha/an7581-pcm.c -- 2.55.0