diff options
author | Furquan Shaikh <furquan@google.com> | 2020-04-27 18:04:46 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-04-29 08:40:41 +0000 |
commit | edfc5a9df5444cfa6746b0aa78361e4dfa1ed15b (patch) | |
tree | 45f9ed5f0e94606443de061ad4f7e8dfe2da1cd6 /src/soc/amd/common/block/hda | |
parent | 45f06c56ca0ab071e2780c89e7011d2268f588c7 (diff) |
soc/amd/hda: Add .acpi_name() callback to HDA driver
This change adds .acpi_name() callback to HDA driver that returns
"AZHD" as the ACPI device name for HDA controller. Since this is now
done by the common HDA driver, this change also removes the HDA device
name returned by stoneyridge in chip.c.
BUG=b:153858769
Change-Id: I89eaa799518572f3c46c7ce9ef8dd3f85daa12bb
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40781
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/common/block/hda')
-rw-r--r-- | src/soc/amd/common/block/hda/hda.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/hda/hda.c b/src/soc/amd/common/block/hda/hda.c index c53291d815..ea42b84216 100644 --- a/src/soc/amd/common/block/hda/hda.c +++ b/src/soc/amd/common/block/hda/hda.c @@ -14,11 +14,17 @@ static const unsigned short pci_device_ids[] = { 0 }; +static const char *hda_acpi_name(const struct device *dev) +{ + return "AZHD"; +} + static struct device_operations hda_audio_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, .ops_pci = &pci_dev_ops_pci, + .acpi_name = hda_acpi_name, }; static const struct pci_driver hdaaudio_driver __pci_driver = { |