ALSA: emu10k1: refactor PCM playback address handling
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Wed, 17 May 2023 17:42:56 +0000 (19:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 May 2023 05:31:32 +0000 (07:31 +0200)
commitfa75064d92fdec157d75375bca06c77fb30c25df
tree72e81aed290d1c16f4a676ac6632d1eae4e0867e
parent9581128a213461cf2f82dd09558b7066d363360c
ALSA: emu10k1: refactor PCM playback address handling

Pull the special handling of extra voices out of
snd_emu10k1_pcm_init_voice(), simplify snd_emu10k1_playback_pointer(),
and make the logic overall clearer. Also, add verbose comments.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230517174256.3657060-9-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emupcm.c