WSL2-Linux-Kernel/sound
Oswald Buddenhagen 16cafbd977 ALSA: emu10k1: remove pointless locks from timer code
Contrary to its name, reg_lock locks the emu data structure, not the
registers. As the functions access only data which is set once at card
initialization, there is no point in locking it.

Actually locking the registers would be pointless as well, as
snd_emu10k1_intr_{en,dis}able() does its own locking, and TIMER is
accessed only in this one place.

Locking snd_emu10k1_timer_{start,stop}() against each other also
wouldn't buy us anything; the functions interleaving their I/O accesses
wouldn't introduce new problems.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230428095941.1706278-2-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2023-05-08 09:20:48 +02:00
..
ac97
aoa
arm
atmel
core sound fixes for 6.4-rc1 2023-05-06 08:07:11 -07:00
drivers
firewire
hda
i2c
isa
mips
oss
parisc
pci ALSA: emu10k1: remove pointless locks from timer code 2023-05-08 09:20:48 +02:00
pcmcia
ppc
sh
soc sound fixes for 6.4-rc1 2023-05-06 08:07:11 -07:00
sparc
spi
synth
usb ALSA: caiaq: input: Add error handling for unsupported input methods in `snd_usb_caiaq_input_init` 2023-05-04 09:50:11 +02:00
virtio
x86
xen
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c