mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-30 09:03:23 -05:00
[alsa] dump_card() includes ALSA device name
Include ALSA's device name in the ALSA modules 'info' logging to help identify sound devices as seen by the system for assisting config setup Many configs use ALSA's hw ids to refer to device but ALSA can also use device names: laudio: Available ALSA playback mixer(s) on hw:0 CARD=Intel (HDA Intel): 'Master' 'Headphone' 'Speaker' 'PCM' 'Mic' 'Beep' laudio: Available ALSA playback mixer(s) on hw:1 CARD=E30 (E30): 'E30 ' From the example above can use these ALSA names interchangably: 'hw:0' and 'hw:Intel' 'hw:1' and 'hw:E30'
This commit is contained in:
parent
5a864351d3
commit
c6c1e8f9ee
@ -247,7 +247,7 @@ dump_card(int card, snd_ctl_card_info_t *info)
|
|||||||
if (mixerstr[0] == '\0')
|
if (mixerstr[0] == '\0')
|
||||||
sprintf(mixerstr, " (no mixers found)");
|
sprintf(mixerstr, " (no mixers found)");
|
||||||
|
|
||||||
DPRINTF(E_INFO, L_LAUDIO, "Available ALSA playback mixer(s) on '%s' (%s):%s\n", hwdev, snd_ctl_card_info_get_name(info), mixerstr);
|
DPRINTF(E_INFO, L_LAUDIO, "Available ALSA playback mixer(s) on %s CARD=%s (%s):%s\n", hwdev, snd_ctl_card_info_get_id(info), snd_ctl_card_info_get_name(info), mixerstr);
|
||||||
|
|
||||||
errormixer:
|
errormixer:
|
||||||
snd_mixer_close(mixer);
|
snd_mixer_close(mixer);
|
||||||
|
Loading…
Reference in New Issue
Block a user