Kodi Community Forum

Full Version: ALSA device parsing broken (cosmetic)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Fairly latest Gotham git, and ALSA 1.0.26/27:

Add some local audio devices to /etc/asound.conf (these are not the configs i use, just an example, and asound.conf is otherwise empty):

pcm.Dev1 {
type plug
slave { pcm "hw:1,3" }
hint { show on }
}

pcm.Dev2 {
type plug
slave { pcm "hw:1,3" }
hint { show on }
}

...

"aplay -L" shows all device name (Dev1, Dev2, Dev3, ...) correctly under all circumstances. So i assume it's not an alsa library problem.

XBMC shows in the list of "Audio output device":

HDA NVidia (Dev1), HDMI 0
HDA NVidia (Dev2), HDMI 0
...
HDA NVidia, HDMI 0

Aka: When one configures/needs an ODD number of logical devices, then XBMC will not include the (<devicename>) for the last one. If one configures an EVEN number of logical devices, XBMC will correct include the (<devicename>) for all of them.

This is also the only thing visible in xbmc's log, e.g.:

NOTICE: m_displayName : HDA NVidia (<devname>) # correct
NOTICE: m_displayName : HDA NVidia # ODD last one

Yes, only a strange cosmetic bug, but given how the devname is choosen to tell the use the semantic of a logical device, it's really important.
Patch welcome.