Bug 441476

Summary: KMix doesn't work properly when system has 2 ALSA cards with the same name
Product: [Applications] kmix Reporter: Olexiy Khokhlov <alex.forth>
Component: generalAssignee: Christian Esken <esken>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 21.04.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Proposed fix

Description Olexiy Khokhlov 2021-08-24 11:58:59 UTC
Created attachment 141004 [details]
Proposed fix

SUMMARY:
My laptop Asus VivoBook has two sound devices.
hw:0 is ATI Generic and has S/PDIF only
hw:1 is Realtek ALC256.
Both devices have title - "HD-Audio Generic". 
alsamixer shows all controls for every device as expected. So I have no problem with them here.
 

STEPS TO REPRODUCE
1. Press button "Add new mixer panel"
2. Mixers combo-box contains two mixers with the same title. Try to choose the second mixer.
3. The new tab panel is added  


OBSERVED RESULT
The new added panel contains S/PDIF only

EXPECTED RESULT
The new added panel has Realtek ALC256 controls


SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Gentoo Linux with no pulseaudio (only ALSA is present)
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Laptop  ASUS VivoBook

forth@VIVO ~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, Generic Digital
    HDMI Audio Output
default:CARD=Audio_card
    HD-Audio Generic, ALC256 Analog
    Default Audio Device
sysdefault:CARD=Audio_card
    HD-Audio Generic, ALC256 Analog
    Default Audio Device
front:CARD=Audio_card,DEV=0
    HD-Audio Generic, ALC256 Analog
    Front output / input
surround21:CARD=Audio_card,DEV=0
    HD-Audio Generic, ALC256 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Audio_card,DEV=0
    HD-Audio Generic, ALC256 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Audio_card,DEV=0
    HD-Audio Generic, ALC256 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Audio_card,DEV=0
    HD-Audio Generic, ALC256 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Audio_card,DEV=0
    HD-Audio Generic, ALC256 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Audio_card,DEV=0
    HD-Audio Generic, ALC256 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers