mb/google/nissa/var/xivu: Add fw_config probe for ALC5682-VS/ALC5682-VD

ALC5682-VS/ALC5682-VD use different kernel driver by different hid name.
Update hid name depending on the AUDIO_CODEC_SOURCE field of fw_config.

ALC5682I-VS: _HID = "RTL5682"
ALC5682-VD: _HID = "10EC5682"

BUG=b:246491349
TEST=ALC5682-VD/ALC5682-VS audio codec can work.

Signed-off-by: Ian Feng <ian_feng@compal.corp-partner.google.com>
Change-Id: I60d5e0af7e2dabd134c8059eaeac388d40ac2073
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69607
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Reka Norman <rekanorman@chromium.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
Ian Feng 2022-11-15 15:00:23 +08:00 committed by Eric Lai
parent 0c923732dd
commit 32a3d93659
1 changed files with 21 additions and 1 deletions

View File

@ -7,6 +7,10 @@ fw_config
option STYLUS_PRESENT 0 option STYLUS_PRESENT 0
option STYLUS_ABSENT 1 option STYLUS_ABSENT 1
end end
field AUDIO_CODEC_SOURCE 8
option AUDIO_CODEC_ALC5682_VS 0
option AUDIO_CODEC_ALC5682_VD 1
end
end end
chip soc/intel/alderlake chip soc/intel/alderlake
@ -281,7 +285,23 @@ chip soc/intel/alderlake
register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
register "property_list[0].name" = ""realtek,jd-src"" register "property_list[0].name" = ""realtek,jd-src""
register "property_list[0].integer" = "1" register "property_list[0].integer" = "1"
device i2c 1a on end device i2c 1a on
probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682_VS
end
end
chip drivers/i2c/generic
register "hid" = ""10EC5682""
register "name" = ""RT58""
register "desc" = ""Headset Codec""
register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A23)"
# Set the jd_src to RT5668_JD1 for jack detection
register "property_count" = "1"
register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
register "property_list[0].name" = ""realtek,jd-src""
register "property_list[0].integer" = "1"
device i2c 1a on
probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682_VD
end
end end
chip drivers/generic/alc1015 chip drivers/generic/alc1015
register "hid" = ""RTL1019"" register "hid" = ""RTL1019""