← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 2013394] [NEW] ffado-mixer-qt4 needs an upgrade from 2.4.6 to 2.4.7

 

You have been subscribed to a public bug:

ffado-mixer-qt4 is a separate package based upon libffado.

the package and libffado-2.4.6 needs to be upgraded to libffado-2.4.7 in
Ubuntu 22.10

libffado-2.4.6 contains an error that is fixed in libffado-2.4.7 which
is described at http://ffado.org/posts/ffado-2.4.7-release/ . Specially,
the issue is 2.4.7 addresses "additional type-related issues encounted
in ffado-mixer when using python 3.10. Components affected were the
crossbar router and the M-Audio device mixer."

The issue is enough to crash ffado-mixer-qt4 in Ubuntu 22.10. I
understand from a support discussion, that the fix is even implemented
in 23.04 (out in about a month). So in principle, I think it should be
easy to fix.

As far as ffado-mixer-qt4 is concerned, the issue is a very tiny fix.
Literally two values are wrapped in int() in 2.4.7 see:

diff -ur libffado-2.4.6/support/mixer-qt4/ffado/mixer/maudio_bebob.py libffado-2.4.7/support/mixer-qt4/ffado/mixer/maudio_bebob.py
--- libffado-2.4.6/support/mixer-qt4/ffado/mixer/maudio_bebob.py	2022-07-10 08:57:18.000000000 +0200
+++ libffado-2.4.7/support/mixer-qt4/ffado/mixer/maudio_bebob.py	2022-11-27 12:24:03.000000000 +0100
@@ -598,7 +598,7 @@
 
             db = self.hw.getContignuous(path, idx)
             vol = self.db2vol(db)
-            ctl.setValue(vol)
+            ctl.setValue(int(vol))
             ctl.valueChanged.connect(self.updateVolume)
 
             # to activate link button, a pair is checked twice, sign...
diff -ur libffado-2.4.6/support/mixer-qt4/ffado/widgets/crossbarrouter.py libffado-2.4.7/support/mixer-qt4/ffado/widgets/crossbarrouter.py
--- libffado-2.4.6/support/mixer-qt4/ffado/widgets/crossbarrouter.py	2022-02-25 13:25:10.000000000 +0100
+++ libffado-2.4.7/support/mixer-qt4/ffado/widgets/crossbarrouter.py	2022-11-27 12:24:03.000000000 +0100
@@ -53,7 +53,7 @@
         p = QPainter(self)
         value = self.level/4096
         r = self.rect()
-        r.setHeight(r.height() * math.sqrt(value))
+        r.setHeight(int(r.height() * math.sqrt(value)))
         r.moveBottom(self.rect().height())
         p.fillRect(r, self.palette().highlight())

** Affects: libffado (Ubuntu)
     Importance: Undecided
         Status: New

-- 
ffado-mixer-qt4 needs an upgrade from 2.4.6 to 2.4.7
https://bugs.launchpad.net/bugs/2013394
You received this bug notification because you are a member of Ubuntu Studio Bugs, which is subscribed to libffado in Ubuntu.