Re: [alsa-devel] [PATCH] - arecord - remove "front" and related devices from the output of list-pcm option of arecord
On Thu, 1 Jul 2010, Raymond Yau wrote:
Replace "front" device by "hw" device and remove "rear", "center_lfe" , "side" , "surroundxx" from the output of "arecord -L" since "front" device cannot be used for capturing and the front device is for playback only .
NAK. Fix alsa-lib/configuration to return proper "IOID".
Jaroslav
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.
2010/7/1 Jaroslav Kysela perex@perex.cz
On Thu, 1 Jul 2010, Raymond Yau wrote:
Replace "front" device by "hw" device and remove "rear", "center_lfe" ,
"side" , "surroundxx" from the output of "arecord -L" since "front" device cannot be used for capturing and the front device is for playback only .
NAK. Fix alsa-lib/configuration to return proper "IOID".
Jaroslav
Where should proper "IOID" be placed in those alsa-lib/src/conf/cards/*.conf
* IOID - input / output identification (Input or Output strings), * not present (NULL) means both
2010/7/1 Jaroslav Kysela perex@perex.cz
On Thu, 1 Jul 2010, Raymond Yau wrote:
Replace "front" device by "hw" device and remove "rear", "center_lfe" ,
"side" , "surroundxx" from the output of "arecord -L" since "front" device cannot be used for capturing and the front device is for playback only .
NAK. Fix alsa-lib/configuration to return proper "IOID".
Jaroslav
I have tried put "IOID" in many place such as usr/share/alsa/pcm/front.conf ,
it seem that hint_list_add() only add name and description in alsa-lib/src/control/namehint.c
hint_list_add(struct hint_list *list, const char *name, const char *description)
I wonder "IOID" was never added to the hint list and that is why all devices are Input/Output
dsnoop should be input and dmix should be output
2010/7/1 Jaroslav Kysela perex@perex.cz
On Thu, 1 Jul 2010, Raymond Yau wrote:
Replace "front" device by "hw" device and remove "rear", "center_lfe" ,
"side" , "surroundxx" from the output of "arecord -L" since "front" device cannot be used for capturing and the front device is for playback only .
NAK. Fix alsa-lib/configuration to return proper "IOID".
Jaroslav
I guess the hint "IOID" has not implemented , the namehint.c did not add "Input" or "Output" to the hint_list and snd_device_name_get_hint() is unable to retrieve "IOID" from the hint_list
On Fri, 2 Jul 2010, Raymond Yau wrote:
2010/7/1 Jaroslav Kysela perex@perex.cz
On Thu, 1 Jul 2010, Raymond Yau wrote:
Replace "front" device by "hw" device and remove "rear", "center_lfe" ,
"side" , "surroundxx" from the output of "arecord -L" since "front" device cannot be used for capturing and the front device is for playback only .
NAK. Fix alsa-lib/configuration to return proper "IOID".
Jaroslav
I guess the hint "IOID" has not implemented , the namehint.c did not add "Input" or "Output" to the hint_list and snd_device_name_get_hint() is unable to retrieve "IOID" from the hint_list
Use device_input and device_output in the hint {} section instead device.
Jaroslav
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.
2010/7/2 Jaroslav Kysela perex@perex.cz
On Fri, 2 Jul 2010, Raymond Yau wrote:
2010/7/1 Jaroslav Kysela perex@perex.cz
On Thu, 1 Jul 2010, Raymond Yau wrote:
Replace "front" device by "hw" device and remove "rear", "center_lfe" ,
"side" , "surroundxx" from the output of "arecord -L" since "front" device cannot be used for capturing and the front device is for playback only .
NAK. Fix alsa-lib/configuration to return proper "IOID".
Jaroslav
I guess the hint "IOID" has not implemented , the namehint.c did not add "Input" or "Output" to the hint_list and snd_device_name_get_hint() is unable to retrieve "IOID" from the hint_list
Use device_input and device_output in the hint {} section instead device.
Jaroslav
The only conf file which contain device_input and device_output is alsa-lib/src/conf/pcm/default.conf
hint { description "Default Audio Device" device_output { @func refer name defaults.pcm.dmix.device } device_input { @func refer name defaults.pcm.dsnoop.device } }
But arecord -L or aplay -L show both dmix:CARD=xxx , dsnopp:CARD=xxx devices
Any example how to set the correct syntax to use device_input and device_output ?
Do I need to put them in every card's conf file or just pcm/front.conf ?
participants (2)
-
Jaroslav Kysela
-
Raymond Yau