OSDN Git Service

ALSA: emu10k1: fix writing 1st pointer-offset register set through /proc
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Fri, 26 May 2023 10:16:55 +0000 (12:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 Jun 2023 07:25:22 +0000 (09:25 +0200)
commit67ff2add9e2cef1d5d60cf5a37f1f52c65bf97c7
tree32faacf2bf97d59a9103b4bdc5353b88e1bd161c
parent219153c6ed46b064f9c2b0f70dacf21f719751ee
ALSA: emu10k1: fix writing 1st pointer-offset register set through /proc

The limits were appropriate only for the 2nd set.

FWIW, the channel count 4 for the 2nd set is suspicious as well - at
least P17V_PLAYBACK_FIFO_PTR actually has 8 channels, and comments on
HCFG2 hint at that as well. But all bitmasks are documented only for 4
channels. Anyway, rectifying that is out of scope for this patch.

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