diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-08-10 04:21:43 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-08-30 02:44:46 -0400 |
commit | 9bcf655109ae06a8e652671a0de6fe2da5c213c2 (patch) | |
tree | 13c6001737bf5f0ae3e32b188259bff64c8d4e01 /include/sound/ymfpci.h | |
parent | a55bfdc5821df787068da15a6864f2c669d7d22c (diff) |
[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/ymfpci.h')
-rw-r--r-- | include/sound/ymfpci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/ymfpci.h b/include/sound/ymfpci.h index 4b570684a6a..9a3c1e6c820 100644 --- a/include/sound/ymfpci.h +++ b/include/sound/ymfpci.h | |||
@@ -295,6 +295,7 @@ struct _snd_ymfpci_pcm { | |||
295 | unsigned int running: 1; | 295 | unsigned int running: 1; |
296 | unsigned int output_front: 1; | 296 | unsigned int output_front: 1; |
297 | unsigned int output_rear: 1; | 297 | unsigned int output_rear: 1; |
298 | unsigned int update_pcm_vol; | ||
298 | u32 period_size; /* cached from runtime->period_size */ | 299 | u32 period_size; /* cached from runtime->period_size */ |
299 | u32 buffer_size; /* cached from runtime->buffer_size */ | 300 | u32 buffer_size; /* cached from runtime->buffer_size */ |
300 | u32 period_pos; | 301 | u32 period_pos; |
@@ -367,6 +368,11 @@ struct _snd_ymfpci { | |||
367 | int mode_dup4ch; | 368 | int mode_dup4ch; |
368 | int rear_opened; | 369 | int rear_opened; |
369 | int spdif_opened; | 370 | int spdif_opened; |
371 | struct { | ||
372 | u16 left; | ||
373 | u16 right; | ||
374 | snd_kcontrol_t *ctl; | ||
375 | } pcm_mixer[32]; | ||
370 | 376 | ||
371 | spinlock_t reg_lock; | 377 | spinlock_t reg_lock; |
372 | spinlock_t voice_lock; | 378 | spinlock_t voice_lock; |