From: "Brian J. Murrell" <brian@interlinx.bc.ca>
To: linux-bluetooth <linux-bluetooth@vger.kernel.org>
Subject: Re: headset target seems to be playing but no sound
Date: Fri, 29 Jan 2010 15:23:56 -0500 [thread overview]
Message-ID: <1264796636.26570.612.camel@pc.interlinx.bc.ca> (raw)
In-Reply-To: <20100128215042.4cfc0eb1@atom.pigiron.org>
[-- Attachment #1: Type: text/plain, Size: 3893 bytes --]
On Thu, 2010-01-28 at 21:50 -0600, pigiron@gmx.com wrote:
>
> Good point. I set up a debug environment (again), created some 8k Hz audio
> files, and confirmed that you are correct.
>
> But the 8k mono file worked in my environment.
Unfortunately it doesn't in my environment. :-(
> I put the S805 headset into HFP mode and did this:
Hrm. I don't know that I have to or know how to do this with my
headset. Can you elaborate?
> $ aplay -D s805 8k.wav
> Playing WAVE '8k.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
When I use sox to provide the same kind of input, I get no luck:
$ sox /mnt/mp3/bad_mouth.wav -c 1 -b 8 -r 8k -t wav - | aplay -D bluetoothfoo
Playing WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
I still get nothing except the headset beeps when the stream starts and
then ends. FWIW, my alsa configuration for bluetoothfoo:
pcm.bluetoothraw {
type bluetooth
device 00:1A:45:1B:19:89
#profile "auto" #optional, supported profiles are: auto, hifi and
voice
#profile "voice" #optional, supported profiles are: auto, hifi and
voice
}
pcm.bluetoothfoo {
type plug
slave {
pcm bluetoothraw
}
}
Trying to use bluetoothraw directly doesn't work either:
$ sox /mnt/mp3/bad_mouth.wav -c 1 -b 8 -r 8k -t wav - | aplay -D bluetoothraw
Playing WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:979: Sample format non available
> and verified that I was using the SCO path (HSP/HFP) by firing up hcidump
> during playback:
>
> # hcidump -x
Me too:
> [snip]
> SCO data: handle 1 flags 0x00 dlen 48
DD FF 2C 00 B9 FD 86 FF 5D FF 06 FE 52 FF 89 FD F6 FE 55 FF
77 FD 4A FF 84 FF 4C FE FA FE ED FF 6C 00 D6 FF 43 FE 20 00
E1 00 E3 FF FD 00 03 00
> SCO data: handle 1 flags 0x00 dlen 48
CB FE C0 FE 24 FE 77 FE 39 FF A3 FD B6 FF A9 FF 32 FD 6C 01
B5 FE E5 FD DD 00 4A FE 2F 01 C1 FF C0 FD B2 00 05 00 61 FF
FE FF CF FF F3 FF 03 FF
> SCO data: handle 1 flags 0x00 dlen 48
3A 00 71 00 3E FF 4D 00 59 FF D7 FF 1C 00 E7 FE 3B FF E9 FF
2A FE 2E FF BC FF 7E FC AC FE 1A FF 70 FE 30 FF A8 FD 58 FF
69 FF 68 FE 76 FF 4E 00
> The bluetooth USB computer dongle:
>
> # hciconfig -a
> hci0: Type: USB
> BD Address: AA:BB:CC:DD:EE:FF ACL MTU: 1021:7 SCO MTU: 64:1
> UP RUNNING PSCAN
> RX bytes:64829124 acl:41 sco:1271103 events:139 errors:0
> TX bytes:3077 acl:43 sco:0 commands:85 errors:0
> Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> Link policy: RSWITCH HOLD SNIFF PARK
> Link mode: SLAVE ACCEPT
> Name: 'atom-0'
> Class: 0x4a0104
> Service Classes: Networking, Capturing, Telephony
> Device Class: Computer, Desktop workstation
> HCI Ver: 2.1 (0x4) HCI Rev: 0x5332 LMP Ver: 2.1 (0x4) LMP Subver: 0x420e
> Manufacturer: Broadcom Corporation (15)
Just for contrast, here's mine:
$ hciconfig -a
hci0: Type: USB
BD Address: 00:0D:18:01:3B:9B ACL MTU: 1017:8 SCO MTU: 64:0
UP RUNNING PSCAN ISCAN
RX bytes:3679050 acl:84 sco:72118 events:143 errors:13
TX bytes:2177 acl:75 sco:0 commands:59 errors:0
Features: 0xff 0xff 0x8d 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'pc-0'
Class: 0x0a0104
Service Classes: Networking, Capturing
Device Class: Computer, Desktop workstation
HCI Ver: 2.0 (0x3) HCI Rev: 0x4000 LMP Ver: 2.0 (0x3) LMP Subver: 0x430e
Manufacturer: Broadcom Corporation (15)
Interestingly enough, both are Broadcom dongles.
> Keep me posted (maybe privately???)
Please, to the list, so that everyone can benefit.
> if you find any good nuggets.
b.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2010-01-29 20:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8396c2281001242007n5ae20eccj53d496f1297e5d22@mail.gmail.com>
2010-01-25 4:13 ` headset target seems to be playing but no sound Chao Deng
2010-01-25 4:21 ` Brian J. Murrell
2010-01-26 1:23 ` pigiron
2010-01-27 3:28 ` Chao Deng
2010-01-29 3:50 ` pigiron
2010-01-29 20:23 ` Brian J. Murrell [this message]
2010-01-29 21:42 ` Gunn, Brian
2010-01-29 22:03 ` Brian J. Murrell
2009-12-31 5:14 Brian J. Murrell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1264796636.26570.612.camel@pc.interlinx.bc.ca \
--to=brian@interlinx.bc.ca \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).