All of lore.kernel.org
 help / color / mirror / Atom feed
* regular vs android versions, avdtptest
@ 2016-12-12 18:35 Kalervo Kontola
  2016-12-12 21:12 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Kalervo Kontola @ 2016-12-12 18:35 UTC (permalink / raw)
  To: linux-bluetooth

Hi all,

avdtptest was created via:
https://01.org/jira/browse/BA-113
Thus avdtptest.c is in android directory.

Is there any recommended way to use avdtptest with regular version?
I mean that if using the one created in android directory then it
depends on bluez/android specific files and those are not exactly the
same files that are in profiles/audio directory, e.g., avdtp.c and
avdtp.h.

Also, is there any list showing main differences between those android
and regular versions (especially from audio point of view)?
and which of those deltas are android specific ones?
(I noticed that there are some plans (good!) to unify code between
android and regular versions.)

Thanks!
Kalervo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: regular vs android versions, avdtptest
  2016-12-12 18:35 regular vs android versions, avdtptest Kalervo Kontola
@ 2016-12-12 21:12 ` Szymon Janc
  0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2016-12-12 21:12 UTC (permalink / raw)
  To: Kalervo Kontola; +Cc: linux-bluetooth

Hi Kalervo,

On 12 December 2016 at 19:35, Kalervo Kontola <kontolabt@gmail.com> wrote:
>
> Hi all,
>
> avdtptest was created via:
> https://01.org/jira/browse/BA-113
> Thus avdtptest.c is in android directory.
>
> Is there any recommended way to use avdtptest with regular version?
> I mean that if using the one created in android directory then it
> depends on bluez/android specific files and those are not exactly the
> same files that are in profiles/audio directory, e.g., avdtp.c and
> avdtp.h.

You can build that by passing --enable-android to configure. avdtptest won't be
installable (by make install) but you should be able to run it from source tree.
But note that you still be using avdtp from android build.

> Also, is there any list showing main differences between those android
> and regular versions (especially from audio point of view)?
> and which of those deltas are android specific ones?

android/avdtp.c is based on code from profile/audio but it was redesigned to be
reusable as a library. It doesn't have any bluetoothd nor L2CAP dependencies
and it is instantiated on (any) connected file descriptor. This lib is
quite well tested
(including unit tests based on BT test specification in unit/ folder,
those are using
local sockets pair) but it is not the same code as in profiles/audio.

> (I noticed that there are some plans (good!) to unify code between
> android and regular versions.)

There are but as always we are lacking time. Ideally android/avdtp.c should be
moved to profile/audio/ and use there too. So that it is shared
between linux and
android daemons.

>
> Thanks!
> Kalervo
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html




-- 
pozdrawiam
Szymon K. Janc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-12 21:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-12 18:35 regular vs android versions, avdtptest Kalervo Kontola
2016-12-12 21:12 ` Szymon Janc

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.