summaryrefslogtreecommitdiff
path: root/drivers/scsi/pm8001/pm8001_defs.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>2023-05-16 11:36:11 +0200
committerTakashi Iwai <tiwai@suse.de>2023-05-17 17:04:35 +0200
commit77e067d0fa0511daec7e4c72ec3f830e5faaee9e (patch)
tree1911452e67ec3b0aaf8d06b008f4ba09b74d4872 /drivers/scsi/pm8001/pm8001_defs.h
parent35a60d1edff4dec9a31862a3515676cd0fafe4e4 (diff)
ALSA: emu10k1: skip needless setting of some voice registers
Many registers are meaningless for stereo slaves and the extra voices. This patch cleans up these unnecessary register writes. snd_emu10k1_playback_{trigger,stop}_voice() is not called for stereo slaves any more. snd_emu10k1_playback_prepare_voice() is renamed to snd_emu10k1_playback_unmute_voice(), as this better reflects its remaining function. It's not called for the extra voices any more. Accordingly, snd_emu10k1_playback_mute_voice() is factored out from snd_emu10k1_playback_stop_voice(), and is called selectively as well. This doesn't add conditionals which would avoid initializing sub-registers, as that wouldn't pull its weight. Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Link: https://lore.kernel.org/r/20230516093612.3536451-6-oswald.buddenhagen@gmx.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_defs.h')
0 files changed, 0 insertions, 0 deletions