2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 14:14:01 +08:00
linux-next/sound/pci/ymfpci
Clemens Ladisch 177a7cdbd1 [ALSA] ymfpci: fix volume handling of the 44.1 kHz slot
The existing code for handling the 44.1 slot's volume has two problems:
the volume is not affected by the 'Wave Playback Volume' mixer control,
and the BUF441OUTVOL register, which is used to control the per-
substream volume for this slot, uses a different scale than the gain
fields of the other slots.
This patch makes the BUF441OUTVOL register a shadow of the
NATIVEDACOUTVOL register so that the Wave volume is consistent for all
substreams.
As a consequence of this, the per-substream PCM volume control gets no
longer activated for the substream using this slot.  The code for
(de)activating the mixer control is moved from the open/close to the
prepare/trigger_stop callbacks so that it is able to determine the
substream's slot.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2007-10-16 15:57:50 +02:00
..
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ymfpci_image.h [ALSA] ymfpci: add request_firmware() 2007-02-09 09:00:42 +01:00
ymfpci_main.c [ALSA] ymfpci: fix volume handling of the 44.1 kHz slot 2007-10-16 15:57:50 +02:00
ymfpci.c [ALSA] ymfpci: fix swap_rear for S/PDIF passthrough 2006-12-20 08:55:38 +01:00