Skip to contentSkip to conversation

MPD: Add jack output support option

PATCH Superseded Pieter De Gendt 2 participants 3 messages Aug 8, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MPD: Add jack output support option

---
 package/mpd/Config.in |   11 +++++++++++
 package/mpd/mpd.mk    |    5 +++++
 2 files changed, 16 insertions(+)
package/mpd/Config.in +11 -0
index f5f5b34..efe1abd 100644
@@ -52,6 +52,17 @@ config BR2_PACKAGE_MPD_PULSEAUDIO
 comment "pulseaudio support needs a toolchain w/ largefile"
 	depends on !BR2_LARGEFILE
 
+config BR2_PACKAGE_MPD_JACK2
+	bool "jack2"
+	depends on BR2_LARGEFILE # libsndfile
+	depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
+	depends on BR2_USE_MMU # fork()
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
+	select BR2_PACKAGE_JACK2
+	help
+	  Enable jack output support.
+
 config BR2_PACKAGE_MPD_BZIP2
 	bool "bzip2"
 	select BR2_PACKAGE_BZIP2
package/mpd/mpd.mk +5 -0
index e2ee760..4ac5eea 100644
@@ -40,6 +40,11 @@ MPD_DEPENDENCIES += pulseaudio
 MPD_CONF_OPT += --enable-pulse
 endif
 
+ifeq ($(BR2_PACKAGE_MPD_JACK2),y)
+MPD_DEPENDENCIES += jack2
+MPD_CONF_OPT += --enable-jack
+endif
+
 ifeq ($(BR2_PACKAGE_MPD_BZIP2),y)
 MPD_DEPENDENCIES += bzip2
 MPD_CONF_OPT += --enable-bzip2
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 MPD: Add jack output support option

On 08/08/2014 05:14 AM, Pieter De Gendt wrote:

Hi.
A couple of details...

package/mpd/Config.in config BR2_PACKAGE_MPD_PULSEAUDIO · line 65

Quoted 11 lines
package/mpd/Config.in +11 -0
+config BR2_PACKAGE_MPD_JACK2
+	bool "jack2"
+	depends on BR2_LARGEFILE # libsndfile
+	depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
+	depends on BR2_USE_MMU # fork()
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
+	select BR2_PACKAGE_JACK2
+	help
+	  Enable jack output support.
+

The THREADS, MMU and LIBSTDCPP depends are unnecessary since mpd already requires them, so you can drop them like it's already done for all of the other options for mpd.
Also you're missing a comment when LARGEFILE & ATOMIC_INTRINSICS aren't available telling that jack2 isn't available, similar to what's done for pulseaudio for example.
Alpha-sorting the menu entry would be good too.
Otherwise it looks good.
Care to send a v2 patch with these fixes?
Thanks.
Regards.

#2 lore raw

PATCH 1/1 MPD: Add jack output support option

Quoted 20 lines · Gustavo Zacarias

On 08/08/2014 05:14 AM, Pieter De Gendt wrote:

Hi.
A couple of details...

package/mpd/Config.in config BR2_PACKAGE_MPD_PULSEAUDIO · line 65

Quoted 11 lines
package/mpd/Config.in +11 -0
+config BR2_PACKAGE_MPD_JACK2
+     bool "jack2"
+     depends on BR2_LARGEFILE # libsndfile
+     depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib
+     depends on BR2_USE_MMU # fork()
+     depends on BR2_INSTALL_LIBSTDCPP
+     depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
+     select BR2_PACKAGE_JACK2
+     help
+       Enable jack output support.
+

The THREADS, MMU and LIBSTDCPP depends are unnecessary since mpd already requires them, so you can drop them like it's already done for all of the other options for mpd.

Quoted 10 lines

Also you're missing a comment when LARGEFILE & ATOMIC_INTRINSICS aren't available telling that jack2 isn't available, similar to what's done for pulseaudio for example.
Alpha-sorting the menu entry would be good too.
Otherwise it looks good.
Care to send a v2 patch with these fixes?
Thanks.
Regards.

Done, thanks for comments.
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140808/b537bb6d/attachment.html>