From patchwork Tue Sep 3 05:44:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ki-Seok Jo X-Patchwork-Id: 824966 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 B4199CA101E for ; Tue, 3 Sep 2024 05:45:33 +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 3DCB5836; Tue, 3 Sep 2024 07:45:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3DCB5836 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1725342331; bh=JG0CIN7HKbfX/Ly7I0J/JBHVj7lFObJRbViJUVmWrgE=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=LUmWcF2GjB6woikpi+NRt54iW/Weqv6wG4f9pOKHOZKMHwwYb+hTb1idckjMHTU/P cDPe0faUMfyXeQYz1j1/U64I+8bKHoAjFOyGl4osoFCMUvY3iK61AUaJwCqzRJO6th mdpQjY3Lpo2hJg78Pa3ZoJXV9+n7Vkb1O0Mh4pWs= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 74981F805BB; Tue, 3 Sep 2024 07:44:59 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id E5CD1F805BB; Tue, 3 Sep 2024 07:44:58 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1BFBAF80199; Tue, 3 Sep 2024 07:44:55 +0200 (CEST) Received: from PUWP216CU001.outbound.protection.outlook.com (mail-koreasouthazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c410::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 507C1F80107 for ; Tue, 3 Sep 2024 07:44:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 507C1F80107 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a1A/lFLmHrowMp6PaSpA5SCgPhXhf0T4x9t3snl5Tj8bG+ELbpmfeOQK0N3roiwY93K62QcLQD+ZIdsL9TlEP8R13rzJ3XHvydZRnvqKWxfh0PbedW1iyvKTNLVB5CllgU/M2xduznqTjqW599Pp/6WxpnVpEAnGToAqowGIiWtnecL9BkYO+bIJ1N7Rdu4u7yPSISw6YdmLco63iTpyhl6BTRA28heDsoM4XMkIY+NKB/vYqZVXCFNOsdRUja8WJG1EQQsvW8VbjTZceeHOw4GSyEFsvz8XgsKF/pf89OG+bkQSiX4xqlx3+7myJmsS9Kq3aqJscBOMerNtolcOUg== 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=nqnYnQChZIr4fIVThBRa0BmRuXg1/5loPBRtAOM57UA=; b=o5jLlC7LPShhrLI+UpJmigyIJMf+Z+BLrSMnkc5esbXvNVK3uKjBnOAQeDPGLM0l9ivxXQMUsaa3bPSdAO46+QlDfSrYQY5RdNuW0KqvolndiUdHDcuXD8My/Tl313xqrNTpea2AA5R8OGtY+uEO5CShhNvtXdu2SWspTP6V+7iIaa7yt1de15ShE3XFh57z4s3f6w+N/iGCuHn9+vRZBY0JvzXoIUTimCV1v6o6F1xu8waf1mezO7C0diZCOcv+ZaPeZFI1AQKKaz2Iv/d2D38gYO2Zdfa3aYShtJQ9Nf5LjvQ4r7LuarYJ4qn1+7ki+gYx4PnZPf4fsDNFoxTStQ== 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 SE1P216MB1543.KORP216.PROD.OUTLOOK.COM (2603:1096:101:29::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Tue, 3 Sep 2024 05:44:44 +0000 Received: from SL2P216MB2337.KORP216.PROD.OUTLOOK.COM ([fe80::7e8d:9550:c46b:2756]) by SL2P216MB2337.KORP216.PROD.OUTLOOK.COM ([fe80::7e8d:9550:c46b:2756%3]) with mapi id 15.20.7918.024; Tue, 3 Sep 2024 05:44:44 +0000 From: Kiseok Jo To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, application@irondevice.com, Kiseok Jo Subject: [PATCH v2 0/3] Add a driver for the Iron Device SMA1307 Amp Date: Tue, 3 Sep 2024 14:44:32 +0900 Message-Id: <20240903054435.2659-1-kiseok.jo@irondevice.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: SE2P216CA0056.KORP216.PROD.OUTLOOK.COM (2603:1096:101:115::7) To SL2P216MB2337.KORP216.PROD.OUTLOOK.COM (2603:1096:101:14c::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2P216MB2337:EE_|SE1P216MB1543:EE_ X-MS-Office365-Filtering-Correlation-Id: b76ebf10-fbab-4044-83e3-08dccbdb837c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 4DnCVyFbCKQbdSaVvaRH1qiPRH078jdUDYyBXhRAdBJ4Gn+WK/eSG4hKEU9ryyRRvPdz6VB4K5r1yZ+rKo7Sm6ghEMWu2kQYOMSl00MpTfVpoqa2hnpc9PqQHwsReAPMH5hEplWokzbMkvydQwvAaynQRyP6CfFJFbs+hmsKygAGLxsBaGbUPu/bvdjx5IF3Zh1zz+z9ubmdRWQx3IBkVBd80v2rlWHRiqmhboYIOJ2Q/ddw30j+8279rWF6Kx85o5z347PwyJ2PrSm/gGkkwUf0EPfC4zMfdM3HWiFfQ3FzttCYhnggKXct2PpPEUMYqdP1f7FY/w66K8i0Fl5A4oIosIJXdd0ctDsReQnSyxfGEKvtljVcbGBWpe7UVJwbArv4nyndcew2mCsKVov1OiQ+rJ8tVP7+8SxmImDLowDLJ8d2brO6m/+HlHiAxwo1ztmNrwYb+C6JN+iq7us6U7muN5PPE7ySOuoVcZk6NHEJ4XTxmt0aOLoMQz4xE2+KhgmF0683i+pQSpQbtQ6Nf4mtlol+ptVecC2jPGZ5Pmf4ERKeb9GFg3dcaliqUso4anCWusiCGudmcYtStMhLpzW3miX7PBF+EDTlVbi4o2656Mu1S2hyXuZMSK5WHovF8ARRUBhynuwT5FrhEeGX2ouFS3fiNCOQD4V1iX0ny3S9vh2ykgioQx2T3cC2HaJMTlum8BusB7xqM/iU8MJqArYNKt9cjgtfKvVb+jrkSh4XqlPxUAUdk2RjDax3vf7fjtRFq91LOE4StpXEYwygW0fTPXljQz1q/XKzapQ8VQS2vp+qYGKVVDxnZ1MF8OxTUPHJTDmrzxRg4KbIksZeGXPNzewnpcakA1HeYUkI1LtQD1FN9nsOpBCVO95TvDK+ceb5OysTWygcZr1TRsvZbCQ7hMMx9fn5j57SDxJX0FI9cADYVCaFF0B6uXKhHtYFQ5zeilAKF0DKuQUVgNdDf5q6MEXChZGUwr/IpeiHeTumCi2NrbD4ds/ZrQKrOyDnWrMt08TKYGBNLeOkGfEw2Quw8h8KJ9zXLjTVt/uQ/T5/OHuUBQZ4yo7kd3hQPdNlLDPa+tS1q/Q0tbmTKyj4w3MDz4KnRrGGpVLIsjDM6n2Y7qVRS5Oi3DD4xupQbRPgR2ILbDXI0mVuVYO5QrBhTLKHVZbsSC8H/7kkWa33PCdDOBmqUwAGd7go0AjluggZ3ssmr+7kxFYbSs31n5bgDp/d30hh2U6RqNsjFH4hNUEvlinrS3jo7ZFzsonvR7FXQKcdxHFGM+Vojncldg8KjskDuF0yWMXAiHGCF9gjukjiYT4/7JF7q00YrvGUb0Vgk8XacKL806g0F4WTAZAzlLqUldzxVBVqHfa2wTBq9yw1AO1GsRras1kPUuWK5wwd 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)(7416014)(376014)(52116014)(1800799024)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yszIpI52EmWGXLIta4Syohh5YV9pxTOV7HuV2elH/UHZeRDodTTmtN9XG0mPLktZEH1QN8kqjEQ8MXu2Tqg6fi5Kognp6nN7o0FUWvaL6vmlRWiPygqNQe11KTW1j31oPMLEcazWvmxQDHXTT2bSp/PzurZ635EFJX0jAl8a6q+UzUjgL8AAAHQRnWLZ4Qp/plP9QOPcX1r4WXK+AdGoUxrtB/BCpFeMh8G86zEZaTZt+eUZgk5Bc1s8miZo2DAXVa0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Zob9fFkdO6eU2B7sfUIJU9p2rCizpM4DQDC/0NLSd1EhwwMIdPYOVUAi3miQsazbQ6+K0bApSghF3wOM5U5Aesgr7+q8AEgWGWqZMcaa0s2+LpOn1BzbKdyEaFWOoQif9hNS/1bCm2V+8887LAn7+zwL0+BNOEkwQzcF+aIgnfpAi6ASkwyOabdSJxqTvfqejm7I9bXINHJlBWZXRZ3FW+3rYXO9Bd0LbEKINF/+LKTZ77buVt2qMSgTqd77aNyVE8V06XAfPu1r6gWjON X-OriginatorOrg: irondevice.com X-MS-Exchange-CrossTenant-Network-Message-Id: b76ebf10-fbab-4044-83e3-08dccbdb837c X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB2337.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2024 05:44:44.5988 (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: rEaLp6v9BbnHT44v+l4aZB6tuIIUZm96TmuOtBdurPy36IApT0u5Wo6IBy+F9yh5Yh1aJt4+zOPIuqh6pGQwnINNLUR404+oRH1mRikI5s0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE1P216MB1543 Message-ID-Hash: NN5PVONTNO46P6MMTN7NB4H74VNSRSQ3 X-Message-ID-Hash: NN5PVONTNO46P6MMTN7NB4H74VNSRSQ3 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 (3): ASoC: sma1307: Add driver for Iron Device SMA1307 ASoC: dt-bindings: irondevice,sma1307: Add initial DT binding doc: ABI: testing: sma1307: Add support for SMA1307 .../ABI/testing/sysfs-bus-i2c-devices-sma1307 | 17 + .../bindings/sound/irondevice,sma1307.yaml | 54 + sound/soc/codecs/Kconfig | 8 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/sma1307.c | 2191 +++++++++++++++++ sound/soc/codecs/sma1307.h | 454 ++++ 6 files changed, 2726 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-i2c-devices-sma1307 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