From: Clemens Ladisch Date: Mon, 23 Jul 2007 15:38:44 +0000 (+0200) Subject: [ALSA] ymfpci: fix volume handling of the 44.1 kHz slot X-Git-Tag: v2.6.24-rc1~832^2~253 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=177a7cdbd1d88be5cbf957a2793a59ffa50cbef9;p=pandora-kernel.git [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 Signed-off-by: Jaroslav Kysela --- Reading git-diff-tree failed