[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Openvortex-dev] Re: [Alsa-devel] Re: Volume per voices [Feature Request
From: |
Jaroslav Kysela |
Subject: |
[Openvortex-dev] Re: [Alsa-devel] Re: Volume per voices [Feature Request] |
Date: |
Thu, 28 Jul 2005 10:34:32 +0200 (CEST) |
On Thu, 28 Jul 2005, Raymond wrote:
> In theory, and sound cards with hardware mixing can support this kind of
> volume control.
>
> au88x0 driver may provide this kind of volume control on playing PCM
> streams by using hardware mixers.
>
> However the hardware mixers are dynamically allocated in routine
> snd_vortex_pcm_hw_params(), this means that the kcontrol can be put/get
> only between snd_pcm_hw_params() (return no error) and
> snd_pcm_hw_free()/snd_pcm_close().
Nope. Please, define the controls at the driver initialization phase and
make them inactive when the stream is not open. See emu10k1 or trident
driver for hints. You must also map the voice volume with substream
number.
Creating controls dymanically has only sense when hardware changes (like a
new DSP is loaded for emu10k1).
Jaroslav
-----
Jaroslav Kysela <address@hidden>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs