At Thu, 15 Mar 2012 08:23:47 +0800, Raymond Yau wrote:
2012/3/14, Takashi Iwai tiwai@suse.de:
The patch changed some penum to enum
(e.g. "Independent HP" or "Channel Mode" )
Simple mixer control 'Independent HP',0 Capabilities: enum Items: 'OFF' 'ON' Item0: 'ON'
Yes, and it's the right fix. The enum is not specific to playback, at least, judging from the name string.
on hda ad198x , "input source" are cenum
Simple mixer control 'Input Source',0 Capabilities: cenum Items: 'Front Mic' 'Rear Mic' 'Line' 'CD' 'Mix' Item0: 'Front Mic' Simple mixer control 'Input Source',1 Capabilities: cenum Items: 'Front Mic' 'Rear Mic' 'Line' 'CD' 'Mix' Item0: 'Front Mic' Simple mixer control 'Input Source',2 Capabilities: cenum Items: 'Front Mic' 'Rear Mic' 'Line' 'CD' 'Mix' Item0: 'Line'
but those "Universal Jack" input source are enum
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5548
Simple mixer control 'Line Input Source',0 Capabilities: enum Items: 'Mic2 Jack' 'Mic1 Jack' 'Line In Jack' 'Front Jack' 'Rear Jack' 'Center/LFE Jack' 'Mute' Item0: 'Line In Jack'
Simple mixer control 'Mic Input Source',0 Capabilities: enum Items: 'Mic2 Jack' 'Mic1 Jack' 'Line In Jack' 'Front Jack' 'Rear Jack' 'Center/LFE Jack' 'Mute' Item0: 'Mic1 Jack' Simple mixer control 'Mic Select',0 Capabilities: enum Items: 'Mic1' 'Mic2' Item0: 'Mic1'
These are really not for captures. Thus it's correct to assign to the global enum.
Takashi