Return-Path: Subject: Re: [Bluez-devel] Comments about the Logitech/HP stereo headphones From: Marcel Holtmann To: bluez-devel@lists.sourceforge.net In-Reply-To: <20050424181947.4a2f1656.henryk@ploetzli.ch> References: <1114345112.10706.64.camel@pegasus> <20050424134746.GA31151@externe.net> <20050424181947.4a2f1656.henryk@ploetzli.ch> Content-Type: text/plain Message-Id: <1114366370.10706.120.camel@pegasus> Mime-Version: 1.0 Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Sun, 24 Apr 2005 20:12:50 +0200 Hi Henryk, > > - for kernel integration, linus &co may not be interested in a > > kernel-side sbc decoder- they will certainly ask for a /dev/ entry > > taking the native format - in that case already encoded sbc. > > and > > > Later on, like rfcomm manages rfcomm0 etc. entries, some a2dp tool > > could bind a2dp peripherals to /dev/a2dpN where SBC audio would be > > expected and streamed to the a2dp peripheral bound there. > > My 0.02EUR: There is a problem here. Mayank turned up a very valid point > in his "a2play code not according to the specifications" posting: Having > the SBC encoding decoupled from the AVDTP negotiation is not a good > thing. One of the primary problems of the current pipe approach (and > expecting applications to stream SBC into a socket/device/whatever is > not different in this regard) is that the format of the SBC stream > (sample rate, channel mode, etc.) will have to depend on the > capabilities of the receiver, but there is no feedback to the encoder > about that. > > Therefore the best implementation would be to put the actual encoding > into the same layer of code that does the negotiation, or at least put > the control over the encoder there. Otherwise you wouldn't have the > simple "open and write something into it" semantics most other devices > have, but would need to have something along the lines of "open the > device, offer it some audio formats, let it do the negotation, read back > the audio format that is to be used, encode the audio stream into that > format". if we do the kernel AVDTP socket interface then it will do something like that. However this not only about A2DP, because in the future we may wanna use it also for VDP. > And also coupling /dev/a2dpN tightly to SBC format would make it even > harder (or impossible) to support other audio formats as A2DP does. Don't worry about /dev/*whatever*, because it will be socket based and not character devices. Regards Marcel ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel