Re: [PATCH] ALSA: hda: fix snd_hda_bus_reset when single_cmd is not supported

From: soxiebing
Date: Mon Aug 26 2024 - 05:20:43 EST


>On Wed, 21 Aug 2024 03:42:38 +0200,
>soxiebing wrote:
>>
>> From: songxiebing <songxiebing@xxxxxxxxxx>
>>
>> When an azx_get_desponse timeout occurs, ensure that bus_reset
>> can be used when fallback_to_single_cmd is not supported.
>>
>> Signed-off-by: songxiebing <songxiebing@xxxxxxxxxx>
>
>Why do you need to change? Does it fix any real problem you faced?

Thanks for reply, i am testing all these days, but the problem is
still exists even if using bus reset.

The problem i encountered is that hda_call_codec_resume returned
timeout of 120 seconds(defined CONFIG_DPM_WATCHDOG)) when doing s4,
azx_get_response timeout occured, it is a low probability event.

To avoid exceeding 120s, can i change the count value to 3 in
hda_set_power_state ?