[alsa-devel] Spdif: Control interface

Pavel Hofman pavel.hofman at ivitera.com
Wed Nov 9 08:50:12 CET 2011


Dne 9.11.2011 06:28, ajay khandelwal napsal(a):
> Hi Pavel,
>  Thanks for reply
> 
> Simple mixer control 'IEC958 Playback AC97-SPSA',0
>   Capabilities: volume volume-joined penum
>   Playback channels: Mono
>   Capture channels: Mono
>   Limits: 0 - 3
>   Mono: 3 [100%]

Thanks. I assume you mean this control. For meaning of this control see
e.g. http://alsa.opensrc.org/Realtek_ALC650#SPDIF_support

It is not related to volume, IMO capabilities of this control are
incorrect, there should be "enum" instead. Perhaps changing
SNDRV_CTL_ELEM_TYPE_INTEGER to SNDRV_CTL_ELEM_TYPE_ENUMERATED ?

The code around this control is
http://git.alsa-project.org/?p=alsa-kmirror.git;a=blob;f=pci/ac97/ac97_codec.c;hb=HEAD#l874
. Perhaps the

.info = snd_ac97_info_volsw

should use a different method, setting the ENUM type.

Unfortunately, I do not have the HW to test any changes.

Regards,

Pavel.





More information about the Alsa-devel mailing list