At 11 Mar 2003 10:04:18 +0100,
Thomas Charbonnel wrote:
> 
> Hi,
> 
> As you may know the hdsp has a variable number of channels depending on
> the sample rate. The card's internal routing is controlled by a matrix
> mixer. For convenience simple mixer ctls are defined at card
> initialization. When the number of channels change, I flag the .access
> field of the unused ctls with SNDRV_CTL_ELEM_READ and
> SNDRV_CTL_ELEM_INACTIVE. It seems to work fine with amixer (amixer
> controls doesn't show anymore the unused channels), but alsamixer gives
> the following error: function snd_mixer_load failed: Invalid argument.
> Any idea on what is going wrong ? 
> 
> Another point: the matrix mixer is now (with patch II from Paul)
> read/write. In write mode it takes 3 parameters:
> source,destination,gain. With the amixer patch I submitted some days ago
> it is possible to actually read it, passing source and destination
> channels as parameters to the cget option. In the driver, the return
> values use the same structure as the parameters. Should I respect the
> parameters index (returning the gain value in value[2]) or should I
> consider that return values start at value[0] ?

IIRC, the indirect access is still not implemented as a standard way
of control API.

i myself like it better than the linear addressing of thousands of
mixer elements for the matrix mixer.  but it's not the standard way,
yet, and we need again a discussion to convince other people to allow
that...

hence i'd like to propose to postpone this after 0.9.0-final release.


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to