2009-09-29 21:16:48

by Brock Denson

[permalink] [raw]
Subject: bluez alsa problems

Hi,
I am having trouble with alsa audio and bluez.? It seems to be a bluez problem because it works correctly with a USB transport, but not with UART.? Scenario is as follows:
1. Paired to Bluetooth headset (CSR BC6rom based if that matters)
2. Record 10 seconds of audio with arecord -d 10 -r 8000 -f S16_LE -D sco myaudio.wav

With a UART interface (via hciattach) arecord ?runs for 20+ seconds, but the wav file contains only 10 seconds of audio.? That 10 seconds of audio is actually the 20+ seconds compressed (sped up).
With a USB interface (USB dongle) arecord runs for 10 seconds and the audio is as expected.

It seems that it has to be some sort of sample rate problem, but I am not sure where to look next.? I am currently looking in pcm_bluetooth.c, but not really familiar with the inner workings of bluez.? I have included the output of the alsa-info which has more detailed information, but the summary follows:
Kernel ubuntu 2.6.28.9
Bluez 4.50
Alsa 1.0.21

Any help is greatly appreciated,
Brock


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom


Attachments:
alsa-info.txt (29.52 kB)
alsa-info.txt