diff options
| author | wangdicheng <wangdicheng@kylinos.cn> | 2026-03-10 05:36:49 +0300 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-03-10 11:34:41 +0300 |
| commit | edf04f1af05d714c7aba0cf008ded1245365fcd7 (patch) | |
| tree | 47f4b84c30fc2a89844248808162d5e3556cc3a3 /include | |
| parent | c4791ce96b88a444b04c7089ae2827a3b3ae1877 (diff) | |
| download | linux-edf04f1af05d714c7aba0cf008ded1245365fcd7.tar.xz | |
ALSA: hda/senary: Fix beep error handling and optimize EAPD switching
This patch addresses a potential state inconsistency bug and optimizes
runtime performance:
1. Fix error handling in set_beep_amp():
Previously, beep_nid was assigned before adding kcontrols. If
kcontrol creation failed, the function returned error but left
beep_nid set, causing inconsistent driver state. Moved the
assignment to the end of the function.
2. Optimize senary_auto_turn_eapd():
Removed the redundant snd_hda_query_pin_caps() check inside the
loop. The target pins are sourced from spec->eapds, which is
strictly filtered during the initial parse phase. Checking
capabilities again during every mute/unmute hook is unnecessary
overhead.
Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
Link: https://patch.msgid.link/20260310023649.155858-1-wangdich9700@163.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
