2004-11-24 23:23:28

by Sebastian Eichner

[permalink] [raw]
Subject: [Bluez-devel] "playback drain error" with snd-bt-sco

Hi all,

i would love to get my new Bluetooth headset (Bluetake BT420) running
with linux. So i compiled and installed the alsa-bluetooth cvs code
(btw: i had to add "-lsdp" to the libs in the Makefile to make it
compile).

I can load the kernel module and start btsco:
/usr/local/bin/btsco 00:08:F4:30:03:71
Device is 1:0
Voice setting: 0x0060
RFCOMM channel 5 connected

But when i play a wav-file via aplay or play/dsp1, i do not hear
anything but get an error message in the system log:

Nov 25 00:12:34 linux kernel: snd-bt-sco: playback_open
Nov 25 00:12:34 linux kernel: snd-bt-sco: prepare ok bps: 16000 size:
16002 count: 4000
Nov 25 00:12:34 linux kernel: snd-bt-sco: playback_trigger 1
Nov 25 00:12:34 linux kernel: snd-bt-sco: setting playback to bspcm
Nov 25 00:12:44 linux kernel: ALSA sound/core/pcm_native.c:1316:
playback drain error (DMA or IRQ trouble?)
Nov 25 00:12:44 linux kernel: snd-bt-sco: playback_trigger 0
Nov 25 00:12:44 linux kernel: snd-bt-sco: setting playback to NULL


I am using kernel 2.6.5 from SuSE-linux, so i replaced the kalloc()
statements with the old ones (found in cvs and did some merging).
Compiled and loaded fine without any errors.

Do you have an idea whats going wrong? Or doesnt it work with 2.6.5
anymore at all?

Thanks!
Sebastian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2004-11-25 16:34:38

by Brad Midgley

[permalink] [raw]
Subject: Re: [Bluez-devel] "playback drain error" with snd-bt-sco

Sebastian,

I'll second Marcel's suggestion you try a newer kernel. Maybe you
already have...

It's unfortunate that the module api is changing across *stable*
versions of the kernel. The reality is we don't have the volunteers
required to maintain for multiple kernels.

Brad

Sebastian Eichner wrote:
> Hi all,
>
> i would love to get my new Bluetooth headset (Bluetake BT420) running
> with linux. So i compiled and installed the alsa-bluetooth cvs code
> (btw: i had to add "-lsdp" to the libs in the Makefile to make it
> compile).
>
> I can load the kernel module and start btsco:
> /usr/local/bin/btsco 00:08:F4:30:03:71
> Device is 1:0
> Voice setting: 0x0060
> RFCOMM channel 5 connected
>
> But when i play a wav-file via aplay or play/dsp1, i do not hear
> anything but get an error message in the system log:
>
> Nov 25 00:12:34 linux kernel: snd-bt-sco: playback_open
> Nov 25 00:12:34 linux kernel: snd-bt-sco: prepare ok bps: 16000 size:
> 16002 count: 4000
> Nov 25 00:12:34 linux kernel: snd-bt-sco: playback_trigger 1
> Nov 25 00:12:34 linux kernel: snd-bt-sco: setting playback to bspcm
> Nov 25 00:12:44 linux kernel: ALSA sound/core/pcm_native.c:1316:
> playback drain error (DMA or IRQ trouble?)
> Nov 25 00:12:44 linux kernel: snd-bt-sco: playback_trigger 0
> Nov 25 00:12:44 linux kernel: snd-bt-sco: setting playback to NULL
>
>
> I am using kernel 2.6.5 from SuSE-linux, so i replaced the kalloc()
> statements with the old ones (found in cvs and did some merging).
> Compiled and loaded fine without any errors.
>
> Do you have an idea whats going wrong? Or doesnt it work with 2.6.5
> anymore at all?
>
> Thanks!
> Sebastian
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Bluez-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-devel


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-11-25 02:51:15

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] "playback drain error" with snd-bt-sco

Hi Sebastian,

> i would love to get my new Bluetooth headset (Bluetake BT420) running
> with linux. So i compiled and installed the alsa-bluetooth cvs code
> (btw: i had to add "-lsdp" to the libs in the Makefile to make it
> compile).

maybe you should update to the latest bluez-libs.

> I can load the kernel module and start btsco:
> /usr/local/bin/btsco 00:08:F4:30:03:71
> Device is 1:0
> Voice setting: 0x0060
> RFCOMM channel 5 connected
>
> But when i play a wav-file via aplay or play/dsp1, i do not hear
> anything but get an error message in the system log:
>
> Nov 25 00:12:34 linux kernel: snd-bt-sco: playback_open
> Nov 25 00:12:34 linux kernel: snd-bt-sco: prepare ok bps: 16000 size:
> 16002 count: 4000
> Nov 25 00:12:34 linux kernel: snd-bt-sco: playback_trigger 1
> Nov 25 00:12:34 linux kernel: snd-bt-sco: setting playback to bspcm
> Nov 25 00:12:44 linux kernel: ALSA sound/core/pcm_native.c:1316:
> playback drain error (DMA or IRQ trouble?)
> Nov 25 00:12:44 linux kernel: snd-bt-sco: playback_trigger 0
> Nov 25 00:12:44 linux kernel: snd-bt-sco: setting playback to NULL
>
>
> I am using kernel 2.6.5 from SuSE-linux, so i replaced the kalloc()
> statements with the old ones (found in cvs and did some merging).
> Compiled and loaded fine without any errors.
>
> Do you have an idea whats going wrong? Or doesnt it work with 2.6.5
> anymore at all?

Why don't you try a 2.6.10-rc2-bk9 or 2.6.9-mh4 and see if this one
works.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel