From patchwork Wed Jun 19 00:58:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13703293 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 D0567C27C4F for ; Wed, 19 Jun 2024 00:59:34 +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 D668FDF6; Wed, 19 Jun 2024 02:59:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D668FDF6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1718758771; bh=gr1iX4u6gFiVb45xwr9pZ8SKnEeOKmRjxBhH4o0xYx8=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=NbMF7Uh7Lo14XC7RBKF4O9RD0bGPgx0zci+V/2M3XlHTUMgjJzSZ//vZvgMeuONfL GEEvoiHvLHjIOi0PzGYeJDcvI09Ix+xl8sNyz6Uh1TISLW6U6N7/FEfDoQYzIAitZi WLNKmbK+/dcf6NIOQgehM4AIEpHOWQObGaDTQna8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4195EF805AC; Wed, 19 Jun 2024 02:59:00 +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 C4FEBF805B6; Wed, 19 Jun 2024 02:58:59 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 339A6F8023A; Wed, 19 Jun 2024 02:58:55 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:2019::601]) (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 3D7E2F80154 for ; Wed, 19 Jun 2024 02:58:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3D7E2F80154 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=BXc6urIc ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IisVbqLeUbrIz+mwHvBk7xGFwqYoB4v9gp7bOuvbeMdsPtLZ1kbo2NJgSmXjrc3RWEK4TLmPUNeT2OC5eSYidj2jvxonUJmcdWU1nl+ZkNL6jHGX0m/FOk43qeoMcE1lto/z4788YFlvsVmzyM8X4FxgY21kdWn2pNnDsMwvWtKMt/qpJ1uGWF7mnPyGQ3xMxsUSyAKj0zQyeDOeBNtO+bGFY+JL3M13slkP0py0CiDNoYHhheKJOaOqcwy3d3w/AO9K2y0utCC54Yc6hgl2oVt5XqLGdQG91rDBaT6I+SxXXMXWryNsmBU/hjMpG4IY6kyLdEcrR2QgtKa7H6AUOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=sFBB6CPnCULOckhzrBYgpyKqk6Z3LQ/cGhg3GatuBrQ=; b=Myn15vISVLXzZakqVkURRnN/atmVA0uL7rjdFsAU15cNC3+H6kKrQhTk00XdbmsB6yYCENnBzWUuq85bAz1gsmvLnP1JpSYEA98YnuXglM5LfUrGiZLs61x47Opi7rUgjlMjzV1HGpDEMYwoyzavlLKqrVVMCn/LKP9fpPqQp3AMICeCdNIJfAfNZEeVs9eY9lH/zAYo1hGjXjSdA5FXCqtg3d2HM2WfYI8CTg1frXYmyhvRcDnMx9hTXxPbqdLPn+7+cHas1BuvWh5tw8Yl86DBOgORRH5Mva1AVevbr1ANUeNnVnTtHUTN+AF6SqnqMOQTZ3vWKAGY7VYUpwtugg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sFBB6CPnCULOckhzrBYgpyKqk6Z3LQ/cGhg3GatuBrQ=; b=BXc6urIc4hLBJzeoC/3jW7dbJe2tNMuu4dPnGLq57nr7ZnWcz27BQmaBjv4qp1gJxLG3SOcdrtAQ2GGPpPgnFFFSKy9vLHRhhhdbb0SshkTq/jRZ56qeEp9w4VD2yS+8JgYaMTeG4t15aAW19pi2INW1OAHIsvCxgf1RUK5l4cI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYBPR01MB5325.jpnprd01.prod.outlook.com (2603:1096:404:8023::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Wed, 19 Jun 2024 00:58:39 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7677.030; Wed, 19 Jun 2024 00:58:39 +0000 Message-ID: <87jzilwxxd.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: Linux-ALSA , devicetree@vger.kernel.org, Khanh Le Subject: [PATCH v3 0/2] ASoC: Add ak4619 codec support Date: Wed, 19 Jun 2024 00:58:39 +0000 X-ClientProxiedBy: TYCPR01CA0161.jpnprd01.prod.outlook.com (2603:1096:400:2b1::11) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYBPR01MB5325:EE_ X-MS-Office365-Filtering-Correlation-Id: 1cefc6b0-571f-4d57-bf53-08dc8ffaf4d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|376011|52116011|366013|38350700011; X-Microsoft-Antispam-Message-Info: r9+qsCqQ9ukFDHNLsopSjQs0Iqw8qwBc0Sf8btXRt2NZTrIMcM2Zy/dZuSyi6c5//oQSJM8S1uV9U0ndorvRPoGEAWzw8c2LmZHZtZcTYjOMn7k6ahNI+FaL5JyC4AKAHbapPjBy5FrGYtpXAUEDMMJjm9YhLJ56SXSHXskbtnF+MvFGS+9cxOv2mNU6Ccs8eUVJxs9dLZfCccRfNOL1Qvcoz94dYDr7Pz9qU2Xg3MP/v42HJv9ECYG4OfVxTpVdCygK4JMhLQXh4Z9qTJlYm+tN8Omn4wZXLqYHfZV6pkd7v3A5l/yDLauu8fgzYgGdjjxe+a6/8bBjAHd/wa2hWFXY8ezZynWFIlZ5U9+SgqcFtumqoEBS9PkOgsQSUDVYTBUjtw71dHsSEEZgWOBal2LLXP6NtOE2eJMJalZiRAvN9wouCG6Zzi6uQlfujHaNEoGYS/1G0HX7ZfZJi1wu9mdiMaymjCKjNG8DS2n0yU0CbCCrD+PIyHjVV4bcBmquvwykniyvdt1K1xx9Jk0yBM5bbncj1YWoryo62UqKa+98LmLwGcIMjn//L820bjZ8RYF1y67wd40zjAhtGiEeruLJaQW3QZhNaAbgifHUbLyvs3RkdKyqBGeI8joSaWqw8nui0Y7ujW/S0CEBxMqdD93wLWpU1BME4XTdIy3phCNCy9hjPaJ6lrD22hAVJQzDOfY8BcsmgXvBsGlJOawbPtv2IYkel956ZiCdkRRamhONODGPIHPZ0msDa1K8vCSzV/OYtyJ9sH7oWhzmaBzq5hkyYe4ywA913yaeNNZMEXbJeg6fALnEd3jqlESrzG1mgVgBkgu/l+gGp0azF7vkK7TerHAanAe9TRyJuEuZteXOZ5YMmI2nWY+eJyahc6kwDJnWfhIMT/Rw79qmcOFzYAwCt9QXIOrjynPvZCtk68qi2uvS+fKpwLwD1JRJZvtNpdf3vp6e5ZqkO2K8fpv/wXiqNknZSBd9wZxZ8YMbzghlEtOXjQ1Xe/EUCMNJVaq3M4wf6IVo+XFCzEpQ9+azfrAEXqEUhx27D8Ms83PdzgxVTUbxKBgV0pOVtv/5rcz8mkLjbpbcMz+PI+PGzHSIexxlxeEzRFQTdtDrAnHE9TriyFqSC2BGo5KFcIBopqFACsWbD4/gj/wE41q2lgTUgsnmb9vG9jyhoXjUtqxn2SixZmZxCT/zALY3s7O9iUtW3jK9X4McFUQOlS3s5NFQZ5oE0U3RdITQL/izKEKP9t7e03oMCQT7XGImPUXaEWqqpiSHj105bu5s/K0MInveOniP1CRv73Wdwb5bNLqnTbuBHLUwJsKDcDhGWRMnn4+e X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(376011)(52116011)(366013)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: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mAKtGyEAJ263ASNNzWKjLaT4ukn6ROs+0HCpYP59fNCfsyWTTYzbcszfxocP/5JcLBXNRBkgAwr9H+tm5WnVilmEJNlWTpTj+TIST0quO4RkqQQUoHl1d9RX5AxSiggNjhQxrOxuPT8ndHcSD7yMpOrQkkSK8hzuVjkgk15h1nlWOdV/IjbKoTR5Frcu67vKUQpNtCxxvecpzORbXPuuAtroYoZH05tue7vJOQtvAGjD/BECKmNM0jag+Hs2+AvPg3j5oj9bxaEIn0w/XejMJaC9S+Vn/xLpONQWJXSKWGyXfTQrU/ErA9Sn10/RDJ5f2AO4Y03iJilXS1k5w2qKabOWiibbXFucMqYszWDZveL2PcTaiku8HL3SV1iLcZP3/zN+y09XuL31qU+znq8jDzD9/s13cetr88sRZ4Jg3zunH1M8xT50JvKMWNN3Ym7+XSPZe8grhYLe+XaAGlR0H+B2IDXNly00+nagiJpu9W+klBeJu6WlZuF9fRd6XY6T+OlSeba9eug3yWZGvxBMFiIW+U1/LtlLDyrx558xqFABknIthWbcUb03FAI9Tock+CbRs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1cefc6b0-571f-4d57-bf53-08dc8ffaf4d3 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 00:58:39.3516 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yq7uvR4/Npr4v7bhLi2bgWumFDHBVa0gj7HkhoBrbqdusoD3+dso+1OK/65BvGFHpPPSDMww4QHlO//e7tPkXwUDd7MekhQ/FgwiYxnp3jVMVUGtJnFkvZYhDDtqMejJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYBPR01MB5325 Message-ID-Hash: TZM6QOI3MQTIJ7IMFLRDL7EBCGQUB2EG X-Message-ID-Hash: TZM6QOI3MQTIJ7IMFLRDL7EBCGQUB2EG X-MailFrom: kuninori.morimoto.gx@renesas.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: Hi Mark This is v3 patch-set for ak4619 driver. It was created by Khanh, and I updated/adjusted to upstream. It was tested on Renesas V4M GrayH Link: https://lore.kernel.org/r/877ceotnrg.wl-kuninori.morimoto.gx@renesas.com Link: https://lore.kernel.org/r/87frtb3x4k.wl-kuninori.morimoto.gx@renesas.com v2 -> v3 - checks negative values on ak4619_put_deemph() - return 1 if value was changed on ak4619_put_deemph() - use modern SND_SOC_DAIFMT_xx - use _MAPLE for regcache - add Krzysztof's Reviewed-by v1 -> v2 - fixup git-log style - add vendor prefix for Doc - remove "ports" from Doc - add examples on Doc - add missing property on Doc - add const on driver - use sizeof(*) on driver Khanh Le (1): ASoC: Add ak4619 codec support Kuninori Morimoto (1): ASoC: dt-bindings: ak4619: Add initial DT binding .../bindings/sound/asahi-kasei,ak4619.yaml | 62 ++ sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/ak4619.c | 912 ++++++++++++++++++ 4 files changed, 981 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/asahi-kasei,ak4619.yaml create mode 100644 sound/soc/codecs/ak4619.c