Bug 216152

Summary: PC beeper of conexant chip is not recognised anymore
Product: Drivers Reporter: Ingo D. Rullhusen (d01c)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: RESOLVED CODE_FIX    
Severity: normal CC: tiwai
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.15.46 4.19.246 Subsystem:
Regression: No Bisected commit-id:
Attachments: suggested patch for this bug

Description Ingo D. Rullhusen 2022-06-20 08:55:08 UTC
Created attachment 301227 [details]
suggested patch for this bug

The PC beeper of my ASUS notebook P2520L (Intel HDA / conexant) do not work anymore with recent kernel versions. This problem seems to exist since 4.19 or so. The PC beep functionality is recognised by autoprobing but not initialized.

This steps seems to be swapped (see suggested patch).

The appended patch was tested with 5.15.46 and 4.19.246.
Comment 1 Takashi Iwai 2022-06-20 10:24:43 UTC
Weird, it's not clear how this call order change really matters.

Could you give alsa-info.sh output, with and without your patch?  Run the script with --no-upload option and attach to Bugzilla.
Comment 2 Takashi Iwai 2022-06-20 10:31:38 UTC
Grr, scratch my comment, now I see that the missing piece is the beep_nid setup in the generic parser.  Then swapping the call makes sense.

I see a similar issue in VIA codec driver, too.  Will cook up the proper patch(es).
Comment 3 Takashi Iwai 2022-06-20 10:42:48 UTC
Now in the upstream:
https://lore.kernel.org/r/20220620104008.1994-1-tiwai@suse.de