Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp448812pxf; Wed, 7 Apr 2021 03:41:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXBVRmMbeSDmxDu7mbrg6CjQiYdoYU2ZKy8zKKHsCm9iO7IkaLgE2CqVCkDpq8TkoKOC3s X-Received: by 2002:a05:6402:c1:: with SMTP id i1mr3481131edu.315.1617792084631; Wed, 07 Apr 2021 03:41:24 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si5493281edn.152.2021.04.07.03.41.01; Wed, 07 Apr 2021 03:41:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@amd.com header.s=selector1 header.b=bDjhc3+N; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237080AbhDFSDn (ORCPT + 99 others); Tue, 6 Apr 2021 14:03:43 -0400 Received: from mail-dm3nam07on2069.outbound.protection.outlook.com ([40.107.95.69]:28897 "EHLO NAM02-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236637AbhDFSDm (ORCPT ); Tue, 6 Apr 2021 14:03:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X+Mzkn9+s4O8mKjnqrq38VSKliWkLulrjAG7rDuYFf/CZDJbfQEcw8rUSipd1FdGZ0rBXDnDFHOyu6oHVQxiviw4EEs0hd6e4h6fsLbRVK5gzvw2pzmy0hiTw478v8S8YVPLHR6zfyfOMgG4TVx3QtrFFuHfkZy0/KAzi4VAjlOoPf9eDIhecgFij7ztXMhRfl1EBZ39XGT78peEzzyx4sUhXIKFq1l/3KnlhGxo7WkDD0DGT417wFfvXpOg/32PzDJV8fXpIQ/O29E2Uok1iWgthjJ57kNNrla9mxJiqcI6jCBCtVToBGYjiN3BukrgjVwqgxdy5e8oSFAkhtxgcQ== 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-SenderADCheck; bh=mZQ2OKDP7bOfN9eWaDecN/a8v1g6eWJBLs0WNUFGfcw=; b=icinkl+9T+ianidRHI2CjVnK3cp/P1kYHCDgbs3FiWaivHud5ToCXF6IxX54/qoGKvKBjlEAq2bLXTM4c4Wv6AEjd1IWcHFGlBn2mZfZ8jX4Z4taz4Z+ObOAZn1o3UD6L4qyU8xF5GvHfFpuO738Q4zEO3mtgEMnuCQcGMSbaA0zXao9xTf7dewfMH/e6B/jJ+qZx3lx5FRS3MwduUY9MLewFGwd68/qGsTvpL7suPdd9VvCTFEd+uQpf9CnKXcGNC1/sz5AuolzO9DEmZ3iMKW43JvfKXUVf9HHlf6Az+u9IB4oYX83NyiSwYB7lzOy7E4zDjBa6fkoOjLzA/3Vmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mZQ2OKDP7bOfN9eWaDecN/a8v1g6eWJBLs0WNUFGfcw=; b=bDjhc3+N0XdKuJY3Vc1Te9yZVskKqcfvlQ8ATLxEcPsU7k8m8ZZdTkYq9mCSpUDic5J23bzKWsh0OXqQt3Kro7dr89BX43k3Z8C8NBUBXSkgcL5ETz5hPqXQtsVdRDTDnHQWM1TFI8ih8DCp+JaYyZtpxjlFDtVab0x5fTikndA= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from MWHPR1201MB2557.namprd12.prod.outlook.com (2603:10b6:300:e4::23) by MWHPR12MB1470.namprd12.prod.outlook.com (2603:10b6:301:f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28; Tue, 6 Apr 2021 18:03:31 +0000 Received: from MWHPR1201MB2557.namprd12.prod.outlook.com ([fe80::c977:4e9:66b8:a7e]) by MWHPR1201MB2557.namprd12.prod.outlook.com ([fe80::c977:4e9:66b8:a7e%11]) with mapi id 15.20.3999.032; Tue, 6 Apr 2021 18:03:30 +0000 Subject: Re: [PATCH] ASoC: amd: Add support for ALC1015P codec in acp3x machine driver To: Pierre-Louis Bossart , Mark Brown Cc: jack.yu@realtek.com, alsa-devel@alsa-project.org, Sunil-kumar.Dommati@amd.com, kent_chen@realtek.com, Arnd Bergmann , Tzung-Bi Shih , open list , Basavaraj.Hiregoudar@amd.com, Takashi Iwai , Liam Girdwood , Kuninori Morimoto , Alexander.Deucher@amd.com, shumingf@realtek.com, Ravulapati Vishnu vardhan rao , flove@realtek.com, Akshu Agrawal References: <1617095628-8324-1-git-send-email-Vijendar.Mukunda@amd.com> <82817878-a30d-2b0c-07f8-48bcca3ebc80@linux.intel.com> <20210330153534.GF4976@sirena.org.uk> <972d38d8-39c8-66d7-292d-37c1f0e027bd@amd.com> From: "Mukunda,Vijendar" Message-ID: Date: Tue, 6 Apr 2021 23:50:39 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [165.204.159.242] X-ClientProxiedBy: BM1PR01CA0129.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:40::23) To MWHPR1201MB2557.namprd12.prod.outlook.com (2603:10b6:300:e4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.252.93.39] (165.204.159.242) by BM1PR01CA0129.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:40::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28 via Frontend Transport; Tue, 6 Apr 2021 18:03:25 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: faa77fed-d8b8-48b6-4aff-08d8f92648e1 X-MS-TrafficTypeDiagnostic: MWHPR12MB1470: X-LD-Processed: 3dd8961f-e488-4e60-8e11-a82d994e183d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qpHZZs6bKs57vpGIyLuC6vi9KXu8zmvZllI6OGwzC08cYkzV9p8dzkhTP4N37KZ07+b1k/UU/lAajWvyE8ls+kmPa+cehMW8TT8AB0zbwO0/Q3VMz/Omfy14m8nC9mHn8Kgz+pWF+kYxvKeZFjfbpWNP3C37pd7juwBoh3QoSrMxpSlyIfAjdOpbFE6r7qd5hzvh5iKQmBYnY+x7dcQazQupKqRJ39p67eOKKJQMhptZqbVtHhiT7ZkrpRDDkSXFDGzuUgjAGDgBm3nUUijyNpw++WUdxeydk6NVmbTYbERc0GjZHWKmIK+pthF0Z+lXHLM9PdRKD1PL0JZY52BKE9SAcLT1CsGpeD0C6yFDv21CqAoxP0915lBykmRWcow1416dMbrK4vSnlj/UnfDG3REPVVR6zn1KkdFE4B+TW6XZgRFylkC3s5LzxUozsBp88V/qVU9Azvr4ialoiG0f1QASbB/1zqae8TBDO3UD1ByHieSFTFuRmihnap87HxBMJUSSTFaHk/eqea2K8RgUpHkS/5RcjgLDNDVgSKVLrQquRAs0c1AuZfnljhPF7FgURIJjQDQZ7zXvHIxrDIMWB4ouYQugAI5z+3WDKeXvjDtXYF7J8AKVM43fpiIUjB/MtOjZdK6HQnyWI038kOslYpLdLoWbKrLT4odlkpCe4FpmrcqYHgK25Xh+rLtsj3/U1Ra3hleBvVSstZHol5TlHDgfIF/6fFtfnDjRSnnU4chUr7Zw+LS+ZhqNat6lOE1K/NJFhFDjJTLo0OzBw0J45OCodjvwArG6FNM4FetH2/CxjkqgYH4tbo6ppgHm/GnQ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1201MB2557.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(39860400002)(376002)(346002)(136003)(366004)(2616005)(110136005)(26005)(38100700001)(54906003)(316002)(6666004)(38350700001)(31696002)(36756003)(8936002)(66556008)(66476007)(66946007)(6486002)(2906002)(956004)(31686004)(52116002)(4326008)(186003)(16526019)(8676002)(86362001)(478600001)(7416002)(16576012)(5660300002)(53546011)(42413003)(32563001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?Windows-1252?Q?DitzkQxqeIiGMa7ltXT55HIUXYt2gr6rEIAp/71SqJR36yT3EXEEYH4c?= =?Windows-1252?Q?RAEBlfm7HTICVrZS1fexETGwGi+QHlTBbMUZdGtzLcOaSQwNJP5LO2bB?= =?Windows-1252?Q?1udPMEh80xgz8FSkzZCd1Kc/db0QyyLhSPjLfGKKOAGuKodNHFEc0tQG?= =?Windows-1252?Q?lnHOV/x1tUWKH/bbeCpl6QC9oQqMRxCxMkTkH+cqnOGjFa9ywMDuArz0?= =?Windows-1252?Q?V4O2YIemmvOxtSkruJSZCt11nxM4BW+Yv08rMJhFG6lz7Z1UkK/Z8hsy?= =?Windows-1252?Q?GQz7Z42X1Yf+MUB1wrVLVf5s5pVNdlDNTOJql7DwhWoUorJKTcenZT5a?= =?Windows-1252?Q?6/WZjmAhnKhJRWmEHv8a5lXwJYRz4KFNIL4UBT81XJ1Tx2mxWZ4AmTdy?= =?Windows-1252?Q?54vJQ7D84uozVYh0yXIbeDLkcPDOLn1PBdJhbltZZScwXP54BwpsmD/m?= =?Windows-1252?Q?pfW6eXAvCtvFeUp4tFJ1RF90oiUld2g2FwFrpGXnEPjXuDxk7yL6CpRE?= =?Windows-1252?Q?RQRAYYJVxSDm3zBm8ydh7QW63kj3+CWRkhfjoSG0J0lXB64eUEaXdYA3?= =?Windows-1252?Q?CZQOcVcT2Ie6ngfouUpjUcnYYaWN7lbTybqQowngtGG2vrTLy8zL+KHG?= =?Windows-1252?Q?1LOTrCxInfClUpz3PMfT3Y90On6VkYT1aYLl0wfyb93g1ZEw+6OhDy2u?= =?Windows-1252?Q?cZXmQqvc7RnSTUlW6rsMp7CbaYEwcR6HUbMQw9MdZswJfPktEYCinNwj?= =?Windows-1252?Q?lWhOSadAO6BKFLyvPz5ci4dNo4Aunm4goWm7d/QrpQHqC8ZKrXOaR+6E?= =?Windows-1252?Q?Qaxbm66ufjgcTpKxMLcVoy+QPIrGYPg7XLo/jcs0HUUtnb00j7BTNtdg?= =?Windows-1252?Q?sbt+LLJkoDRxVmcXxfV6cDDE0zAi2cVOgQBRKjrdL02dfgQgV4Lqlgzd?= =?Windows-1252?Q?xNXza4TuCrnoxgdqL0TafATBZMHRh7PgKpHNNTjxwU6aKCG5VxNurit+?= =?Windows-1252?Q?xOPqN0m7LRFJDs+WdntDEE0OzSQKsRgj4QBcLqsSHu23QCmjB++GJPP/?= =?Windows-1252?Q?lC2CTlQjyaTJ9+8a+XBv43XMqTEuc64b4YjaIlNiuBswl7nSpSWtPjCQ?= =?Windows-1252?Q?DN+WnEvleXwuPHHfacPQvLb8xI9xpQTYX0CPcm41fsuEg6Dw9xpkb3ut?= =?Windows-1252?Q?mvMXDDAqxHArIkC79mtBDwRrPnmRYGpWr9AnzY3w75n0RvqVTdD6AzS2?= =?Windows-1252?Q?yKFSFqRjaj2oWSKkjDUNCRA/5/h4hewL445qC8KNZHbjV7qR4qlgeY7E?= =?Windows-1252?Q?Q1+geVQ8++ZVuxj7P8YJNDtk10Sbex2GMLWQh44rWksknudLXx+id+Bh?= =?Windows-1252?Q?X6T0nhJ6J9+97xlC9Bor5Kqz/3Ec3FQJ6xa9DSJSPMAwgLaTayPyIfGA?= =?Windows-1252?Q?ee3aC/MLo8Nj5frPCIEUXA=3D=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: faa77fed-d8b8-48b6-4aff-08d8f92648e1 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1201MB2557.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2021 18:03:30.6000 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6+YNTtwlGY1vl++FMCHwplL1E8SkLXmhNv+B7krKTypXq4vJauzMd/IAKDjCRxXfWDnKc+bgFqWUt+140JWCkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1470 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/5/21 9:54 PM, Pierre-Louis Bossart wrote: > > >>>>>>> ?? static const struct acpi_device_id acp3x_audio_acpi_match[] = { >>>>>>> ?????? { "AMDI5682", (unsigned long)&acp3x_5682}, >>>>>>> ?????? { "AMDI1015", (unsigned long)&acp3x_1015}, >>>>>>> +??? { "AMDP1015", (unsigned long)&acp3x_1015p}, >>>> >>>>>> This isn't a valid ACPI ID. AMDP does not exist in >>>> >>>> ... >>>> >>>>>> There was a similar issue with Intel platforms using this part, we >>>>>> had >>>>>> to use a different HID. >>>> >>>>> Is it okay if i use "AMDI1016" for ALC1015P? >>>> >>>> That's valid, though obviously you might regret that later on if >>>> someone >>>> releases a CODEC with a 1016 name (equally well ACPI being what it is >>>> there's no good options for naming). >>> >>> wish granted, the 1016 already exists :-) >>> you may want to align with what we did for Intel and use the same >>> HID: RTL1015 >> >> As per RTK team inputs, "RTL1015" ACPI HID is in use for RT1015p codec >> driver. >> RTK team suggested us to use "RTL1015A" as ACPI HID. >> Let us know, if we can use "RTL1015A" as an ACPI HID? > > Not if you want to be compliant. The part ID remains pegged to 4 hex > digits, no matter what the vendor ID representation is. > > The only solution I can suggest is using the PCI ID 0x1002, ie. > > AMDI1015 -> AMD platform with RT1015 > 10021015 -> AMD platform with RT1015p > > Note that it's not only ACPI's fault, other standards also only allow > for 16 bits for part IDs, we'd have the same issue with SoundWire. We will modify ACPI ID as "10021015" and upload the patch as v2 version.