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