libffado-2.4.2-python38.patch 874 B

12345678910111213141516171819202122232425
  1. diff -ruN a/support/mixer-qt4/ffado/configuration.py b/support/mixer-qt4/ffado/configuration.py
  2. --- a/support/mixer-qt4/ffado/configuration.py 2017-03-28 13:38:34.000000000 +0200
  3. +++ b/support/mixer-qt4/ffado/configuration.py 2019-11-24 20:55:05.284341627 +0100
  4. @@ -20,7 +20,8 @@
  5. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  6. #
  7. -import re, os
  8. +import os
  9. +import dbus
  10. import shlex
  11. @@ -53,6 +54,10 @@
  12. self.addDevice( dev )
  13. def getDeviceById( self, vendor, model ):
  14. + if isinstance(vendor, dbus.Int32):
  15. + vendor = str(int(vendor))
  16. + if isinstance(model, dbus.Int32):
  17. + model = str(int(model))
  18. log.debug("DeviceList::getDeviceById( %s, %s )" % (vendor, model ))
  19. for dev in self.devices:
  20. if int("%s" % dev['vendorid'], 0) == int("%s" % vendor, 0) and \