kernel-ark/drivers
Matthias Goebl 7fde4d779b [ISDN]: i4l: Fix DLE handling for i4l-audio
The DLE handling in i4l-audio seems to be broken.

It produces spurious DLEs so asterisk 1.2.24 with chan_modem_i4l
gets irritated, the error message is:
"chan_modem_i4l.c:450 i4l_read: Value of escape is ^ (17)".
-> There shouldn't be a DLE-^.
If a spurious DLE-ETX occurs, the audio connection even dies.
I use a "AVM Fritz!PCI" isdn card.

I found two issues that only appear if ISDN_AUDIO_SKB_DLECOUNT(skb) > 0:
- The loop in isdn_tty.c:isdn_tty_try_read() doesn't escape a DLE if it's
  the last character.

- The loop in isdn_common.c:isdn_readbchan_tty() doesn't copy its characters,
  it only remembers the last one ("last = *p;").

  Compare it with the loop in isdn_common.c:isdn_readbchan(), that *does*
  copy them ("*cp++ = *p;") correctly.
  The special handling of the "last" character made it more difficult.
  I compared it to linux-2.4.19: There was no "last"-handling and both loops
  did escape and copy all characters correctly.

Signed-off-by: Matthias Goebl <matthias.goebl@goebl.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-04 03:55:44 -08:00
..
acorn/char
acpi
amba
ata
atm [ATM]: Spelling fixes 2007-12-20 14:05:37 -08:00
auxdisplay
base
block
bluetooth
cdrom
char tty: fix logic change introduced by wait_event_interruptible_timeout() 2007-12-23 12:54:37 -08:00
clocksource
connector [CONNECTOR]: Return proper error code in cn_call_callback() 2008-01-04 03:55:37 -08:00
cpufreq
cpuidle
crypto Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2007-12-27 21:45:01 -08:00
dca
dio
dma
edac
eisa
firewire
firmware
hid
hwmon hwmon: (w83627ehf) Be more careful when changing VID input level 2008-01-03 07:33:31 -05:00
i2c
ide cmd64x: fix hwif->chipset setup 2007-12-24 15:23:44 +01:00
ieee1394
infiniband IB/srp: Fix list corruption/oops on module reload 2008-01-03 10:25:27 -08:00
input
isdn [ISDN]: i4l: Fix DLE handling for i4l-audio 2008-01-04 03:55:44 -08:00
kvm
leds leds: Fix locomo LED driver oops 2007-12-31 23:11:11 +00:00
lguest
macintosh
mca
md dm crypt: use bio_add_page 2007-12-20 17:32:13 +00:00
media V4L/DVB (6876): ivtv: mspx4xx needs a longer i2c udelay 2007-12-24 08:07:36 -02:00
message
mfd
misc
mmc
mtd
net [CASSINI]: Bump driver version and release date. 2008-01-04 03:55:30 -08:00
nubus
of
oprofile
parisc
parport
pci [PCI] Do not enable CRS Software Visibility by default 2007-12-27 21:21:36 -08:00
pcmcia pcmcia: remove pxa2xx_lubbock build warning 2007-12-23 12:54:37 -08:00
pnp
power
ps3 ps3: vuart: fix error path locking 2007-12-23 12:54:37 -08:00
rapidio
rtc
s390
sbus
scsi Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 2008-01-03 11:59:27 -08:00
serial [SERIAL]: Fix section mismatches in Sun serial console drivers. 2007-12-29 01:19:49 -08:00
sh
sn
spi
ssb
tc
telephony
uio
usb USB: New device ID for the CP2101 driver 2007-12-22 23:14:33 -08:00
video
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile