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.I'm not seeing any ACPI IDs added here, this is all DT other than this:
On loongson 7axxx platforms, the audio device is an ACPI device.
Got it! I will rewrite this part.+ if (has_acpi_companion(&pdev->dev)) {which doesn't look *great* from an ACPI point of view TBH. I thought
+ 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 {
there were now some (semi?) standard ACPI bindings these days to support
referencing other devices better?