From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: Date: Fri, 29 Feb 2008 17:49:02 +0800 From: "=?GB2312?B?u8bA7brp?=" To: Bluez-users@lists.sourceforge.net MIME-Version: 1.0 Subject: [Bluez-users] Can an embeded development board emulate a headphone? Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0441114356==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============0441114356== Content-Type: multipart/alternative; boundary="----=_Part_3995_32259407.1204278542190" ------=_Part_3995_32259407.1204278542190 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 -- ------=_Part_3995_32259407.1204278542190 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi All:
     Im using ALSA 1.0.15 and bluez 3.2= 7 and linux 2.6.22. They are running on two embeded development b= oards, one board acting as a computer and the other as a headphone.     When i tried to use 'aplay' to connect th= e headphone board from my computer board, i got the following error:
 
# aplay -D bluetooth /home/lhhuang/BlueZ/dadi.wav   &nb= sp;            =             &nb= sp;            =             &nb= sp; 
# audio[806]: Accepted new client connection on unix socket (= fd=3D8)           &n= bsp;            = ;            &n= bsp;        
audio[806]: Audio API: received BT_GETCAPABILITIES_REQ   &nb= sp;            =             &nb= sp;            =             &nb= sp;   
audio[806]: Got path /org/bluez/hci0 for adapter = with address 00:18:E4:0A:E8:B2       &nb= sp;            =              audio[806]: /org/bluez/hci0 GetRemoteName(): Not available   = ;            &n= bsp;            = ;            &n= bsp;            = ;
audio[806]: Audio service discovery completed with success  = ;            &n= bsp;            = ;            &n= bsp;            = ; 
audio[806]: Found Audio Sink        = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;
audio[806]: Found AV Target       =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =   
audio[806]: Found AV Remote        =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =  
audio[806]: Selecting default device    &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;       
audio[806]: avdtp_ref(0x48c4b8): ref=3D2      = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;    
Passkey request for device 00:18:E4:0A:E8:= BE            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;    
audio[806]: AVDTP: connected signaling channel to 00:18:E4:0A:E8:BE &n= bsp;            = ;            &n= bsp;            = ;     
audio[806]: AVCTP: connected to 00:18:E= 4:0A:E8:BE           = ;            &n= bsp;            = ;            &n= bsp;            = ; 
audio[806]: Can't open input device: No such file or directory (2) = ;            &n= bsp;            = ;            &n= bsp;      
audio[806]: AVRCP: failed to i= nit uinput for 00:18:E4:0A:E8:BE
audio[806]: session_cb
audio[806]: D= ISCOVER request succeeded
audio[806]: seid 1 type 0 media 0 in use 0
audio[806]: session_cb
aud= io[806]: GET_CAPABILITIES request succeeded
audio[806]: seid 1 type 0 me= dia 0
audio[806]: Audio API: sending BT_GETCAPABILITIES_RSP
Playing W= AVE '/home/lhhuang/BlueZ/dadi.wav' : Signed 16 bit Little Endian, R= ate 44100 Hz, Stereo
audio[806]: Audio API: received BT_SETCONFIGURATION_REQ
audio[806]: conf= ig a2dp - device =3D 00:18:E4:0A:E8:BE access_mode =3D 2
audio[806]: cod= ec sbc - frequency =3D 2 channel_mode =3D 1 allocation =3D 1 subbands =3D 1= blocks =3D 1 bitpool =3D 53
audio[806]: a2dp_source_config: selected SEP 0x486318
audio[806]: avdtp_= ref(0x48c4b8): ref=3D3
audio[806]: setup_ref(0x48bfd0): ref=3D1
audio[806]: No matching ACP an= d INT SEPs found
audio[806]: setup_unref(0x48bfd0): ref=3D0
audio[806]: setup_free(0x48bf= d0)
audio[806]: avdtp_unref(0x48c4b8): ref=3D2
audio[806]: config fai= led
audio[806]: Audio API: sending BT_SETCONFIGURATION_RSP
AL= SA lib pcm_bluetooth.c:708:(bluetooth_a2dp_hw_params) BT_SETCONFIGURATION f= ailed : Input/output error(5)
aplay: set_params:962: Unable to install hw params:
  &nb= sp;            =             &nb= sp;            =             &nb= sp;       
ACCESS:  RW_INTERLEA= VED            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =  
FORMAT:  S16_LE         &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;            SUBFORMAT:  STD         =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =              SAMPLE_BITS: 16          =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =            
FRAM= E_BITS: 32           = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;           
CHANNELS: 2          &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp; 
RATE: 44100   
PERIOD_TIME: (46439 46440= )            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;          
PERIOD_SIZE: 2048         &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;         
PERIOD_BYTES: = 8192            = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;      
PERIODS: 3           = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;  
BUFFER_TIME: (139319 139320)    &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;   
BUFFER_SIZE: 6144         &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;         
BUFFER_BYTES: = 24576           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;     
TICK_TIME: [0 0]          = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;          
audio[806= ]: Unix client disconnected (fd=3D8)      &nb= sp;            =             &nb= sp;            =             &nb= sp;           
audio[806]: avdtp_unref(0x48c4b8): ref=3D1     &nb= sp;            =             &nb= sp;            =             &nb= sp;            =    
audio[806]: AVCTP session 0x4880b8 got disconnected&= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;         
audio[806]: session_cb         = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;     
audio[806]: Disconnected from 00:18:E4:= 0A:E8:BE           &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  
audio[806]: avdtp_unref(0x48c4b8): ref=3D0     &nb= sp;            =             &nb= sp;            =             &nb= sp;            =    
audio[806]: avdtp_unref(0x48c4b8): freeing session a= nd removing from list
Can an embeded development board emulate a headphone using BlueZ at th= e moment?
Thanks in advance!
 
Peter
--
 
------=_Part_3995_32259407.1204278542190-- --===============0441114356== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --===============0441114356== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============0441114356==--