Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3854592pxf; Tue, 6 Apr 2021 01:47:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpo7iJYVJrzBNUuKZGgRWHUdYlsCwykPFNNd/vqmo1kG+eX/L46p3p/K0z+DK03bs5ZUIp X-Received: by 2002:aa7:c9d1:: with SMTP id i17mr35427838edt.46.1617698837394; Tue, 06 Apr 2021 01:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617698837; cv=none; d=google.com; s=arc-20160816; b=gdYJ5hTfX4VW8Uvgm+4u020RumDh9ODwL6yD+/crtnVzFlsiGO76NcOxGGpfTKBd8t TGW6VUZkbyg+sHuxlH2mHrkO8IoHzlsM8e7NkCP78+1+CwqngXWjCIO+ZD6OyLdD6htr 1wfGo1DVxREd8Sf+p2/3TcLSTk1QSL8D4wX1zIbD7wHHDBhOwj7HB/2iySoapjA6w4z6 RMhQYFIIcGN/rSJUdalZhLv8/pREo+R2NNmgYT5iAHRLuzpIWG3cP0uEONZ9J4fuW+IZ D5xf1lNsVdXuRmpQ3BMShVelZg+OvBpWjDCZeiabxq2F3jl/J0wNglKDiAv0iNnVHMCo 8Fgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=zWf+8m4sHvffe+T/MaiO9HEEaJN6BeLdFH9Feuvygj4=; b=yjqYfIg8dQ36NAbfy+Wo/L/OyJCxFyDiRjgcyXJwmpicFhZibGAUvcQkK1ZT5xiKUl +Co+xN8+/LMwVSZb1thWOyCn6Lg+GrKBx8rvvxaQgJtgcwhMUbTu/nAhbjI0GCUzWk+r QLZROlJxDdAJeGTD/n5EoHPl8oB0n98dnHaL7Wa4Hectcf3WkLNEujTvpmtPjR+7I4Rj TuyM9Ft/nfb8OwC3NhCfOcJ4/H1eQf3A9lp7+GaGdTgr/MgnsDgbmMrZVdEgz6fpFct+ rlCs8QQr5pwoTIlRbiYy1Eq+Tbau3gV91iMsuRVufs/fHc0IkcA6OjThCbP/Fra9BT94 OBNA== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si1373663edz.101.2021.04.06.01.46.54; Tue, 06 Apr 2021 01:47:17 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238171AbhDETI3 (ORCPT + 99 others); Mon, 5 Apr 2021 15:08:29 -0400 Received: from mga06.intel.com ([134.134.136.31]:52638 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232880AbhDETI1 (ORCPT ); Mon, 5 Apr 2021 15:08:27 -0400 IronPort-SDR: YGu8dfFuXkDypDAWteYxiivbyf8XDTaJITanwkLqZFfp8LfQK1gdnlpMMJL//7iktQUuFeSKbf rTmPaWhYO54g== X-IronPort-AV: E=McAfee;i="6000,8403,9945"; a="254243640" X-IronPort-AV: E=Sophos;i="5.81,307,1610438400"; d="scan'208";a="254243640" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2021 12:08:08 -0700 IronPort-SDR: VWi1JLsaZAVvlqpxRGMKsBvp7vRhCLW0BNV7GqwgsSiEF1Q1owbQdpqfXMGs2hcLW2cFMQOtE1 D0ApP9YDiFnw== X-IronPort-AV: E=Sophos;i="5.81,307,1610438400"; d="scan'208";a="420847777" Received: from esiow1-mobl1.amr.corp.intel.com (HELO [10.212.57.118]) ([10.212.57.118]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2021 12:08:05 -0700 Subject: Re: [PATCH] ASoC: amd: Add support for ALC1015P codec in acp3x machine driver To: "Mukunda,Vijendar" , 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: Pierre-Louis Bossart Message-ID: Date: Mon, 5 Apr 2021 11:24:22 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <972d38d8-39c8-66d7-292d-37c1f0e027bd@amd.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>>>> ?? 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.