Commit 46235557 authored by Jean-Paul Saman's avatar Jean-Paul Saman

access/alsa.c: print the subdevices also

parent bb9c9396
......@@ -207,9 +207,26 @@ static char *ListAvailableDevices( demux_t *p_demux, bool b_probe )
if( snd_ctl_pcm_info( p_ctl, p_pcminfo ) < 0 ) continue;
if( !b_probe )
{
msg_Dbg( p_demux, " hw:%d,%d : %s (%s)", i_card, i_dev,
snd_pcm_info_get_id( p_pcminfo ),
snd_pcm_info_get_name( p_pcminfo ) );
int count = snd_pcm_info_get_subdevices_count( p_pcminfo );
msg_Dbg( p_demux, " subdevices: %i/%i",
snd_pcm_info_get_subdevices_avail( p_pcminfo ), count );
for( int idx = 0; idx < count; idx++ )
{
snd_pcm_info_set_subdevice( p_pcminfo, idx );
int err = snd_ctl_pcm_info( p_ctl, p_pcminfo );
if( err < 0 )
msg_Err( p_demux, "control digital audio playback info (%i): %s",
i_card, snd_strerror( err ) );
else
msg_Dbg( p_demux, " %i: %s",
idx, snd_pcm_info_get_subdevice_name( p_pcminfo ) );
}
}
else
{
char *psz_device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment