ASoC: amd: Add support for ALC1015P codec in acp3x machine driver
Subsystems (3)
Vijendar Mukunda
maintainerPATCH 1/1 ASoC: amd: Add support for ALC1015P codec in acp3x machine driver
Add ALC1015p codec support for acp3x machine driver.
--- sound/soc/amd/Kconfig | 1 + sound/soc/amd/acp3x-rt5682-max9836.c | 46 +++++++++++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 1 deletion(-)
sound/soc/amd/Kconfig +1 -0
@@ -35,6 +35,7 @@ config SND_SOC_AMD_RV_RT5682_MACH select SND_SOC_CROS_EC_CODEC select I2C_CROS_EC_TUNNEL select SND_SOC_RT1015 + select SND_SOC_RT1015P depends on SND_SOC_AMD_ACP3x && I2C && CROS_EC help This option enables machine driver for RT5682 and MAX9835.
sound/soc/amd/acp3x-rt5682-max9836.c +45 -1
74 lines not on this page · raw message
Signature · 1 line
2.7.4
sound/soc/amd/acp3x-rt5682-max9836.c static int acp3x_probe(struct platform_device *pdev) · line 531
Quoted 5 lines
static const struct
acpi_device_idacp3x_audio_acpi_match[] = {
{ "AMDI5682", (unsigned long)&acp3x_5682},
{ "AMDI1015", (unsigned long)&acp3x_1015},sound/soc/amd/acp3x-rt5682-max9836.c +1
-0+ { "AMDP1015", (unsigned long)&acp3x_1015p},
This isn't a valid ACPI ID. AMDP does not exist in
https://uefi.org/acpi_id_list
There was a similar issue with Intel platforms using this part, we had to use a different HID.
Mukunda,Vijendar
maintainerQuoted 6 lines · Pierre-Louis Bossart
Quoted 5 lines
static const struct
acpi_device_idacp3x_audio_acpi_match[] = { { "AMDI5682", (unsigned long)&acp3x_5682},
{ "AMDI1015", (unsigned long)&acp3x_1015},
+ { "AMDP1015", (unsigned long)&acp3x_1015p},
Quoted 7 lines
This isn't a valid ACPI ID. AMDP does not exist in
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuefi.org%2Facpi_id_list&data=04%7C01%7CVijendar.Mukunda%40amd.com%7C7406bd8053104c021c6c08d8f3875396%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637527109839548809%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=WXNykTVcn4tgxIHPsJVXaDf9J5a63c29IMUOhJ3X8LU%3D&reserved=0There 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?
Mark Brown
maintainerQuoted 8 lines · Mukunda,Vijendar
Quoted 6 lines · Pierre-Louis Bossart
Quoted 4 lines
static const struct
acpi_device_idacp3x_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
...
Quoted 4 lines
Quoted 2 lines
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).
Quoted 12 lines · Mark Brown
Quoted 8 lines · Mukunda,Vijendar
Quoted 6 lines · Pierre-Louis Bossart
Quoted 4 lines
static const struct
acpi_device_idacp3x_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
...
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
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
Mukunda,Vijendar
maintainerQuoted 18 lines · Pierre-Louis Bossart
Quoted 15 lines · Mark Brown
Quoted 8 lines · Mukunda,Vijendar
Quoted 6 lines · Pierre-Louis Bossart
Quoted 4 lines
static const struct
acpi_device_idacp3x_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
...
Quoted 2 lines
Quoted 2 lines
There was a similar issue with Intel platforms using this part, we had to use a different HID.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
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?
-
Vijendar
Quoted 20 lines
Quoted 20 lines
Quoted 19 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
static const struct
acpi_device_idacp3x_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
...
Quoted 4 lines
Quoted 2 lines
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).
Quoted 6 lines
Quoted 2 lines
wish granted, the 1016 already exists :-)
you may want to align with what we did for Intel and use the same HID: RTL1015As 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.
Mukunda,Vijendar
maintainerQuoted 27 lines · Pierre-Louis Bossart
Quoted 20 lines
Quoted 20 lines
Quoted 19 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
static const struct
acpi_device_idacp3x_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
...
Quoted 4 lines
Quoted 2 lines
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).
Quoted 6 lines
Quoted 2 lines
wish granted, the 1016 already exists :-)
you may want to align with what we did for Intel and use the same HID: RTL1015As 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?
Quoted 8 lines
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 RT1015pNote 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.