All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Low quality audio on Bluetooth Headset
@ 2006-11-15 19:24 Manuel Naranjo
  2006-11-15 21:28 ` Brad Midgley
  0 siblings, 1 reply; 5+ messages in thread
From: Manuel Naranjo @ 2006-11-15 19:24 UTC (permalink / raw)
  To: Bluez-users

Hi everyone,
I have a pair of Hifi bluetooth hearphones, that AIRcable 
(www.aircable.net) send to me. I use it under Windows and Linux, it 
cames with a usb bt dongle, that is recognized as a usb-sound card which 
works perfectly, the thing is that when I try to use the headset with a 
generic Bluetooth Dongle (using a2dpd) I get very low quality audio. I 
think the headphones work at 22kHz, and I don't get more than 11kHz when 
I use a2dpd, is there anything that I can do to fix this (including 
doing some code :D)
Cheers,
Manuel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] Low quality audio on Bluetooth Headset
  2006-11-15 19:24 [Bluez-users] Low quality audio on Bluetooth Headset Manuel Naranjo
@ 2006-11-15 21:28 ` Brad Midgley
  2006-11-15 21:39   ` Naranjo Manuel Francisco
  0 siblings, 1 reply; 5+ messages in thread
From: Brad Midgley @ 2006-11-15 21:28 UTC (permalink / raw)
  To: BlueZ users

Manuel

> I have a pair of Hifi bluetooth hearphones, that AIRcable 
> (www.aircable.net) send to me. I use it under Windows and Linux, it 
> cames with a usb bt dongle, that is recognized as a usb-sound card which 
> works perfectly, the thing is that when I try to use the headset with a 
> generic Bluetooth Dongle (using a2dpd) I get very low quality audio. I 
> think the headphones work at 22kHz, and I don't get more than 11kHz when 
> I use a2dpd, is there anything that I can do to fix this (including 
> doing some code :D)

what kind of quality problem? Is it only the low sampling rate or is it
one of the other problems? (low volume... popping sounds... played too
fast or slow... static...)

a2dp headsets are required to support 44.1khz btw.

Brad

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] Low quality audio on Bluetooth Headset
  2006-11-15 21:28 ` Brad Midgley
@ 2006-11-15 21:39   ` Naranjo Manuel Francisco
  2006-11-16  6:32     ` [Bluez-users] RE : " Frederic Dalleau
  0 siblings, 1 reply; 5+ messages in thread
From: Naranjo Manuel Francisco @ 2006-11-15 21:39 UTC (permalink / raw)
  To: BlueZ users

>
> what kind of quality problem? Is it only the low sampling rate or is it
> one of the other problems? (low volume... popping sounds... played too
> fast or slow... static...)

Very low sampling rate, it must be working about 10kHz. And I also get
disconnection problems, but this can be due to problems on my usb
connectors, they aren't working very well lately.


>
> a2dp headsets are required to support 44.1khz btw.
Mhh damn, this can be the cause. They are supposed to support 22-24kHz.

Again, if I use windows with Widcomm I get a very high rate, it must
be about 22 khz. If I use the usb-dongle that comes with it, I get a
very good rate, under linux or windows.

I will try again, and see if I can improve it.

Thanks,
Manuel.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bluez-users] RE :  Low quality audio on Bluetooth Headset
  2006-11-15 21:39   ` Naranjo Manuel Francisco
@ 2006-11-16  6:32     ` Frederic Dalleau
  2006-11-16 12:16       ` Manuel Naranjo
  0 siblings, 1 reply; 5+ messages in thread
From: Frederic Dalleau @ 2006-11-16  6:32 UTC (permalink / raw)
  To: BlueZ users

[-- Attachment #1: Type: text/plain, Size: 1655 bytes --]

Hi,
Can you send us the output of the dameon and your .a2dprc file?
As usual, which player are you using?
Thanks,
Frederic.


-------- Message d'origine--------
De: bluez-users-bounces@lists.sourceforge.net de la part de Naranjo Manuel Francisco
Date: mer. 15/11/2006 22:39
À: BlueZ users
Objet : Re: [Bluez-users] Low quality audio on Bluetooth Headset
 
>
> what kind of quality problem? Is it only the low sampling rate or is it
> one of the other problems? (low volume... popping sounds... played too
> fast or slow... static...)

Very low sampling rate, it must be working about 10kHz. And I also get
disconnection problems, but this can be due to problems on my usb
connectors, they aren't working very well lately.


>
> a2dp headsets are required to support 44.1khz btw.
Mhh damn, this can be the cause. They are supposed to support 22-24kHz.

Again, if I use windows with Widcomm I get a very high rate, it must
be about 22 khz. If I use the usb-dongle that comes with it, I get a
very good rate, under linux or windows.

I will try again, and see if I can improve it.

Thanks,
Manuel.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 3730 bytes --]

[-- Attachment #3: Type: text/plain, Size: 347 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bluez-users] RE :  Low quality audio on Bluetooth Headset
  2006-11-16  6:32     ` [Bluez-users] RE : " Frederic Dalleau
