ALSA: emu10k1: introduce and use snd_emu10k1_ptr_write_multiple()
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Thu, 18 May 2023 09:31:34 +0000 (11:31 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 May 2023 11:08:23 +0000 (13:08 +0200)
commit46055699e5f81db8c70946609f445c572983eca5
tree1e678d1dc54d9434f48cebfcac67686fc2b11916
parent6797400ef4abb4359c225a207c1f3ca28591f51c
ALSA: emu10k1: introduce and use snd_emu10k1_ptr_write_multiple()

While this nicely denoises the code, the real intent is being able to
write many registers pseudo-atomically, which will come in handy later.

Idea stolen from kX-project.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230518093134.3697955-1-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/emu10k1.h
sound/pci/emu10k1/emu10k1_callback.c
sound/pci/emu10k1/emu10k1_main.c
sound/pci/emu10k1/emumixer.c
sound/pci/emu10k1/emupcm.c
sound/pci/emu10k1/io.c