[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241230064910.1583-1-baojun.xu@ti.com>
Date: Mon, 30 Dec 2024 14:49:10 +0800
From: Baojun Xu <baojun.xu@...com>
To: <tiwai@...e.de>
CC: <robh+dt@...nel.org>, <andriy.shevchenko@...ux.intel.com>,
<lgirdwood@...il.com>, <perex@...ex.cz>, <shenghao-ding@...com>,
<navada@...com>, <13916275206@....com>, <v-hampiholi@...com>,
<v-po@...com>, <linux-sound@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <liam.r.girdwood@...el.com>,
<yung-chuan.liao@...ux.intel.com>, <baojun.xu@...com>,
<broonie@...nel.org>, <antheas.dk@...il.com>,
<stuart.a.hayhurst@...il.com>
Subject: [PATCH v1] ALSA: hda/tas2781: Ignore SUBSYS_ID not found for tas2563 projects
Driver will return error if no SUBSYS_ID found in BIOS(acpi).
It will cause error in tas2563 projects, which have no SUBSYS_ID.
Signed-off-by: Baojun Xu <baojun.xu@...com>
---
sound/pci/hda/tas2781_hda_i2c.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c
index 0af015806aba..0e42b87dadb8 100644
--- a/sound/pci/hda/tas2781_hda_i2c.c
+++ b/sound/pci/hda/tas2781_hda_i2c.c
@@ -142,6 +142,9 @@ static int tas2781_read_acpi(struct tasdevice_priv *p, const char *hid)
}
sub = acpi_get_subsystem_id(ACPI_HANDLE(physdev));
if (IS_ERR(sub)) {
+ /* No subsys id in older tas2563 projects. */
+ if (!strncmp(hid, "INT8866", sizeof("INT8866")))
+ goto end_2563;
dev_err(p->dev, "Failed to get SUBSYS ID.\n");
ret = PTR_ERR(sub);
goto err;
@@ -164,6 +167,7 @@ static int tas2781_read_acpi(struct tasdevice_priv *p, const char *hid)
p->speaker_id = NULL;
}
+end_2563:
acpi_dev_free_resource_list(&resources);
strscpy(p->dev_name, hid, sizeof(p->dev_name));
put_device(physdev);
--
2.43.0
Powered by blists - more mailing lists