Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp635430rwb; Tue, 25 Jul 2023 23:42:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEdPByxaaUA4Ei6ibaMruTN+B5xBz4ID5ptGBb7D6aYm6A5qYSrbmkEsxpw4pK3hJXCdpgF X-Received: by 2002:aa7:cd13:0:b0:522:27c4:3865 with SMTP id b19-20020aa7cd13000000b0052227c43865mr687775edw.41.1690353759944; Tue, 25 Jul 2023 23:42:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690353759; cv=pass; d=google.com; s=arc-20160816; b=zD+Sk1BHMuku9+H6oHE1VFUx2lfSVOb4GN1np9VjwnEfbTQk7yed/xn7pckIWFf/KW Dj4bwQYPt8IDmi0UiOpQCMzO2sd/QziLZFEm61Gwd8mTqkETMM2mp3ycC4BzjwJruj43 slacNtrLbbl9qKjpIlje6uvrY3ktaTOPOPfhOl9t3kmmoWE5K0eGVFN/6sKAbR2ZiiHv MO6odGbXd4gq7hync+w8mJIRpIsc8KrHmbYIAwu3cLASB14bKpB5wpL10Vdr5H9txnUB Y1VTpCDN7GPQWO2ZLdxk2sA11SSKC4g9aLM28yvwExoQn10yZ9MZ4trnxue2mk72mRcr Fagw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=8eAwYiI8w/6YwQs8EjCip+sTfTNr7r1XCHeHjUqJXvQ=; fh=EwSWY5yKPDe6k3hRH2aM5CXRnYmDlGzmlM/t+oL8ZLg=; b=wvmzbDBEJcG52UCHKdVGu8uzmtcifv9kqoOgSbbH1umRFnxXBO2FWgoxDlernBjCGF pjue19R9+Y4JJUvulL9Mrat+WVaLctupC6Kfle8n3+KZM0doJjoFLiwnrr1oD7ukUxyE tYNJjgwBUV+lGYpDZRzNUlgo0Lcc+24NZZHoS3NbFp29Dq00SNhIdG/yFqyb4LjZIZNm 0Qq3NgCa1mEYYSLE83bHYsFjLX+CWwXnMuW5H+44sFMF1UeQ9bLo+4dUGnw33b8C2A9w h8ylacrKlOtMWjC2GG7BnE7jIz+ixKQRvyc/2+G/qwUdJy3ufDG+DNPbZpJ2gectElFW lI/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Mv3zjnNL; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d12-20020aa7c1cc000000b0052258318d45si1097020edp.524.2023.07.25.23.42.15; Tue, 25 Jul 2023 23:42:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Mv3zjnNL; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232130AbjGZGRb (ORCPT + 99 others); Wed, 26 Jul 2023 02:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232103AbjGZGQy (ORCPT ); Wed, 26 Jul 2023 02:16:54 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C430C30EE for ; Tue, 25 Jul 2023 23:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690352204; x=1721888204; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=R7EU344W1umB9+dJrtIlb0bv61JrXH+EInMMXxPC9pA=; b=Mv3zjnNL5TbnRyLIbRiWCWVbDvwqEdQ9HPydqOOspauXQOSnicSHLjGl W8kJi8icG/0wZrU2DKD1OdT68uMAf/m5d4OCTYJeTMWNGM9ue2y6eUM1y mDCdn018FQKnPXgGqFX6Mo6aKVbRELunWb6AQTAfCXryrOVTGal/UgrDS eHVPXCk/cHiMrbmRljisavhn++JrjAwIgxH3cNwLUt2/OLnu/IDCBzrhY W9mEaxHHy6eggzm+XRecg2L3+N/SkPXn5GDI9jT/BfEPmQEueol7gxdH1 tUXb3pE7GszMPD7acZUTrL3zlgXCMKzC5/bsUKkARP4tnV7txBl9XAF/P w==; X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="366813740" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="366813740" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2023 23:16:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="796423802" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="796423802" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga004.fm.intel.com with ESMTP; 25 Jul 2023 23:16:44 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 25 Jul 2023 23:16:43 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Tue, 25 Jul 2023 23:16:43 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.44) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Tue, 25 Jul 2023 23:16:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AhLFccOn81VqambNna0E+7jvl1oCA/gFMeEesQn2scBuoHNyZhdOPJQEcTiXQz/vqgptN8YQx3M8b8mihEqWMxElLJ4Jlo0tn0BmYnCWjvIlFMcYvXaauK5mm93ybRmnBPlZnzT/xiMJZosi6fLISdKQQbdyeGcnZarVIi8Ly4ON4VC9roPib1Wga73Lgf8nsktGUNShjCT9MgjOU3sMmvIZQFXSnH7kQRvcqU1uHnx9NRFcms6ku9UXsNKEA+Hfh2eHmmcOyctV/Uc8UehR5uLQ0uPFS5nEoKVhrQOQmf6uZvwaKh5mPX5oc14to64+MxRc94pY4w5GEcEHr8ipRA== 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=8eAwYiI8w/6YwQs8EjCip+sTfTNr7r1XCHeHjUqJXvQ=; b=hc5w9tD6peMlwihZ4U52erZK6PmbBbMSbT7vn+A9dIwfcJOH1DXanZhbQ6VrmN0lpKooag1A3yJtUHgnQCBvMA/fneROxwsSFpX1QvA2h9heDfcsqMpU5aj+GvKdaGyeB2zkm1520B6IJXv76RpHwEwquIJ703oWZMf0v3ftfNBNE12eenpG7Z6aGb6ETZBw21HCripmfMo6vUke93rOAQc8ctB6uh8g75W1VzstGYbKB1FRcZGdsMJNEuvozeLofmdKuEH2EedQmuz3yl/Vup/MWinXAoENl1U9MH/47QO4MHeTt8bDSzau4erq9BsSAi93QOs/iq9/UnKlZkm4Eg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from CY5PR11MB6257.namprd11.prod.outlook.com (2603:10b6:930:26::22) by LV2PR11MB5973.namprd11.prod.outlook.com (2603:10b6:408:14e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Wed, 26 Jul 2023 06:16:41 +0000 Received: from CY5PR11MB6257.namprd11.prod.outlook.com ([fe80::12c9:6f97:4016:eabb]) by CY5PR11MB6257.namprd11.prod.outlook.com ([fe80::12c9:6f97:4016:eabb%7]) with mapi id 15.20.6631.026; Wed, 26 Jul 2023 06:16:41 +0000 From: "Lu, Brent" To: Andy Shevchenko CC: Pierre-Louis Bossart , "alsa-devel@alsa-project.org" , "Rojewski, Cezary" , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Mark Brown , "Jaroslav Kysela" , Takashi Iwai , "linux-kernel@vger.kernel.org" , "Zhi, Yong" , Ajye Huang , "Bhat, Uday M" , Terry Cheong , "Chiang, Mac" , "R, Dharageswari" , Kuninori Morimoto Subject: RE: [PATCH 1/2] ASoC: Intel: maxim-common: get codec number from ACPI Thread-Topic: [PATCH 1/2] ASoC: Intel: maxim-common: get codec number from ACPI Thread-Index: AQHZuqoaXCiyShA7oEmUALJNRLZwbK/Ip3CAgAAMRwCAABEQ8IAABnIAgALQmIA= Date: Wed, 26 Jul 2023 06:16:41 +0000 Message-ID: References: <20230720092628.758834-1-brent.lu@intel.com> <20230720092628.758834-2-brent.lu@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CY5PR11MB6257:EE_|LV2PR11MB5973:EE_ x-ms-office365-filtering-correlation-id: 920c7602-6802-49af-f625-08db8d9fe09f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: m76CJFguEhBRiS5g9EbZ15Z9Z2kybvfLDMk6/QPZ66GwRD4Q67T50Lz26Gelz+MexzG/LG1/X9+0JiWR6osF4BBnMGiutUn0NUwBFcYLNzsZDp4RhF/WQTyN5ChRXy4RPaRo+zVseZvtTrY8gqdvMqN523eRFL5wt3datTnat3Lpcc26DlQTgHqTse6FcP2iKQKjnHWLYA01d35OtQuDzPeGbvIme0r9E8NJ27SYqHbAKJZi+aW+nufNIRHIj2PRlzv5lmX0ULDk5/w7UcBMQXOeNxZ7lGcH9ZaaE0McAD2D60BmZPFVcxADuLBaxY5NTDripV3DLfHNvkghVWk1PJ+md0hm5kAqW70lwjRiWc4lznPlXdU1ScLRuYeW2CkypGS9THiu2J8jwxEiNB1o/kpL1BBV5s1x/n6xnzMROibckg5wUc5d3WCFsGTk5222RIU/GDmNbZ/eGcKKSIVkBEGibIb3J3DsOm8yS1Y/yEX0ugVEiNO2nFZlV+u61VE9KXjP4WDg3QNO8TmadyhMKY0GyPE8zz637iJb9qW/zwIYeachS5vNy0CP4l5/plNKl/QqgeVK9h91NEddgBYQZOdaEvH3vd5SWWcxVMlTbgf7dMF5dITfoSV7AZJRxNYo x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY5PR11MB6257.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(346002)(376002)(396003)(366004)(39860400002)(451199021)(7696005)(478600001)(9686003)(71200400001)(54906003)(38070700005)(86362001)(186003)(33656002)(55016003)(4744005)(2906002)(6506007)(26005)(82960400001)(38100700002)(6916009)(66946007)(4326008)(8936002)(52536014)(66446008)(8676002)(76116006)(64756008)(122000001)(66556008)(7416002)(41300700001)(66476007)(316002)(5660300002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vv9qSDdD+rGkBOs9dYjjYR8aW+4vpLljCb1767u/1owItru0z4haOFRGazGv?= =?us-ascii?Q?py87raFaWFvWU7qBC3tjcJscv/UEEcPzgwRDhSeb0SHV2PWnnA8Uu1fvddTz?= =?us-ascii?Q?wK6UXazhrP1CuOYmtfzLl8KHQDpEIa1/YQlygLJnE2AnJF5MgtPbnhI77Ud8?= =?us-ascii?Q?/b+SP+lSPs9RKu5+tKJDQ9RQ7tU8Gi8tSMPP6ppYZn2BZMDutVa2V2+8APlP?= =?us-ascii?Q?mjIg/acKZK+6J7NuASu5lrHThNVqX6aP/unT/0mkgwGvHIAWAXd6BgLYWhyi?= =?us-ascii?Q?eRcTg+VOwOv5xQfwj3LAj6hc6WnxKhiZ3g4gjB/1oMLPEQMkXFIXKrEcZ6E0?= =?us-ascii?Q?7yEw83P95rY0KVvdklKrh8oTxNDyYnkGzMB/hcNupxi1hFbJEQQOPVQHTAzn?= =?us-ascii?Q?c3XzXr6pATpoEWz6evXpJflTL0fw5ioxXnjOyciPh2DXWtdl7MUVqjvboJHE?= =?us-ascii?Q?Wzo9h3XxpU+HZ+tuX+oyePHvofHCgUfCy71rlr7N1WDkcd04ddC2OP5KJTmm?= =?us-ascii?Q?LYeZJ4RPkdDj6dd9nDS78L0NPM9OVmfScXmHAo02RLokF6c8mbzQ/4RDegPx?= =?us-ascii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BQK6QH2HREyotspIvuQ?= =?us-ascii?Q?gPCRZ2WxMf0dBWbeHkyY+aQ2PhrW1zq1qerTJMsueiiuOvWQ7UW1kOvrde94?= =?us-ascii?Q?k+J0xEiXhvuqo9eQyLs=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY5PR11MB6257.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 920c7602-6802-49af-f625-08db8d9fe09f X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2023 06:16:41.0735 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tNDdEEGft4D2HQLuOMDCzITtFTbsPDjGHOQ+QvYt5Mw8fgbE38lonyUWugYtiYYyYZ4xKTpspiVxYnTaOWL++Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR11MB5973 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >=20 > size_t here or at least unsigned int is more correct. >=20 > > for_each_acpi_dev_match(adev, hid, NULL, -1) > > dev_num++; > > > > return dev_num; > > } >=20 > Otherwise, yes, that's what I have in mind. >=20 > > Will test it in next few days. >=20 > -- > With Best Regards, > Andy Shevchenko >=20 Thanks for the review. I've modified the v2 patch accordingly. Regards, Brent