[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <21c58803-a8ed-44de-9211-7c8742cf5eb3@amd.com>
Date: Tue, 10 Dec 2024 11:54:28 +0530
From: potturu venkata prasad <venkataprasad.potturu@....com>
To: Markus Elfring <Markus.Elfring@....de>, alsa-devel@...a-project.org,
linux-sound@...r.kernel.org, Mark Brown <broonie@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Basavaraj Hiregoudar <Basavaraj.Hiregoudar@....com>,
Jaroslav Kysela <perex@...ex.cz>, Jiawei Wang <me@...ng.link>,
Liam Girdwood <lgirdwood@...il.com>,
Mario Limonciello <mario.limonciello@....com>,
Sunil-kumar Dommati <Sunil-kumar.Dommati@....com>,
Syed Saba Kareem <Syed.SabaKareem@....com>, Takashi Iwai <tiwai@...e.com>,
Vijendar Mukunda <Vijendar.Mukunda@....com>, end.to.start@...l.ru
Subject: Re: [PATCH] ASoC: amd: yc: Fix the wrong return value
On 12/9/24 19:16, Markus Elfring wrote:
Hi Markus,
> …
>> Add a condition check to jump to check the DMI entries
>> incase of ACP driver fail to read ACPI _WOV method.
> in case? failure?
It's a continuous statement.
"Added a condition check to jump into check_dmi_entry when ACP driver
fail to read ACPI _WOV method".
>
>
> …
>> +++ b/sound/soc/amd/yc/acp6x-mach.c
>> @@ -578,14 +578,19 @@ static int acp6x_probe(struct platform_device *pdev)
>>
>> handle = ACPI_HANDLE(pdev->dev.parent);
>> ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status);
>> - if (!ACPI_FAILURE(ret))
>> + if (!ACPI_FAILURE(ret)) {
>> wov_en = dmic_status;
>> + if (!wov_en)
>> + return -ENODEV;
>> + } else {
>> + /* Incase of ACPI method read failure then jump to check_dmi_entry */
>> + goto check_dmi_entry;
>> + }
>>
>> if (is_dmic_enable && wov_en)
>> platform_set_drvdata(pdev, &acp6x_card);
> …
>
> Is there a need to adjust another condition check accordingly?
No Markus, not required.
>
> Regards,
> Markus
Powered by blists - more mailing lists