[FFmpeg-devel] [PATCH] lavd/alsa: implement get_device_list callbacks

Lukasz Marek lukasz.m.luki2 at gmail.com
Fri Oct 24 22:07:23 CEST 2014

On 23.10.2014 14:28, Nicolas George wrote:
> Le primidi 1er brumaire, an CCXXIII, Lukasz Marek a écrit :
>> It gives the same list as aplay -L (upper case). For example (ffmpeg will
>> display it in different way, but the content is the same)
> I thought for a time that "dmix:CARD=PCH,DEV=0" had placeholders: PCH needed
> to be replaced by an actual parameter, but I see now that I am wrong.
> If all the listed device names are actually valid as is, then it should be
> ok.
> Is the doc clear enough that the list is not exhaustive, and that an
> application should leave the user enter a free-form device name?


>> default
>>      Playback/recording through the PulseAudio sound server
> For some reason (probably my strange ALSA config), I do not have that entry
> in the output of aplay -L. Maybe "default" needs a special case.

According to this
"The keyword default is defined in the ALSA lib API and will always 
access hw:0,0 — the default device on the default soundcard. Specifying 
the !default name supersedes the one defined in the ALSA lib API."

I have pulse-alsa.conf instaled from pulseaudio deb, that is included in 
alsa config:

pcm.!default {
     type pulse
     hint {
         show on
         description "Playback/recording through the PulseAudio sound 

ctl.!default {
     type pulse

So everything seems to be OK.

Updated patch is attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavd-alsa-implement-get_device_list-callbacks.patch
Type: text/x-patch
Size: 5642 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141024/fc5411ee/attachment.bin>

More information about the ffmpeg-devel mailing list