5 Jun
2023
5 Jun
'23
2:47 p.m.
On Mon, Jun 05, 2023 at 08:09:33PM +0800, YingKun Meng wrote:
The driver supports the use of ACPI table to describe device resources. On loongson 7axxx platforms, the audio device is an ACPI device.
I'm not seeing any ACPI IDs added here, this is all DT other than this:
- if (has_acpi_companion(&pdev->dev)) {
device_property_read_string(&pdev->dev, "codec-name",
&codec_name);
for (i = 0; i < card->num_links; i++)
loongson_dai_links[i].codecs->name = codec_name;
device_property_read_string(&pdev->dev, "codec-dai-name",
&codec_dai_name);
for (i = 0; i < card->num_links; i++)
loongson_dai_links[i].codecs->dai_name = codec_dai_name;
- } else {
which doesn't look *great* from an ACPI point of view TBH. I thought there were now some (semi?) standard ACPI bindings these days to support referencing other devices better?