@ 2006-11-16 12:16       ` Manuel Naranjo
  0 siblings, 0 replies; 5+ messages in thread
From: Manuel Naranjo @ 2006-11-16 12:16 UTC (permalink / raw)
  To: BlueZ users

Frederic Dalleau escribi=F3:
> Hi,
> Can you send us the output of the dameon and your .a2dprc file?
> As usual, which player are you using?
> Thanks,
> Frederic

Hi,
At the end you can find the output. I think I have a clue why I get so =

low audio quality, I think that a2dpd is connecting to the hands free =

channel instead of the hifi channel  (check the sdpbrowse tools at the =

end). Is there anyway I can select to which channel a2dpd connects?
Cheers,
Manuel

OUTPUT FROM a2dpd:
Cannot open /dev/input/uinput: No such file or directory
a2dpd [Nov  8 2006 10:26:52] starting ...a2dpd addr=3D00:12:0E:06:C5:8A =

timer=3D4000 us [Nov  8 2006 10:26:52]
setscheduler returns -1 (errno=3D1:Operation not permitted)
main_thread:Accepting incoming tcp stream connection
New connection to bluetooth [44100 hz]
avrcp: Accepting incoming connection
avdtp: Accepting incoming connection
main_thread: Accepted 5
PCM thread 0.5 started
[1] Receiving failed on socket 0.5 error (0/4 bytes) errno=3D0:Success
Client thread 0.5 ending: error
main_thread:Accepting incoming tcp stream connection
main_thread: Accepted 5
PCM thread 0.5 started
[1] Receiving failed on socket 0.5 error (0/4 bytes) errno=3D0:Success
Client thread 0.5 ending: error
main_thread:Accepting incoming tcp stream connection
main_thread: Accepted 5
PCM thread 0.5 started
main_thread:Accepting incoming tcp stream connection
[1] Receiving failed on socket 0.5 error (-1/4 bytes) errno=3D11:Resource =

temporarily unavailable
Client thread 0.5 ending: timeout
main_thread: Accepted 10
PCM thread 0.10 started
DEBUG: a2dp_new: 00:12:0E:06:C5:8A, 44100
main_thread:Accepting incoming tcp stream connection
DEBUG: detect_a2dp: Found A2DP Sink
DEBUG: connect_stream: Found A2DP Sink at the destination (psm_cmd=3D25)
DEBUG: connect_stream: Sent the Stream End Point Discovery Command
DEBUG: a2dp_handle_avdtp_message: Read non command packet =

(msgtype=3D2,signal=3D1)
DEBUG: connect_stream: Got a Stream End Point Discovery (4 bytes) =

Response (msgtype=3D2,pkttype=3D0,lbl=3D0,sig=3D1,rfa=3D0)
02010408
DEBUG: connect_stream: received 1 capabilities
DEBUG: process_seid: Got capabilities response:
servcap_cap=3D1, servcap_len=3D0,
cap_type=3D7, length=3D6, media_type=3D0, codec=3D0
avrcp: socket 7: Connection from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
DEBUG: process_seid: Got Set Configurations Response (2 =

bytes:msgtype=3D2,pkttype=3D0,lbl=3D2,sig=3D3,rfa=3D0)
DEBUG: connect_stream: Sent stream start(seid=3D1)
DEBUG: connect_stream: Got start stream confirm
DEBUG: listen_thread: Listen thread running [control_sk=3D5]
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
avrcp: socket 7: Reading from 8A:C5:06:0E:12:00, mtu=3D672
handling SIGINT
main_thread: Accepted 11
Destroying lpA2dp, end of loop
DEBUG: a2dp_destroy: Begin
DEBUG: a2dp_free:
DEBUG: a2dp_destroy: a2dp_destroy(0x8058460) OK
Client thread 0.10 ending: no error
A2DPD still 2 clients running
socket 7: Receive failed 0 (error 0:Success)
avrcp: socket 7: timed out
A2DPD still 2 clients running
A2DPD terminated succesfully
----- END OF OUTPUT

sdpbrowse results :
Service Name: Audio Sink
Service RecHandle: 0x110b
Service Class ID List:
  "Audio Sink" (0x110b)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 25
  "AVDTP" (0x0019)
    uint16: 0x100
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Advanced Audio" (0x110d)
    Version: 0x0100

Service Name: Headset
Service RecHandle: 0x1108
Service Class ID List:
  "Headset" (0x1108)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 8
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100

Service Name: Handsfree
Service RecHandle: 0x111e
Service Class ID List:
  "Handsfree" (0x111e)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 7
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0101


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-16 12:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-15 19:24 [Bluez-users] Low quality audio on Bluetooth Headset Manuel Naranjo
2006-11-15 21:28 ` Brad Midgley
2006-11-15 21:39   ` Naranjo Manuel Francisco
2006-11-16  6:32     ` [Bluez-users] RE : " Frederic Dalleau
2006-11-16 12:16       ` Manuel Naranjo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.