diff options
author | Matteo Bernardini | 2020-09-12 20:31:23 +0200 |
---|---|---|
committer | Matteo Bernardini | 2020-09-12 20:31:23 +0200 |
commit | b38ad4464a26bbe8c11a8ec3d2a44467a9f80c19 (patch) | |
tree | 79336dddbe92db427d5b2b9fd50541954114ff5c /libraries/libffado/libffado-2.4.2-python38.patch | |
parent | b2643f7815ef7bbf399288ba0e383b0f293ce05e (diff) | |
download | slackbuilds-current-20200912.1.tar.gz |
20200912.1 global branch merge.current-20200912.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libffado/libffado-2.4.2-python38.patch')
-rw-r--r-- | libraries/libffado/libffado-2.4.2-python38.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libraries/libffado/libffado-2.4.2-python38.patch b/libraries/libffado/libffado-2.4.2-python38.patch new file mode 100644 index 0000000000..d0ad2e956d --- /dev/null +++ b/libraries/libffado/libffado-2.4.2-python38.patch @@ -0,0 +1,24 @@ +diff -ruN a/support/mixer-qt4/ffado/configuration.py b/support/mixer-qt4/ffado/configuration.py +--- a/support/mixer-qt4/ffado/configuration.py 2017-03-28 13:38:34.000000000 +0200 ++++ b/support/mixer-qt4/ffado/configuration.py 2019-11-24 20:55:05.284341627 +0100 +@@ -20,7 +20,8 @@ + # along with this program. If not, see <http://www.gnu.org/licenses/>. + # + +-import re, os ++import os ++import dbus + + import shlex + +@@ -53,6 +54,10 @@ + self.addDevice( dev ) + + def getDeviceById( self, vendor, model ): ++ if isinstance(vendor, dbus.Int32): ++ vendor = str(int(vendor)) ++ if isinstance(model, dbus.Int32): ++ model = str(int(model)) + log.debug("DeviceList::getDeviceById( %s, %s )" % (vendor, model )) + for dev in self.devices: + if int("%s" % dev['vendorid'], 0) == int("%s" % vendor, 0) and \ |