From: 黄理洪 <peterlihong@gmail.com>
To: Bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Can an embeded development board emulate a headphone?
Date: Fri, 29 Feb 2008 17:49:02 +0800 [thread overview]
Message-ID: <b12debba0802290149r2d772241i407d79d3c2a568cd@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2977 bytes --]
Hi All:
Im using ALSA 1.0.15 and bluez 3.27 and linux 2.6.22. They are running
on two embeded development boards, one board acting as a computer and
the other as a headphone.
When i tried to use 'aplay' to connect the headphone board from my
computer board, i got the following error:
# aplay -D bluetooth
/home/lhhuang/BlueZ/dadi.wav
# audio[806]: Accepted new client connection on unix socket
(fd=8)
audio[806]: Audio API: received
BT_GETCAPABILITIES_REQ
audio[806]: Got path /org/bluez/hci0 for adapter with address
00:18:E4:0A:E8:B2
audio[806]: /org/bluez/hci0 GetRemoteName(): Not
available
audio[806]: Audio service discovery completed with
success
audio[806]: Found Audio
Sink
audio[806]: Found AV
Target
audio[806]: Found AV
Remote
audio[806]: Selecting default
device
audio[806]: avdtp_ref(0x48c4b8):
ref=2
Passkey request for device
00:18:E4:0A:E8:BE
audio[806]: AVDTP: connected signaling channel to
00:18:E4:0A:E8:BE
audio[806]: AVCTP: connected to
00:18:E4:0A:E8:BE
audio[806]: Can't open input device: No such file or directory
(2)
audio[806]: AVRCP: failed to init uinput for 00:18:E4:0A:E8:BE
audio[806]: session_cb
audio[806]: DISCOVER request succeeded
audio[806]: seid 1 type 0 media 0 in use 0
audio[806]: session_cb
audio[806]: GET_CAPABILITIES request succeeded
audio[806]: seid 1 type 0 media 0
audio[806]: Audio API: sending BT_GETCAPABILITIES_RSP
Playing WAVE '/home/lhhuang/BlueZ/dadi.wav' : Signed 16 bit Little Endian,
Rate 44100 Hz, Stereo
audio[806]: Audio API: received BT_SETCONFIGURATION_REQ
audio[806]: config a2dp - device = 00:18:E4:0A:E8:BE access_mode = 2
audio[806]: codec sbc - frequency = 2 channel_mode = 1 allocation = 1
subbands = 1 blocks = 1 bitpool = 53
audio[806]: a2dp_source_config: selected SEP 0x486318
audio[806]: avdtp_ref(0x48c4b8): ref=3
audio[806]: setup_ref(0x48bfd0): ref=1
*audio[806]: No matching ACP and INT SEPs found*
audio[806]: setup_unref(0x48bfd0): ref=0
audio[806]: setup_free(0x48bfd0)
audio[806]: avdtp_unref(0x48c4b8): ref=2
audio[806]: config failed
audio[806]: Audio API: sending BT_SETCONFIGURATION_RSP
*ALSA lib pcm_bluetooth.c:708:(bluetooth_a2dp_hw_params) BT_SETCONFIGURATION
failed : Input/output error(5)
aplay: set_params:962: Unable to install hw params:*
ACCESS:
RW_INTERLEAVED
FORMAT:
S16_LE
SUBFORMAT:
STD
SAMPLE_BITS:
16
FRAME_BITS:
32
CHANNELS:
2
RATE: 44100
PERIOD_TIME: (46439
46440)
PERIOD_SIZE:
2048
PERIOD_BYTES:
8192
PERIODS:
3
BUFFER_TIME: (139319
139320)
BUFFER_SIZE:
6144
BUFFER_BYTES:
24576
TICK_TIME: [0
0]
audio[806]: Unix client disconnected
(fd=8)
audio[806]: avdtp_unref(0x48c4b8):
ref=1
audio[806]: AVCTP session 0x4880b8 got
disconnected
audio[806]:
session_cb
audio[806]: Disconnected from
00:18:E4:0A:E8:BE
audio[806]: avdtp_unref(0x48c4b8):
ref=0
audio[806]: avdtp_unref(0x48c4b8): freeing session and removing from list
Can an embeded development board emulate a headphone using BlueZ at the
moment?
Thanks in advance!
Peter
--
[-- Attachment #1.2: Type: text/html, Size: 19765 bytes --]
[-- Attachment #2: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next reply other threads:[~2008-02-29 9:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-29 9:49 黄理洪 [this message]
2008-03-01 2:12 ` [Bluez-users] Can an embeded development board emulate a headphone? 黄理洪
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=b12debba0802290149r2d772241i407d79d3c2a568cd@mail.gmail.com \
--to=peterlihong@gmail.com \
--cc=Bluez-users@lists.sourceforge.net \
/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