[OpenWrt-Devel] [PATCH] shellfm: libao support

2011-10-03 Thread christoph . gysin
From: Christoph Gysin christoph.gy...@gmail.com

- remove madplay dependency
- enable libao support (we already depend on it)
- disable external command in default configuration
- add symlink for .libao
   To configure libao, the library looks for a .libao configuration file in
   the users home directory.
   To allow configuring libao for shell-fm running as a daemon, we symlink
   /etc/libao.conf to the temporary HOME for shell-fm.

Signed-off-by: Christoph Gysin christoph.gy...@gmail.com
---
 sound/shell-fm/Makefile|4 ++--
 sound/shell-fm/files/shell-fm.init |1 +
 sound/shell-fm/files/shell-fm.rc   |2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/sound/shell-fm/Makefile b/sound/shell-fm/Makefile
index 8fea1a1..fea1127 100644
--- a/sound/shell-fm/Makefile
+++ b/sound/shell-fm/Makefile
@@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/shell-fm
   SECTION:=sound
   CATEGORY:=Sound
-  DEPENDS:=+libao +madplay +libpthread
+  DEPENDS:=+libao +libpthread
   TITLE:=Console Based Last.FM Radio Player
   URL:=http://nex.scrapping.cc
 endef
@@ -43,7 +43,7 @@ endef
 define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
-   CFLAGS=$(TARGET_CFLAGS) -I./include/ $(TARGET_CPPFLAGS) \
+   CFLAGS=$(TARGET_CFLAGS) -I./include/ -DLIBAO 
$(TARGET_CPPFLAGS) \
DESTDIR=$(PKG_INSTALL_DIR) \
LDFLAGS=$(TARGET_LDFLAGS) -lmad -lao -lpthread \
all install
diff --git a/sound/shell-fm/files/shell-fm.init 
b/sound/shell-fm/files/shell-fm.init
index 0e68d34..f0403b6 100644
--- a/sound/shell-fm/files/shell-fm.init
+++ b/sound/shell-fm/files/shell-fm.init
@@ -5,6 +5,7 @@ START=99
 start() {
[ -d /tmp/.shell-fm ] || mkdir /tmp/.shell-fm
[ -L /tmp/.shell-fm/shell-fm.rc ] || ln -s /etc/shell-fm.rc 
/tmp/.shell-fm/shell-fm.rc
+   [ -L /tmp/.libao ] || ln -s /etc/libao.conf /tmp/.libao
HOME=/tmp shell-fm -d
 }
 
diff --git a/sound/shell-fm/files/shell-fm.rc b/sound/shell-fm/files/shell-fm.rc
index 43ec7d2..b3f6a2d 100644
--- a/sound/shell-fm/files/shell-fm.rc
+++ b/sound/shell-fm/files/shell-fm.rc
@@ -6,4 +6,4 @@ t-color = 1;32  # light green track titles
 a-color = 0;32  # dark green track artist names
 s-color = 1;37  # white station names
 bind = 0.0.0.0
-extern = madplay -q -
+#extern = madplay -q -
-- 
1.7.6.4

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kmod-sound-i8x0 missing dependencies

2010-09-29 Thread Christoph Gysin
kmod-sound-i8x0 fails to include the ac97 modules and misspells the
module name in AutoLoad.

Please see attached patch and consider applying.

Chris
-- 
echo mailto: NOSPAM !#$.'*'|sed 's. ..'|tr * !#:2 o...@fr33z3
Index: package/kernel/modules/sound.mk
===
--- package/kernel/modules/sound.mk	(revision 23122)
+++ package/kernel/modules/sound.mk	(working copy)
@@ -102,8 +102,10 @@
 define KernelPackage/sound-i8x0
   TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
   KCONFIG:=CONFIG_SND_INTEL8X0
-  FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.ko
-  AUTOLOAD:=$(call AutoLoad,35,snd-i8x0)
+  FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.ko \
+	$(LINUX_DIR)/sound/ac97_bus.ko \
+	$(LINUX_DIR)/sound/pci/ac97/snd-ac97-codec.ko 
+  AUTOLOAD:=$(call AutoLoad,35,ac97_bus snd-ac97-codec snd-intel8x0)
   $(call AddDepends/sound)
 endef
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel