From patchwork Tue Jan 31 01:59:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 648942 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 4F0F1C61DA4 for ; Tue, 31 Jan 2023 02:02:03 +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 6340AE7F; Tue, 31 Jan 2023 03:01:11 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6340AE7F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1675130521; bh=9l34JNrCKH/X4nvx21PI1aNB3NuvcrDUD35HM5FU7ts=; h=From:Subject:To:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=aamxVbOMIeNyYqPQM3kOH4zg879Qa7Cq9st0naiUhkCE0JOUKO6hA++vWAtRqCMc2 fKBfUEyPv+phPXxA8JKV7w5Kr5rugxRzFM4jws/fmKXWfdVIITykVqd15GNMyz+oC+ NZwFthWqfqNPpvMsGvUW1nsi7BtnJkWfgb8U9bzY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 932B6F80558; Tue, 31 Jan 2023 03:00:09 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0457AF80558; Tue, 31 Jan 2023 03:00:07 +0100 (CET) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2129.outbound.protection.outlook.com [40.107.255.129]) (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 66804F80551 for ; Tue, 31 Jan 2023 03:00:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 66804F80551 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=c3qyZxL0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iXeNubCMbtQvQxlpgelEG6PfS7+CRYTsFLTqI7Ck0y/8ia24g8GFI/y8zY0VMcDwURjYssXWH9tj+US4gf3rApPV+LCE1K0NmN6NKBvM6TO3y+G8VVRrZY92WNlmOVIEbjxHYzSFv/aj7QNEBZvU1yd59gatJnKXo1e26LzGMgsepYURs00trsOqYZxSHgeDXx81jEYj+N2j5JQoFcLImc1R8AAMjN0wMhwDGG/x0duWmgFlCYRtYDConbONtdebUcl9iSW4VOfcmIoJWiPFkZRIqhureyiLF72pIjodkXhvIWp8fCIvuVUJC0Z/Nuj9AI82pwEhao76Ner2bNOWCA== 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=B8Vh7pPnO+anfYS1SQvMlS48/4F1mNT8fZccdrleJoo=; b=SekVpQEUp1Xa15P5ehpaifsrW+7HdzE2ssAYwrHA3trzeyjrJlQNrBI6PX9NyhIhsOnyKFRsxZaI0iU6ORSreiHseQGZOE7Jlz7wW8v7woC1fhVkrhsOCK4j5yIYCT3a/OcoEQgYz6vAqhd7gHD8v0gU7iXzPUoO31VtJZfNH5XMRJRvF9CN7jW4Xg6ns9+d0bFC//PP6Y05Cgvq6v8B5Hsw51rUAy9tw+9ZUJkdjEBwcjyZOscywzTYp1iY85nmWZlsQLeEnpawnEBHeWHOeWusOVxPG4Eb6IKvygLsA3LGlt8rR+y3tjDjh1evZA3dvX0IZK8Jge6IcccWFvGbug== 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=B8Vh7pPnO+anfYS1SQvMlS48/4F1mNT8fZccdrleJoo=; b=c3qyZxL0QlsW0tGKDdszCW6KSzOmROWJqk8SOBZR71AJQjJBisq15k2tCBXYEdDdyJE0R09yeFAasBejQfPdfzQi0kaYNDrfauug+Qa+hFNUYZ5YeZYwcXjYMDrSGIlkizVlQlzmKi6i+o3dT0prXuiq39MiX/olpHC89vSfwN8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by OS3PR01MB8196.jpnprd01.prod.outlook.com (2603:1096:604:176::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Tue, 31 Jan 2023 01:59:59 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4b75:8d8e:d89a:7860]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4b75:8d8e:d89a:7860%8]) with mapi id 15.20.6043.036; Tue, 31 Jan 2023 01:59:59 +0000 Message-ID: <871qnbfopt.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 08/25] ASoC: max: use helper function User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Mark Brown In-Reply-To: <87cz6vfosc.wl-kuninori.morimoto.gx@renesas.com> References: <87cz6vfosc.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 31 Jan 2023 01:59:58 +0000 X-ClientProxiedBy: TYWP286CA0009.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:178::7) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OS3PR01MB8196:EE_ X-MS-Office365-Filtering-Correlation-Id: dde8c19e-00ba-45f0-c3cb-08db032edb84 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9qqOnx7ktBzA8yjitU/vcDevOK1mvpNujjJNjOEjSufp54sRe7k7tHJNpQqfobzyfvG91H1w4tqlIfWG5LcAYtcx062P0rLECDTkauCyPLsAWsvBAePA45H5szaiWkMt8VNz/Rsm49SofTHDx1LJryMzjCenCecLpms6ine4K1O+m1t4GEYbIXdN5MhkAUZFhbBSMnTuE4IJt6Vbut2U9Kh5aV3zaM4xUWN+EfvFS+kNwVtFriF84QheIRGRGOidaRq3lFkZhiD+6lW0BVpll7KlnvfuYPH/WviYov2EKskxaeEdPeQzK02VL6+XDQHcP/6nCTq0k18BkpLck845H/C/a1s+0dop3y01JNRUQlALru8e9/LlKsljrxEfUvICjovU4oTcPE0+pAzFDuL8PZEF+2B44Ppamf373rt+l2SWijGAe4pveG+j89k3ctnUhQN9SaCbHvf4KGWKKaj3ECRD9N6Mb/GpC8OH6slpbat4T0Rza6LeyoOsV45HdBXcL+jtprM7f51XhxaooQlfjVUvwSkpHdWdl8JcOtBLxKfBS6apiuRldDs8Deh1LaEvnwrckR79dR+4hXTQ2jW7AiEM3heDeyjMvYXy1s7mrr9QTknHJFvHPHmNxxU8bULbJOykydV9trSaFAycgzejQZaDkEissvPxlYMEt3ENppJS8PEp0HSQv/jaIe8VkWMG3vhyTIvmdYn8qT24/QHtiw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OS3PR01MB8426.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(346002)(136003)(366004)(39860400002)(376002)(396003)(451199018)(8936002)(2906002)(6916009)(38100700002)(4326008)(38350700002)(36756003)(478600001)(5660300002)(4744005)(186003)(6486002)(6506007)(52116002)(26005)(6512007)(2616005)(86362001)(41300700001)(83380400001)(66556008)(8676002)(66946007)(66476007)(316002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Jk90cElgFbkQAHq2XaC/7rhh3N1nCsxaetc22Ug73203tyP9JQpAf/2ytQe+IzWcUrsmQaRNSRSjRXViwANCOtINwWL/JqZzRwa+bsIwIB8EEPzXwDZRmoyTNhHwNFapRANHVDdZ2WEo0G7V3A9EKXdPfqZe4UYlnn1M2M9LFIANfGKNymSEP8vK6U0VAReekch1XcQ4SzeJvTpUFkye3lYl2rzwh7Bi3UCuqLCY/oXZnMUvwpjQGrDXu7wz21KBWjsEB5nX8U2a7GJjeTnCyyIXtHwqT9VQiC7iEIqf1C5DCk1S7Im7LWcOVbIATZ8w2p7VEcYBf5YtKxFpiltwBu4CmeKEadbv3SurcST8LLdbLQtzy25qK77HgHT4TfDZlib9hrgeA8zTsUAgdtYFMCOf8ZligLGBklmJ1FWBLXvbQR+Mq3MwJLiLhigRHWAJRyN1IwR4hVOKyLRKgXABn+ao2538Wl/HjKZ5c6QR2wEIP0jxrny+8WRUbixw32LDTz8WGUgeW3rm6A4tV6VxnVxFNrG+fEbn338unod1o6nw3U2N5+VWigYU2uh28XTPqXkhNYB6O2ehTSgMhFoDZg/vFzD6nJYdF8nupTn2xhICeQScp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ba-45f0-c3cb-08db032edb84 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 01:59:59.0909 (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: /B0FEd5h3z2NOCOXLgIQ6dE43a3yJfhjBzn72lafHS8zDB15J9021JWW5qfibwCfNEayhQs8F10q9tuN715Y8ZKKrgNZMBdXUBC6VqMSNoAN6UTKpiGQJhyARGa74TYk X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB8196 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux-ALSA Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Kuninori Morimoto Current ASoC has many helper function. This patch use it. Signed-off-by: Kuninori Morimoto --- sound/soc/codecs/max98373-sdw.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sound/soc/codecs/max98373-sdw.c b/sound/soc/codecs/max98373-sdw.c index 3cd1be743d9e..c9a2d4dabd3c 100644 --- a/sound/soc/codecs/max98373-sdw.c +++ b/sound/soc/codecs/max98373-sdw.c @@ -689,10 +689,7 @@ static int max98373_set_sdw_stream(struct snd_soc_dai *dai, stream->sdw_stream = sdw_stream; /* Use tx_mask or rx_mask to configure stream tag and set dma_data */ - if (direction == SNDRV_PCM_STREAM_PLAYBACK) - dai->playback_dma_data = stream; - else - dai->capture_dma_data = stream; + snd_soc_dai_dma_data_set(dai, direction, stream); return 0; }