public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Can an embeded development board emulate a headphone?
@ 2008-02-29  9:49 黄理洪
  2008-03-01  2:12 ` 黄理洪
  0 siblings, 1 reply; 2+ messages in thread
From: 黄理洪 @ 2008-02-29  9:49 UTC (permalink / raw)
  To: Bluez-users


[-- 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

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

* Re: [Bluez-users] Can an embeded development board emulate a headphone?
  2008-02-29  9:49 [Bluez-users] Can an embeded development board emulate a headphone? 黄理洪
@ 2008-03-01  2:12 ` 黄理洪
  0 siblings, 0 replies; 2+ messages in thread
From: 黄理洪 @ 2008-03-01  2:12 UTC (permalink / raw)
  To: Bluez-users

 Marcel Holtmann talked about emulating a headphone in a article
"Advanced Audio support for the BlueZ stack" in his web
page(http://www.holtmann.org/linux/bluetooth/audio.html):
To proceed further with the headphone emulation there must be a
listening L2CAP service on PSM 25. At the moment there exists no
program for doing this.

But the last modification of the web page is on November 29, 2004.
Does there exist  the program listening L2CAP service on PSM 25 now?

-- 
Peter

-------------------------------------------------------------------------
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/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2008-03-01  2:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-29  9:49 [Bluez-users] Can an embeded development board emulate a headphone? 黄理洪
2008-03-01  2:12 ` 黄理洪

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox