aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-08-10 10:21:43 +0200
committerJaroslav Kysela <perex@suse.cz>2005-08-30 08:44:46 +0200
commit9bcf655109ae06a8e652671a0de6fe2da5c213c2 (patch)
tree13c6001737bf5f0ae3e32b188259bff64c8d4e01 /include/sound
parenta55bfdc5821df787068da15a6864f2c669d7d22c (diff)
downloadkernel_samsung_espresso10-9bcf655109ae06a8e652671a0de6fe2da5c213c2.zip
kernel_samsung_espresso10-9bcf655109ae06a8e652671a0de6fe2da5c213c2.tar.gz
kernel_samsung_espresso10-9bcf655109ae06a8e652671a0de6fe2da5c213c2.tar.bz2
[ALSA] ymfpci: add per-voice volume controls
YMFPCI driver Implements mixer controls for the volume of each playback substream of the main PCM device. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/ymfpci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/ymfpci.h b/include/sound/ymfpci.h
index 4b57068..9a3c1e6 100644
--- a/include/sound/ymfpci.h
+++ b/include/sound/ymfpci.h
@@ -295,6 +295,7 @@ struct _snd_ymfpci_pcm {
unsigned int running: 1;
unsigned int output_front: 1;
unsigned int output_rear: 1;
+ unsigned int update_pcm_vol;
u32 period_size; /* cached from runtime->period_size */
u32 buffer_size; /* cached from runtime->buffer_size */
u32 period_pos;
@@ -367,6 +368,11 @@ struct _snd_ymfpci {
int mode_dup4ch;
int rear_opened;
int spdif_opened;
+ struct {
+ u16 left;
+ u16 right;
+ snd_kcontrol_t *ctl;
+ } pcm_mixer[32];
spinlock_t reg_lock;
spinlock_t voice_lock;