kdelibs/kdelibs-4.0.4-phonon-hal.patch

15 lines
786 B
Diff

--- kdelibs/phonon/libkaudiodevicelist/audiodevice.cpp 2008/05/15 10:17:11 807987
+++ kdelibs/phonon/libkaudiodevicelist/audiodevice.cpp 2008/05/15 10:18:11 807988
@@ -137,6 +137,11 @@
Solid::Device parent = audioDevice.parent();
if (parent.isValid()) {
d->uniqueId = d->uniqueIdentifierFromDevice(parent);
+ // newer HAL versions add one more parent in between to find the actual hardware info
+ if (d->uniqueId.isEmpty() && parent.parent().isValid()) {
+ parent = parent.parent();
+ d->uniqueId = d->uniqueIdentifierFromDevice(parent);
+ }
if (!d->uniqueId.isEmpty()) {
switch (audioHw->deviceType()) {
case Solid::AudioInterface::AudioInput: