From patchwork Wed Nov 6 00:57:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiseok Jo X-Patchwork-Id: 841079 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 58E31D40D14 for ; Wed, 6 Nov 2024 00:59:04 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 27DA614E6; Wed, 6 Nov 2024 01:58:52 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 27DA614E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1730854742; bh=XWRbryqSgfMo81szwgk91HGUrrb+ZPB0GxVRluyDt3o=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=d4zzi+P1TNR2u6vLn3Ra1xfYYlZqTJiGvNUP2FYb+8X+5mEHPWtXLVEdgQAMOnLhP C3C/tEdb9oGm2oCMn9m98Cm2pCMXAXdMHkYiiSgyzL58J5nU5or2CdoJ8qB/Vb+Kiy ro7h/xor4gv67tiJZWgkNbyQeimSkCRazRK9Ov0c= Received: by alsa1.perex.cz (Postfix, from userid 50401) id F34AEF805A0; Wed, 6 Nov 2024 01:58:29 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id DBDD8F805B6; Wed, 6 Nov 2024 01:58:28 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 93E58F8013D; Wed, 6 Nov 2024 01:58:25 +0100 (CET) Received: from PUWP216CU001.outbound.protection.outlook.com (mail-koreasouthazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c410::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id CE9CBF800AA for ; Wed, 6 Nov 2024 01:58:23 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CE9CBF800AA ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qAlbo7t35+oc7ff1a2zbKOFTV3K8Be5kqvnqWajNc32dAgW06HoN79xoaFIN9vi+0JpbTuvP5amovkc+8tOktd1v5Z2K5jLwZjnw0hpvcJ2jj0qqtFj8pqvUmZ4Dj2topF/NHYfEMOLaFHAA4HAduO27SnFcZw88w52yG7CLEHdi+4tB2weovpHAvlfow70b9obDvvLNpPzVELtNrjEIpy72tTpx8vfSKnfLZQCYvFGKdNwl03SQ/yPssoDasD0eDVl3iyOeZobBaKwywwB6pi0QppweWJ2pf3QdaMIEpAyPrkgNTHZZyYssxgUxU8XvoMfjdMwoMUrnIFAiIbgijg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jYEwDQfDeqxNQsw9TYrhNPFt6WUhugmsNScw2SaSfEI=; b=lUh5HXt9/LyXbgUHgZCUHXYbNJcltABQh2rFu9ClL5ogHA7B4ZqDcm51YPfq9zWW7xZ9cCISp1oT+RttiB7RVgTSPcI6qSGJmP83nfTI+Nr09ja+osaPfxo8430GmykJ8gL5+/p9asSaJs9ZkYQHZ3ovTrlcnS/8ayvxpBKk4DCl8NXNlFUsAedoOuken5qayZ4DvwkMEioqYzz3VWttbyMP/MbLko5ppaug2k+9yF87tSg0pU5PwHCfhMsPZ8Kj6Pz83KelloHu6suCleVQgt+Z2JuhxdDvDka96+FPUXY7Q1jJRtTd3qjlmdXskeVjDDdotc7NQ4AmV2Yp2QACqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=irondevice.com; dmarc=pass action=none header.from=irondevice.com; dkim=pass header.d=irondevice.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=irondevice.com; Received: from SL2P216MB2337.KORP216.PROD.OUTLOOK.COM (2603:1096:101:14c::11) by SL2P216MB2112.KORP216.PROD.OUTLOOK.COM (2603:1096:101:154::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Wed, 6 Nov 2024 00:58:17 +0000 Received: from SL2P216MB2337.KORP216.PROD.OUTLOOK.COM ([fe80::7e8d:9550:c46b:2756]) by SL2P216MB2337.KORP216.PROD.OUTLOOK.COM ([fe80::7e8d:9550:c46b:2756%4]) with mapi id 15.20.8114.031; Wed, 6 Nov 2024 00:58:17 +0000 From: Kiseok Jo To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kiseok Jo Subject: [PATCH RESEND v4 0/2] Add a driver for the Iron Device SMA1307 Amp Date: Wed, 6 Nov 2024 09:57:58 +0900 Message-Id: <20241106005800.7520-1-kiseok.jo@irondevice.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: SL2P216CA0086.KORP216.PROD.OUTLOOK.COM (2603:1096:101:2::19) To SL2P216MB2337.KORP216.PROD.OUTLOOK.COM (2603:1096:101:14c::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2P216MB2337:EE_|SL2P216MB2112:EE_ X-MS-Office365-Filtering-Correlation-Id: 7626e150-cd3e-4ef8-179b-08dcfdfe195d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|7416014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: nXSg0OT1qQVQNkJryJELwUT5L33vyO3cbCZRVbNDZCMTLMuO9utSw9VM4IyZvF8O7LYnm+WV5dkac9F34lr7PRkkEGRbqOcZXQykmYXteCcqnx3Q0G4Zqp7nHYYvxc3YcI6iSwXyK4Th09AneY32dHZ7zw/2EB2ODlPVnYPOv5/XHlG4773YujSM5putdhURl85Qwr64MDDhCNF3/p/O4T+l4aHfWpRqpT9krk+cRN/FVc3cvIT9o8GwyGB9XgvsePWAfPzLd+zmgtGSzzfwPat4ivk9oKBg3sIWp+QKwWZXviUsmeHad998zRH5muDvVdty7XklIHg3PmxHX0jmiWGyQFXQ1DYQgQA7XmFNtZ9pOpOORmeCowmC7geFWxIQ6m7j2myrUNkF9zG8OJtWC7l7mMrpQNwk3lFArzc3LUyYwJ34uyuLD49r37GK5xkmuvM4kHYReRmy6RkQ4qX/j197GK8zLItkDX0ted/y8X6kMdbcKkNvX690+EEmdvccL4IecP1f+K4p+bA1PnP+xnHLAwaICRXOXrqSo5pzj+iYWOPkckNsWtG2Hl/RKFh+QJVV+BZWpXJrqyUExnoMC02vLAMa1tzNp8AfUiJ+qI1uPwXFGYEqa2T0D8roXhYd7wfCgkNV6cGjTqESgK9DRxpN2e8sCudsQ5mUffA8c06Be43PwC/yb8jxkmvL2dX70q5kgsU3fuSmmnC+VcVzT2sEf0GXIUhAABbz8qmfRVNYzETHdPDK/GPqvnT8hDBHHUju99b3dpxoaDcQvLUC39ZqMAeSboLQdN/IJGb+BZqaaPUsu91Dox5Pxgy9CzofYRcjqy22NRKH3R8GP86XcJwedU7wR/aj0BoJ76G70yP+VXtLptv9MDsW6UotpkZZZcXJ33UcmHM2ani5/EdxP3DjDTp5RQ/G8kiEb2+PN/EyY500rajnYyBiPT+503QsxMOb3VzTWV36UmSB8Qr5YnrHeX8pqAAxgK41QQUm/WH/jCSNwBZHfCtsMVE8wpEP9CwSeRbLMyjtRN3PBQE6vNsO2KgBp/4L1qhaN7t9d43AWp2lQwPItTLH+X21n9RRwiLF3EbP1VnvWVHFebLzBhCNf2dOfKr7kMRPiTf3HLjXRH0GBHl+7dSbrEulfDzD16TKtqCRFlu/1Wb8h2yrP7sXTz0fzJGyKlgAjeWe4rxIdCfOaHRZdLFEJE3KgTzbOs8CUEYukJOs7E2lkg05hTyHBh+6h1CfDZw+OHSiZHytXT+yujc5uObUzFQY3Y/6hRM5PH7RkLbZLFXXsPhRj+E3X7M2vqLss4p9P7yDhESEagcr8U9SZltuyH86rVLRHtBjjoDROXyRJCnMTr3mZbOFLwS0V9UpkAmeYDMgBTw= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SL2P216MB2337.KORP216.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NsdnneR3rP5MpS/QqXFO1e8AoYfQaB8aggCQNhh0843zLWrJMBhlZBd3qKITUfmbKlvQWvzDQiBhTQF68pmdF5NzvfHQDK/izw1U/b+czjcL6CVAeqmaTCDaZUhLBcZACDIjqYQb13yURdL6H+v7zozIicg4vWXRaCQkXulEAp5KUwPahf5ZxLCfHl9Zr/qaXLQLUSBbZ3gD7dOVxPWc6SffZj5wA2lquYZv2DNtcWh5XxGkdm5UvMSDbbVjBaI/2zSUe6+68MKgZW23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TWkbnNJMfm7/o1vdO8jpIsK3oDQpiYW7F+S4UYHFvtuqN9T8DTqOwC20Miw+QmoaYnvmkO+5X650XpdcGlQiW2/yEzXGA9cXBqOpj9Qtu9HpTlXeZ1h0bCUX6a0+kMeFJdThoe/NS/FfItuH7JYSkDskxId46QrgnUzR2hLEwtfxjd1VTsQeYeBMET6qGbsXE5L3ZX9Z5hC6SKYhMwMlTZQuR6xNUZldPdZd60DJ64HtHSNDu+yJw5fBgvKX13Be/FJ7nhtRpyA== X-OriginatorOrg: irondevice.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7626e150-cd3e-4ef8-179b-08dcfdfe195d X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB2337.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 00:58:17.0075 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b4849faa-3337-494e-a76a-cb25a3b3d7d1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DWOBJJtVPaCsnzpSMkCYLg7t6cKA9L+9POEAUqDV3Is1jVs1vFTdH8UJHVHD4VGt2Oqcs+hlch4je9DPKx7a1M7setDh1jcMULwLclcHJdU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SL2P216MB2112 Message-ID-Hash: ZLNONMZYSDSWILR7E252HEVQKQYQKYFP X-Message-ID-Hash: ZLNONMZYSDSWILR7E252HEVQKQYQKYFP X-MailFrom: kiseok.jo@irondevice.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This adds basic audio support for the Iron Device SMA1307 amplifier Kiseok Jo (2): ASoC: dt-bindings: irondevice,sma1307: Add initial DT ASoC: sma1307: Add driver for Iron Device SMA1307 .../bindings/sound/irondevice,sma1307.yaml | 53 + sound/soc/codecs/Kconfig | 10 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/sma1307.c | 2052 +++++++++++++++++ sound/soc/codecs/sma1307.h | 444 ++++ 5 files changed, 2561 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/irondevice,sma1307.yaml create mode 100644 sound/soc/codecs/sma1307.c create mode 100644 sound/soc/codecs/sma1307.h Reviewed-by: Krzysztof Kozlowski