Kodi Community Forum

Full Version: Audio Alsa - software PCM not showing in Audio Drop Down list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a software PCM plugin for alsa which is showing up with
Code:
alsa -L
but not
Code:
alsa -l
as it is not a hardware soundcard. How can I get it to show up in the System -> Audio Source dropdown in Kodi?

I can use it like this:
Code:
aplay -D myAudioDevice -f cd test.wav
Recompile kodi and change AESinkALSA
Hi Fritsch,

thanks for you reply. Could you give me a hint what I need to adjust to make it happen? My initial analysis led me here:
Github Kodi EnumerateDevice
But I am not sure about what exactly I need to adjust to make software pcm's visible.

Thanks
Code:
/* Ubuntu has patched their alsa-lib so that "defaults.namehint.extended"
       * defaults to "on" instead of upstream "off", causing lots of unwanted
       * extra devices (many of which are not actually routed properly) to be
       * found by the enumeration process. Skip them as well ("hw", "dmix",
       * "plughw", "dsnoop"). */

      else if (baseName != "default"
            && baseName != "sysdefault"
            && baseName != "surround40"
            && baseName != "surround41"
            && baseName != "surround50"
            && baseName != "surround51"
            && baseName != "surround71"
            && baseName != "hw"
            && baseName != "dmix"
            && baseName != "plughw"
            && baseName != "dsnoop")
      {
        EnumerateDevice(list, name, desc ? desc : name, config);
}

Remove the baseName that matters yours from the above list.
Thank you so much fritsch! It worked Smile