Skip to content

Commit 911cd9b

Browse files
committed
dahdi-linux: Update version to 3.4.0
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
1 parent 6c9fae7 commit 911cd9b

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

libs/dahdi-linux/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ include $(TOPDIR)/rules.mk
99
include $(INCLUDE_DIR)/kernel.mk
1010

1111
PKG_NAME:=dahdi-linux
12+
PKG_VERSION:=3.4.0
1213
PKG_RELEASE:=1
1314

14-
PKG_SOURCE_PROTO:=git
15-
PKG_SOURCE_URL:=https://github.com/asterisk/dahdi-linux.git
16-
PKG_SOURCE_DATE=2024-04-12
17-
PKG_SOURCE_VERSION:=83d89b64d9151dbe4eb53b9ebc8640a08fcf4d63
18-
PKG_MIRROR_HASH:=67acfb62213270050d941643cb763c315cc6a2682a94fc517975707918e42ecb
15+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16+
PKG_SOURCE_URL:=https://github.com/asterisk/$(PKG_NAME)/releases/download/v$(PKG_VERSION)
17+
PKG_HASH:=b1344d61b86f68ae3fb774b76657216c6bf3cca89e04bfc6c93dbefccc88c654
1918

2019
PKG_LICENSE:=GPL-2.0
2120
PKG_LICENSE_FILES:=LICENSE
@@ -27,6 +26,8 @@ PKG_EXTMOD_SUBDIRS:=drivers/dahdi
2726

2827
include $(INCLUDE_DIR)/package.mk
2928

29+
CONFIG_KERNEL_CFLAGS+="-Wno-old-style-declaration"
30+
3031
define KernelPackage/dahdi
3132
SUBMENU:=Voice over IP
3233
TITLE:=DAHDI basic infrastructure
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- a/drivers/dahdi/wctdm24xxp/base.c
2+
+++ b/drivers/dahdi/wctdm24xxp/base.c
3+
@@ -1516,16 +1516,16 @@ static int wait_access(struct wctdm *wc,
4+
unsigned char data = 0;
5+
int count = 0;
6+
7+
- #define MAX 10 /* attempts */
8+
+ #define MAX_ATTEMPTS 10 /* attempts */
9+
10+
/* Wait for indirect access */
11+
- while (count++ < MAX) {
12+
+ while (count++ < MAX_ATTEMPTS) {
13+
data = wctdm_getreg(wc, mod, I_STATUS);
14+
if (!data)
15+
return 0;
16+
}
17+
18+
- if (count > (MAX-1)) {
19+
+ if (count > (MAX_ATTEMPTS-1)) {
20+
dev_notice(&wc->vb.pdev->dev,
21+
" ##### Loop error (%02x) #####\n", data);
22+
}

0 commit comments

Comments
 (0)