Commit 063bfc5c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA: use plughw rather than hw for manually selected output

plughw provides transparent userspace format conversion if needed.
That is much safer. In fact, I doubt VLC would support all raw hardware
drivers - some have rather weird format requirements.
parent 75689061
......@@ -1005,13 +1005,13 @@ static void GetDevicesForCard( vlc_object_t *obj, module_config_t *p_item,
continue;
}
if( asprintf( &psz_device, "hw:%d,%d", i_card, i_pcm_device ) == -1 )
break;
if( asprintf( &psz_device, "plughw:%u,%u", i_card, i_pcm_device ) == -1 )
continue;
if( asprintf( &psz_descr, "%s: %s (%s)", psz_card_name,
snd_pcm_info_get_name(p_pcm_info), psz_device ) == -1 )
{
free( psz_device );
break;
continue;
}
msg_Dbg( obj, " %s", psz_descr );
......
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