mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-20 19:14:54 -04:00
ALSA: emu10k1: make struct snd_emu1010 less wasteful
Shrink the {in,out}put_source arrays and their data type to what is
actually necessary.
To be still on the safe side, add some static asserts.
Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230516093612.3536508-11-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
6f3609f8a3
commit
216abe45cf
@@ -1637,9 +1637,12 @@ struct snd_emu_chip_details {
|
||||
const char *id; /* for backward compatibility - can be NULL if not needed */
|
||||
};
|
||||
|
||||
#define NUM_OUTPUT_DESTS 28
|
||||
#define NUM_INPUT_DESTS 22
|
||||
|
||||
struct snd_emu1010 {
|
||||
unsigned int output_source[64];
|
||||
unsigned int input_source[64];
|
||||
unsigned char output_source[NUM_OUTPUT_DESTS];
|
||||
unsigned char input_source[NUM_INPUT_DESTS];
|
||||
unsigned int adc_pads; /* bit mask */
|
||||
unsigned int dac_pads; /* bit mask */
|
||||
unsigned int internal_clock; /* 44100 or 48000 */
|
||||
|
||||
Reference in New Issue
Block a user