ffado-mixer-qt4 needs an upgrade from 2.4.6 to 2.4.7

Bug #2013394 reported by No
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libffado (Ubuntu)
Fix Released
Undecided
Unassigned
Kinetic
Won't Fix
Undecided
Unassigned
Lunar
Fix Released
Undecided
Unassigned

Bug Description

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())

Tags: kinetic
Paul White (paulw2u)
affects: ubuntu → libffado (Ubuntu)
tags: added: kinetic
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Since Ubuntu 23.04 will include 2.4.7 and is due in less than a month, and since Ubuntu 22.10 will be End-Of-Life 3 months from then, and since we don't backport newer versions of packages without simple patches into regular, non-LTS releases, it is just better to wait and upgrade to 23.04 when it releases on April 20th.

Changed in libffado (Ubuntu Lunar):
status: New → Fix Released
Changed in libffado (Ubuntu Kinetic):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.