Skip to contentSkip to conversation

ALSA: hda/tas2781: Ignore SUBSYS_ID not found for tas2563 projects

PATCH Applied Baojun Xu 3 participants 4 messages Dec 30, 2024 – Jan 13, 2025 Sound

lore
Share & tools
lore

Baojun Xu

author
#0 lore raw

PATCH 1/1 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.

---
 sound/pci/hda/tas2781_hda_i2c.c | 4 ++++
 1 file changed, 4 insertions(+)
sound/pci/hda/tas2781_hda_i2c.c +4 -0
index 0af015806aba..0e42b87dadb8 100644
@@ -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);
Signature · 1 line
2.43.0
Applied
#1 lore raw
Quoted 5 lines · Baojun Xu

Driver will return error if no SUBSYS_ID found in BIOS(acpi). It will cause error in tas2563 projects, which have no SUBSYS_ID.

Thanks, applied now.

Takashi

#2 lore raw
In reply to Baojun Xu
Quoted 2 lines · Baojun Xu

Driver will return error if no SUBSYS_ID found in BIOS(acpi). It will cause error in tas2563 projects, which have no SUBSYS_ID.

...

sound/pci/hda/tas2781_hda_i2c.c static int tas2781_read_acpi(struct tasdevice_priv *p, const char *hid) · line 147

Quoted 3 lines
sound/pci/hda/tas2781_hda_i2c.c +3 -0
+		/* No subsys id in older tas2563 projects. */
+		if (!strncmp(hid, "INT8866", sizeof("INT8866")))
+			goto end_2563;

Is this ID was used on old platforms?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
author
#3 lore raw

_> _______________________________________

Quoted 19 lines

From: Andy Shevchenko <[email protected]>
Sent: 13 January 2025 16:37
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; Navada Kanyana, Mukund; [email protected]; Hampiholi, Vallabha; P O, Vijeth; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [EXTERNAL] Re: [PATCH v1] ALSA: hda/tas2781: Ignore SUBSYS_ID not found for tas2563 projects

On Mon, Dec 30, 2024 at 02: 49: 10PM +0800, Baojun Xu wrote: > Driver will return error if no SUBSYS_ID found in BIOS(acpi). > It will cause error in tas2563 projects, which have no SUBSYS_ID. .. . > + /* No subsys id in older tas2563 ZjQcmQRYFpfptBannerStart
This message was sent from outside of Texas Instruments.
Do not click links or open attachments unless you recognize the source of this email and know the content is safe.
<https://us-phishalarm-ewt.proofpoint.com/EWT/v1/G3vK!uBdnXZsDVuK1AUis0BxokFYl0U8msKJqQQTam8jBr5s6Aqzw9WEAd5LLFN0eVy0N20B_F7wSVDAFGD70$>
Report Suspicious

ZjQcmQRYFpfptBannerEnd

Quoted 2 lines · Baojun Xu

Driver will return error if no SUBSYS_ID found in BIOS(acpi). It will cause error in tas2563 projects, which have no SUBSYS_ID.

Quoted 7 lines

...

sound/pci/hda/tas2781_hda_i2c.c static int tas2781_read_acpi(struct tasdevice_priv *p, const char *hid) · line 147

Quoted 3 lines
sound/pci/hda/tas2781_hda_i2c.c +3 -0
+             /* No subsys id in older tas2563 projects. */
+             if (!strncmp(hid, "INT8866", sizeof("INT8866")))
+                     goto end_2563;

Is this ID was used on old platforms?

Yes. And it will never be used in our product again.

Quoted 6 lines

--
With Best Regards,
Andy Shevchenko