ALSA: emu10k1: optimize mask calculation in snd_emu10k1_ptr_read()
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Sun, 14 May 2023 17:03:23 +0000 (19:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 May 2023 20:00:56 +0000 (22:00 +0200)
commit2e9bd50f117ea3f638802627a196949f7eefcf02
tree66aa59c2bcba9d538d055158119699d44a4b051d
parent2093dcfc04e1477efd47d3acf0adc4582dc5f4f6
ALSA: emu10k1: optimize mask calculation in snd_emu10k1_ptr_read()

Unlike in snd_emu10k1_ptr_write(), we don't need to keep the value's
bits in place, so we can save one shift.

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