Debian Patches

Status for dahdi-linux/1:3.4.0~dfsg-4

Patch Description Author Forwarded Bugs Origin Last update
1150-linux-fix-6.11.0.patch Adjusted prototypes to build with kernel 6.11.0 and later. Benedikt Wildenhain <benedikt.wildenhain@hs-bochum.de> no debian 2025-01-01
1020-dahdi_linux_extra.patch dahdi-extra: out-of-tree DAHDI drivers
This patch includes a number of out-of-tree DAHDI drivers from the
dahdi-extra repository. They are all out-of-tree and are highly likely
not to be included in DAHDI-linux in the foreseeable future.

Currently only includes OSLEC
Tzafrir Cohen <tzafrir.cohen@xorcom.com> no https://notabug.org/tzafrir/dahdi-linux-extra 2018-01-02
1030-no_firmware_download.patch The firmware downloaders are extra kernel objects that are now required for
the Hardware echo canceller support in some Digium cards (wctdm24xxp,
wcte12xp). They are downloaded at build time. The makefile will build
with support for them if they were indeed downloaded.

This patch removes this downloading and thus keeps those modules
DFSG-compliant. Unlike the Digium firmwares, this is a compile-time
decision and hence cannot be reverted once a dahdi-modules package is
built.

===================================================================
no
1040-chanmute.patch Enable CHANMUTE optimization (for xpp, mostly)
Enable the OPTIMIZE_CHANMUTE code: don't waste CPU time on channels
whose audio is not useful. Currently only used by xpp drivers, and
disabled by default by upstream.
Tzafrir Cohen <tzafrir.cohen@xorcom.com> no
1050-hotplug_mod_params.patch use hotplug mode ("pinned spans") by default
Disable automatic span assignment. Span assignment should be done by
userspace udev hooks.

===================================================================
Tzafrir Cohen <tzafrir.cohen@xorcom.com> no
1070-divide64bit.patch Avoid 64bit division, or where needed use kernel support functions
for it.

Needed on (at least) armhf and i386.

===================================================================
no
1080-conditioned_config.patch Add proper conditions for NET and PPP
Make sure CONFIG_DAHDI_NET and CONFIG_DAHDI_PPP are only enabled if the
kernel configuration supports them.

===================================================================
Tzafrir Cohen <tzafrir@debian.org> no
1100-linux_5_18_pci_consistent.patch 5.18: Wrappers for pci_alloc_consistent et all
===================================================================
Tzafrir Cohen <tzafrir@debian.org> no
1110-xhfc_lastreg.patch Initialize x in xhfc.c
Reported error of uninitialized variabld x.
Initialize it to the same value used to initialize the field lastreg.

===================================================================
Tzafrir Cohen <tzafrir@debian.org> no
1130-appstream-metainfo.patch Added AppStream metainfo XML with hardware provide info. This allow isenkram to propose this package when a hardware is
present. The tools package (in Debian, at least) depend on the
source packages, either the DKMS version or the source tarball
version, so these packages do not need a hardware mapping on their
own. Most of the metainfo content is copyright 2023 Tzafrir Cohen
<tzafrir@debian.org>.
Petter Reinholdtsen no 2024-07-28
1160-inline-first.patch Move inline first after static in declaration. Fixes the following compiler warning:

/var/lib/dkms/dahdi/3.1.0+git20230717/build/drivers/dahdi/wct4xxp/base.c:1157:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
1157 | static void inline t4_hdlc_xmit_fifo(struct t4 *wc, unsigned int span, struct t4_span *ts)
| ^~~~~~
Petter Reinholdtsen <pere@debian.org> no 2025-01-01
1170-ascii-source.patch Avoid non-ASCII, non-UTF-8 comment in source code. Issue discovered by Lintuan. Petter Reinholdtsen <pere@debian.org> no 2025-01-01
1180-UBUNTU-SAUCE-linux-6.11-fix-MAX-redefinition-warning.patch [SRU][PATCH] UBUNTU: SAUCE: Fix MAX redefinition warnings
Linux 6.11 made MIN and MAX definitions available everywhere.
This caused compile-time warnings due to redefinition of MAX constant.
Adjusted the code accordingly to solve the warnings.
Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com> no
1200-del_timer_sync.patch kernel functions have been renamed del_timer_sync() has been replaced by timer_delete_sync()
del_timer() has been replaced by timer_delete()
from_timer() has been replaced by timer_container_of()
symbols _binary_dahdi_fw_* are missing!?
===================================================================
no
1210-kbuild.patch EXTRA_CFLAGS need to be replaced by ccflags-y nowadays=================================================================== no
1220-hrtimer.patch commit 0fc7bfe4adf9d0fdd9f1f84122306da196bc187a

dahdi_dummy: Use hrtimer_setup on kernels >= 6.15.0.

Kernel commit 908a1d775422ba2e27a5e33d0c130b522419e121 introduced
hrtimer_setup to eventually replace hrtimer_init, which was done
in kernel commit 9779489a31d77a7b9cb6f20d2d2caced4e29dbe6.
Accordingly, we now use the new setup process on newer kernels.

Resolves: #93

diff --git a/drivers/dahdi/dahdi_dummy.c b/drivers/dahdi/dahdi_dummy.c
index b1004d9..44cd3ba 100644
InterLinked1 <24227567+InterLinked1@users.noreply.github.com> no 2025-07-29
1230-init-module.patch commit af886bcf8aee19566871f06778925fbdf1e72053

dahdi_dummy: Use module_init/module_exit instead of init_module/cleanup_module.

Since kernel commit 4fab2d7628dd38f3fa8a5e615199350ecaeb17a8, building
dahdi_dummy fails with an objtool failure since init_module/cleanup_module
are deprecated. Update dahdi_dummy to use module_init and module_exit, just
like all other modules.

Resolves: #94

===================================================================
InterLinked1 <24227567+InterLinked1@users.noreply.github.com> no 2025-07-29

All known versions for source package 'dahdi-linux'

Links