From owner-freebsd-bluetooth@FreeBSD.ORG Tue Mar 14 19:01:11 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BBC616A41F for ; Tue, 14 Mar 2006 19:01:11 +0000 (UTC) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 234BA43D45 for ; Tue, 14 Mar 2006 19:01:11 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id k2EJ16M17084; Tue, 14 Mar 2006 14:01:07 -0500 Message-ID: <441712F0.6060403@savvis.net> Date: Tue, 14 Mar 2006 11:01:04 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: kuba@lbl.pl References: <20060314181140.GB6870@lbl.pl> <44170EDA.5000406@savvis.net> <20060314184659.GC6870@lbl.pl> In-Reply-To: <20060314184659.GC6870@lbl.pl> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: headset/sco support in freebsd X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2006 19:01:11 -0000 KubaTyszko wrote: > On Tue, Mar 14, 2006 at 10:43:38AM -0800, Maksim Yevmenkin wrote: > >>KubaTyszko wrote: >> >>>hi all. >>> >>>anyone knows what is current status of using bluetooth headset as >>>input/output for audio ? >> >>not supported yet >> >>>i was able to pair my month-old -current, create SCO channel, establish >>>rfcomm connection, i even see AT commands that headset sends to me when >>>i press button. >> >>well, yes. but you cant get any audio. this is because ng_ubt(4) does >>not support usb isoc. transfers (assuming that you are using bluetooth >>usb dongle). i have modified ng_ubt(4) and added support for isoc. >>transfers, but i have not committed it yet. there is also a bluetooth >>sco sockets layer to simplify programming api. >> >>>but i did not see anywhere something like bluetooth(sdo)-alsa support so >>>that i could use it as "soundcard" >>>is this possible in bsd ? >> >>not at the moment >> > > thanks for reply. > > so, if you commit your patch, what will be left to do with audio ? > a sound driver maybe ? it depends on what are you trying to do. after these changes are committed it will be possible to get a bluetooth sco socket and send/receive sco data packets. if you plan to transfer audio then payload of the sco packet should be encoded (a-law, u-law or cvsd) audio samples (8, 13 or 16 bits). how do you obtain and encode these samples or what are going to do with them once you have recevied them is completely up to you. you may write a special sound card driver or you may do something else. thanks, max