Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
AESinkALSA: fix enumeration of cards without front devices #15774
ALSA cards don't have necessarily a front device, alsa-lib creates
So we shouldn't skip the sysdefault PCM in enumeration, otherwise
For cards with front/surround PCMs the sysdefault entry should
Motivation and Context
ALSA cards without a front device were missing in the list of audio devices, see #15757 for details
How Has This Been Tested?
Kodi master branch on Raspbian Stretch running on a Raspberry Pi 3B+ with 3 ALSA devices: on-board bcm2835 audio, Cirrus Logic Audio Card (with an ALSA card conf to create the iec958 PCM), USB audio device with TI/Burr Brown chip (stock alsa card conf creates front and surround PCMs).
LibreELEC master branch, using Kodi 18.1 with popcornmix's RPi patches and this PR and same ALSA setup as above
As a comparison LibreELEC 9.0.1 without this PR shows the RPi-Cirrus Analog device missing in the list
Types of change