diff options
author | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2023-05-18 16:09:44 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-05-18 16:55:56 +0200 |
commit | 82a9fa6e9e3c769f7edc62810c9718997cada53d (patch) | |
tree | c6a70fb3b045f541c8419f9b6401a9a285a130f8 /include/sound/emu10k1.h | |
parent | ALSA: emu10k1: improve voice status display in /proc (diff) | |
download | linux-82a9fa6e9e3c769f7edc62810c9718997cada53d.tar.xz linux-82a9fa6e9e3c769f7edc62810c9718997cada53d.zip |
ALSA: emu10k1: make freeing untouched playback voices cheap
This allows us to drop the code that tries to preserve already allocated
voices upon repeated hw_param callback invocations. Getting it right for
multi-channel voices would otherwise get a bit hairy.
Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230518140947.3725394-5-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/emu10k1.h')
-rw-r--r-- | include/sound/emu10k1.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h index 1fa7816c07fd..0ce84beb6441 100644 --- a/include/sound/emu10k1.h +++ b/include/sound/emu10k1.h @@ -1453,6 +1453,7 @@ struct snd_emu10k1; struct snd_emu10k1_voice { unsigned char number; unsigned char use; + unsigned char dirty; void (*interrupt)(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *pvoice); struct snd_emu10k1_pcm *epcm; |