Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: hda: beep: Drop stale mutex

The beep->mutex is no longer used since the drop of beep_mode=2.
Let's get rid of it.

Fixes: 0920c9b4c4d8 ("ALSA: hda - Remove beep_mode=2")
Link: https://lore.kernel.org/r/20240222153148.19691-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

-2
-1
sound/pci/hda/hda_beep.c
··· 231 231 codec->beep = beep; 232 232 233 233 INIT_WORK(&beep->beep_work, &snd_hda_generate_beep); 234 - mutex_init(&beep->mutex); 235 234 236 235 input_dev = input_allocate_device(); 237 236 if (!input_dev) {
-1
sound/pci/hda/hda_beep.h
··· 27 27 unsigned int playing:1; 28 28 unsigned int keep_power_at_enable:1; /* set by driver */ 29 29 struct work_struct beep_work; /* scheduled task for beep event */ 30 - struct mutex mutex; 31 30 void (*power_hook)(struct hda_beep *beep, bool on); 32 31 }; 33 32