mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lucas Sinn <lucas.sinn@wolfvision.net>
To: ptxdist@pengutronix.de
Cc: Lucas Sinn <lucas.sinn@wolfvision.net>
Subject: [ptxdist] [PATCH] pipewire: add bluez support
Date: Mon, 5 Aug 2024 11:26:45 +0200	[thread overview]
Message-ID: <20240805092645.2851657-1-lucas.sinn@wolfvision.net> (raw)
In-Reply-To: <016db821-bc16-4106-ab26-ac766a339fab.e0c24246-04d4-485f-8d5f-1cc8fbefd095.50e4b2f3-bf9f-4320-9d9c-bde1c07a5454@emailsignatures365.codetwo.com>

This makes basic bluetooth support selectable in
the menuconfig with the simple SBC and
faststream codec support.

Signed-off-by: Lucas Sinn <lucas.sinn@wolfvision.net>
---
 rules/pipewire.in   | 6 ++++++
 rules/pipewire.make | 5 ++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/rules/pipewire.in b/rules/pipewire.in
index 9d1b920b4..12d3687b4 100644
--- a/rules/pipewire.in
+++ b/rules/pipewire.in
@@ -18,6 +18,8 @@ menuconfig PIPEWIRE
 	select NCURSES_WIDE_CHAR	if PIPEWIRE_PW_TOP
 	select OPENSSL			if PIPEWIRE_RAOP
 	select SYSTEMD			if PIPEWIRE_SYSTEMD
+	select BLUEZ			if PIPEWIRE_BLUETOOTH
+	select SBC			if PIPEWIRE_BLUETOOTH
 	select UDEV
 	select UDEV_LIBUDEV
 	prompt "pipewire                      "
@@ -31,6 +33,10 @@ menuconfig PIPEWIRE
 
 if PIPEWIRE
 
+config PIPEWIRE_BLUETOOTH
+	bool
+	prompt "enable bluetooth options"
+
 config PIPEWIRE_GSTREAMER
 	bool
 	prompt "build and install gstreamer plugins"
diff --git a/rules/pipewire.make b/rules/pipewire.make
index 02da82f97..4595fee22 100644
--- a/rules/pipewire.make
+++ b/rules/pipewire.make
@@ -42,7 +42,7 @@ PIPEWIRE_CONF_OPT	:= \
 	-Daudiotestsrc=enabled \
 	-Davahi=disabled \
 	-Davb=disabled \
-	-Dbluez5=disabled \
+	-Dbluez5=$(call ptx/endis,PTXCONF_PIPEWIRE_BLUETOOTH)d \
 	-Dbluez5-backend-hfp-native=disabled \
 	-Dbluez5-backend-hsp-native=disabled \
 	-Dbluez5-backend-hsphfpd=disabled \
@@ -173,6 +173,9 @@ PIPEWIRE_SPA_MODULES := \
 	audiomixer/libspa-audiomixer \
 	audiotestsrc/libspa-audiotestsrc \
 	control/libspa-control \
+	$(call ptx/ifdef,PTXCONF_PIPEWIRE_BLUETOOTH,bluez5/libspa-bluez5) \
+	$(call ptx/ifdef,PTXCONF_PIPEWIRE_BLUETOOTH,bluez5/libspa-codec-bluez5-faststream) \
+	$(call ptx/ifdef,PTXCONF_PIPEWIRE_BLUETOOTH,bluez5/libspa-codec-bluez5-sbc) \
 	$(call ptx/ifdef,PTXCONF_PIPEWIRE_LIBCAMERA,libcamera/libspa-libcamera) \
 	support/libspa-dbus \
 	$(call ptx/ifdef,PTXCONF_PIPEWIRE_SYSTEMD,support/libspa-journal) \
-- 
2.37.2


Lucas Sinn 
R&D Engineer

Wolfvision GmbH 
Oberes Ried 14 | 6833 Klaus | Austria 
Tel: +43 5523 52250 <tel:+43552352250> | Mail: lucas.sinn@wolfvision.net <mailto:lucas.sinn@wolfvision.net>

Website: wolfvision.com <www.wolfvision.com> 
Firmenbuch / Commercial Register: FN283521v Feldkirch/Austria




       reply	other threads:[~2024-08-06 12:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <016db821-bc16-4106-ab26-ac766a339fab.e0c24246-04d4-485f-8d5f-1cc8fbefd095.50e4b2f3-bf9f-4320-9d9c-bde1c07a5454@emailsignatures365.codetwo.com>
2024-08-05  9:26 ` Lucas Sinn [this message]
2024-09-12 12:11   ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240805092645.2851657-1-lucas.sinn@wolfvision.net \
    --to=lucas.sinn@wolfvision.net \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox