ALSA: emu10k1: use more existing defines instead of open-coded numbers
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Fri, 28 Apr 2023 08:07:32 +0000 (10:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 28 Apr 2023 09:22:51 +0000 (11:22 +0200)
commit9d2f38638a145f0c6102bee6533204aa3e5a9c07
treead7d4d9e049b3674760e6d39cd946c442aec8bcb
parent067eb084592819ad59d07afcb5de3e61cee2757c
ALSA: emu10k1: use more existing defines instead of open-coded numbers

Using the *_MASK defines for "maximal value" is debatable. I got the
idea from FreeBSD, and it sorta makes sense to me.

Some hunks look a bit incomplete, because code that is going to be
subsequently removed is not touched here.

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