From owner-freebsd-bluetooth@freebsd.org Wed Oct 7 19:33:15 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 584B49D1B46 for ; Wed, 7 Oct 2015 19:33:15 +0000 (UTC) (envelope-from che@bein.link) Received: from mail.bein.link (bein.link [37.252.124.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 21F893DB for ; Wed, 7 Oct 2015 19:33:14 +0000 (UTC) (envelope-from che@bein.link) Received: from thinkpad.localnet (home.bein.link [172.16.32.6]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bein.link (Postfix) with ESMTPSA id 592621AF1A0 for ; Wed, 7 Oct 2015 19:33:04 +0000 (UTC) From: Maxim V Filimonov To: "freebsd-bluetooth@freebsd.org" Reply-To: che@bein.link Subject: A2DP on FreeBSD, part N Date: Wed, 07 Oct 2015 22:33:03 +0300 Message-ID: <2669086.KH7QR9g2Oe@thinkpad> User-Agent: KMail/4.14.3 (FreeBSD/10.2-RELEASE; KDE/4.14.3; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 19:33:15 -0000 Hi everyone, I found this link: https://mail-index.netbsd.org/netbsd-users/2015/09/14/msg016883.html As you might notice from the URL, it's about A2DP on NetBSD. I heard that A2DP requires mostly userland tools, so might anyone look at it and see if it will actually work with FreeBSD? I didn't manage to compile that, and I don't have the skills to make it work, unfortunately. Is it even portable to FreeBSD? -- wbr, Maxim Filimonov From owner-freebsd-bluetooth@freebsd.org Thu Oct 8 16:53:53 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E3B59D164B for ; Thu, 8 Oct 2015 16:53:53 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 22C36AA1 for ; Thu, 8 Oct 2015 16:53:53 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by wicfx3 with SMTP id fx3so33952136wic.0 for ; Thu, 08 Oct 2015 09:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1u5Vw7HZjHA8YxOoBUWpIOYjlknBti/0OABPATkQKLI=; b=teFYm0HxpEoU41rn22G/shxmDu+8YmiXzgpc+NSSjQp6gz5Yp45yiDapWszkzv1dxK lOSnwdviR4DzmkVtTwsqv7ot/9MpGtDr0P6ksHMc1HCWm0y6shxPNiC2WEXovH1KoA8g T1uqAKk2k/vq6Qwt80izP6HpRbAPVvwANaldL3KWatRhqRS6+VizhAZDByTujt/WxoYL +DafzLGGGRfUkvyWJ1NNmQmypkmXhz56GPbtcKYjHl+rRe1hNqVsivEYxfU/bsFV+0X9 DRRlLq2k1cpKAhUQogPwRlAkog+m3Iptm+mv9ctiy+t+dptDWLm5EUS17Pk1+CBw2LkE Z4bQ== MIME-Version: 1.0 X-Received: by 10.194.184.136 with SMTP id eu8mr10146562wjc.151.1444323231424; Thu, 08 Oct 2015 09:53:51 -0700 (PDT) Received: by 10.28.146.132 with HTTP; Thu, 8 Oct 2015 09:53:51 -0700 (PDT) In-Reply-To: <2669086.KH7QR9g2Oe@thinkpad> References: <2669086.KH7QR9g2Oe@thinkpad> Date: Thu, 8 Oct 2015 09:53:51 -0700 Message-ID: Subject: Re: A2DP on FreeBSD, part N From: Maksim Yevmenkin To: Maxim V FIlimonov Cc: "freebsd-bluetooth@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2015 16:53:53 -0000 On Wed, Oct 7, 2015 at 12:33 PM, Maxim V Filimonov wrote: > Hi everyone, > > I found this link: https://mail-index.netbsd.org/netbsd-users/2015/09/14/msg016883.html > > As you might notice from the URL, it's about A2DP on NetBSD. I heard that A2DP > requires mostly userland tools, so might anyone look at it and see if it will > actually work with FreeBSD? I didn't manage to compile that, and I don't have > the skills to make it work, unfortunately. Is it even portable to FreeBSD? bluetooth uers pace part should be portable (relatively straight forward). the audio drivers part will require a bit more work, but still doable. thanks max From owner-freebsd-bluetooth@freebsd.org Fri Oct 9 09:15:50 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 464299D107F for ; Fri, 9 Oct 2015 09:15:50 +0000 (UTC) (envelope-from plunky@ogmig.net) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:c:538::198]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0884EDF7 for ; Fri, 9 Oct 2015 09:15:49 +0000 (UTC) (envelope-from plunky@ogmig.net) Received: from mfilter15-d.gandi.net (mfilter15-d.gandi.net [217.70.178.143]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id D8A144F197C; Fri, 9 Oct 2015 11:15:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter15-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter15-d.gandi.net (mfilter15-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id f6nah8I4UKnz; Fri, 9 Oct 2015 11:15:45 +0200 (CEST) X-Originating-IP: 31.68.197.147 Received: from galant.ogmig.net (unknown [31.68.197.147]) (Authenticated sender: plunky@ogmig.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id E6FB1FB8DC; Fri, 9 Oct 2015 11:15:43 +0200 (CEST) Received: by galant.ogmig.net (Postfix, from userid 1000) id D9D6526026A; Fri, 9 Oct 2015 10:15:39 +0100 (BST) Date: Fri, 9 Oct 2015 10:15:39 +0100 (BST) From: Iain Hibbert To: Maksim Yevmenkin , Maxim V FIlimonov cc: "freebsd-bluetooth@freebsd.org" Subject: Re: A2DP on FreeBSD, part N In-Reply-To: Message-ID: References: <2669086.KH7QR9g2Oe@thinkpad> User-Agent: Alpine 2.11 (NEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2015 09:15:50 -0000 On Thu, 8 Oct 2015, Maksim Yevmenkin wrote: > On Wed, Oct 7, 2015 at 12:33 PM, Maxim V Filimonov wrote: > > Hi everyone, > > > > I found this link: https://mail-index.netbsd.org/netbsd-users/2015/09/14/msg016883.html > > > > As you might notice from the URL, it's about A2DP on NetBSD. I heard that A2DP > > requires mostly userland tools, so might anyone look at it and see if it will > > actually work with FreeBSD? I didn't manage to compile that, and I don't have > > the skills to make it work, unfortunately. Is it even portable to FreeBSD? > > bluetooth uers pace part should be portable (relatively straight > forward). the audio drivers part will require a bit more work, but > still doable. There is still a lot of work to do on this program in any case.. it can currently play an audio file to an A2DP receiver (I have a pair of headphones, and a standalone speaker). It does this by piping stdin (or reading from a .WAV file) into an RFCOMM connection so that should basically work on FreeBSD anyway There is no real support for audio devices at this time, but I have encouraged Nathaniel to implement a method where it could use the backend of a pad(4) device so that the system would see an audio device and you could use your normal audio player. I think this will need extensions to pad(4) in any case as that is too simple. iain From owner-freebsd-bluetooth@freebsd.org Fri Oct 9 09:21:21 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D90539D14CA for ; Fri, 9 Oct 2015 09:21:21 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.0x20.net", Issuer "mail.0x20.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A94B6F; Fri, 9 Oct 2015 09:21:21 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 3B96C6E005D; Fri, 9 Oct 2015 11:21:18 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id t999LHMl028057; Fri, 9 Oct 2015 11:21:17 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id t999LGVE027653; Fri, 9 Oct 2015 11:21:16 +0200 (CEST) (envelope-from lars) Date: Fri, 9 Oct 2015 11:21:16 +0200 From: Lars Engels To: Iain Hibbert Cc: Maksim Yevmenkin , Maxim V FIlimonov , "freebsd-bluetooth@freebsd.org" ;, hselasky@freebsd.org Subject: Re: A2DP on FreeBSD, part N Message-ID: <20151009092116.GA43663@e-new.0x20.net> References: <2669086.KH7QR9g2Oe@thinkpad> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+RqgOR8y65RRYhVY" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p23 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2015 09:21:22 -0000 --+RqgOR8y65RRYhVY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 09, 2015 at 10:15:39AM +0100, Iain Hibbert wrote: > On Thu, 8 Oct 2015, Maksim Yevmenkin wrote: >=20 > > On Wed, Oct 7, 2015 at 12:33 PM, Maxim V Filimonov wrot= e: > > > Hi everyone, > > > > > > I found this link: https://mail-index.netbsd.org/netbsd-users/2015/09= /14/msg016883.html > > > > > > As you might notice from the URL, it's about A2DP on NetBSD. I heard = that A2DP > > > requires mostly userland tools, so might anyone look at it and see if= it will > > > actually work with FreeBSD? I didn't manage to compile that, and I do= n't have > > > the skills to make it work, unfortunately. Is it even portable to Fre= eBSD? > >=20 > > bluetooth uers pace part should be portable (relatively straight > > forward). the audio drivers part will require a bit more work, but > > still doable. >=20 > There is still a lot of work to do on this program in any case.. it can= =20 > currently play an audio file to an A2DP receiver (I have a pair of=20 > headphones, and a standalone speaker). It does this by piping stdin (or= =20 > reading from a .WAV file) into an RFCOMM connection so that should=20 > basically work on FreeBSD anyway >=20 > There is no real support for audio devices at this time, but I have=20 > encouraged Nathaniel to implement a method where it could use the backend= =20 > of a pad(4) device so that the system would see an audio device and you= =20 > could use your normal audio player. I think this will need extensions to= =20 > pad(4) in any case as that is too simple. >=20 Maybe Hans-Petter (CC'ed) is also interested, as he authored or ported or uaudio driver. --+RqgOR8y65RRYhVY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJWF4cMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tqdkH/R16O22N7/4ephhAMqUEnNxI lGhMEuaAVpexlR7o42WgMx+g62KjlnbcuWxkH52oaF3sBsF+shTKQj+SqflDW3RU yDxeYWXTnaJhT0VcEgd8dkWOpgK2jlZNV6aU74uMt1ptNwPdqxZeGEBj84SqhDdu 1L3XWU5A5cFu1hmo7mUMvLd87D1akw02WSaRVFv+vnxhYYa5p85XcwL2uXWI9MAY DXrsI2SDG2qAMo5XNuc8xtuA94sssrVLhfjznHG1vDYahiX3fFaVAE1c/57DTdI3 mt77zfYv58NseDDnYmm8PmkuO3mkFzgxFDvqkMcsbxnp6boYajEIg3ZmpZHflJw= =03eL -----END PGP SIGNATURE----- --+RqgOR8y65RRYhVY-- From owner-freebsd-bluetooth@freebsd.org Fri Oct 9 09:55:34 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 636B59D0EDC for ; Fri, 9 Oct 2015 09:55:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A0B56D1 for ; Fri, 9 Oct 2015 09:55:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 3AE531FE022; Fri, 9 Oct 2015 11:55:31 +0200 (CEST) Subject: Re: A2DP on FreeBSD, part N To: Lars Engels , Iain Hibbert References: <2669086.KH7QR9g2Oe@thinkpad> <20151009092116.GA43663@e-new.0x20.net> Cc: Maksim Yevmenkin , Maxim V FIlimonov , "freebsd-bluetooth@freebsd.org" From: Hans Petter Selasky Message-ID: <56178F78.3030703@selasky.org> Date: Fri, 9 Oct 2015 11:57:12 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20151009092116.GA43663@e-new.0x20.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2015 09:55:34 -0000 On 10/09/15 11:21, Lars Engels wrote: > On Fri, Oct 09, 2015 at 10:15:39AM +0100, Iain Hibbert wrote: >> On Thu, 8 Oct 2015, Maksim Yevmenkin wrote: >> >>> On Wed, Oct 7, 2015 at 12:33 PM, Maxim V Filimonov wrote: >>>> Hi everyone, >>>> >>>> I found this link: https://mail-index.netbsd.org/netbsd-users/2015/09/14/msg016883.html >>>> >>>> As you might notice from the URL, it's about A2DP on NetBSD. I heard that A2DP >>>> requires mostly userland tools, so might anyone look at it and see if it will >>>> actually work with FreeBSD? I didn't manage to compile that, and I don't have >>>> the skills to make it work, unfortunately. Is it even portable to FreeBSD? >>> >>> bluetooth uers pace part should be portable (relatively straight >>> forward). the audio drivers part will require a bit more work, but >>> still doable. >> >> There is still a lot of work to do on this program in any case.. it can >> currently play an audio file to an A2DP receiver (I have a pair of >> headphones, and a standalone speaker). It does this by piping stdin (or >> reading from a .WAV file) into an RFCOMM connection so that should >> basically work on FreeBSD anyway >> >> There is no real support for audio devices at this time, but I have >> encouraged Nathaniel to implement a method where it could use the backend >> of a pad(4) device so that the system would see an audio device and you >> could use your normal audio player. I think this will need extensions to >> pad(4) in any case as that is too simple. >> > > Maybe Hans-Petter (CC'ed) is also interested, as he authored or ported > or uaudio driver. > Hi, I recommend using libcuse for this. I.E. make a daemon in userspace which handle everything. See: svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b Search for "virtual_oss*" --HPS