Skip to content

Commit b64dd9a

Browse files
committed
Add more useful packages and sound-usb-caiaq module for old Native Instruments USB soundcards
1 parent 90d4be5 commit b64dd9a

3 files changed

Lines changed: 101 additions & 1 deletion

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# append to package/kernel/linux/modules/usb.mk
2+
3+
define KernelPackage/sound-usb-caiaq
4+
TITLE:=Support for USB audio devices caiaq
5+
KCONFIG:= \
6+
CONFIG_SND_USB_CAIAQ \
7+
CONFIG_SND_USB_CAIAQ_INPUT=n
8+
$(call AddDepends/usb)
9+
$(call AddDepends/sound)
10+
FILES:= \
11+
$(LINUX_DIR)/sound/usb/caiaq/snd-usb-caiaq.ko
12+
AUTOLOAD:=$(call AutoProbe,snd-usb-caiaq)
13+
endef
14+
15+
define KernelPackage/sound-usb-caiaq/description
16+
Kernel support for USB audio devices caiaq
17+
endef
18+
19+
$(eval $(call KernelPackage,sound-usb-caiaq))
20+
21+

seed/ao.seed

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CONFIG_EXPERIMENTAL=y
1313
CONFIG_GCC_USE_VERSION_9=y
1414
CONFIG_GCC_VERSION="9.3.0"
1515
CONFIG_GCC_VERSION_9=y
16+
CONFIG_IFSTAT_SNMP=y
1617
CONFIG_IPERF_ENABLE_MULTICAST=y
1718
CONFIG_KERNEL_ARM_PMU=y
1819
CONFIG_KERNEL_BUILD_DOMAIN="zzz"
@@ -53,26 +54,60 @@ CONFIG_OPENVPN_openssl_ENABLE_PORT_SHARE=y
5354
CONFIG_OPENVPN_openssl_ENABLE_SMALL=y
5455
CONFIG_PACKAGE_acme=y
5556
CONFIG_PACKAGE_acme-dnsapi=y
57+
CONFIG_PACKAGE_adblock=y
58+
CONFIG_PACKAGE_alsa-lib=y
59+
CONFIG_PACKAGE_alsa-ucm-conf=y
60+
CONFIG_PACKAGE_alsa-utils=y
5661
CONFIG_PACKAGE_arptables=y
5762
CONFIG_PACKAGE_avahi-dbus-daemon=y
63+
CONFIG_PACKAGE_banip=y
64+
CONFIG_PACKAGE_blkid=y
65+
CONFIG_PACKAGE_bmon=y
5866
CONFIG_PACKAGE_bridge=y
5967
CONFIG_PACKAGE_cgi-io=y
68+
CONFIG_PACKAGE_collectd=y
69+
CONFIG_PACKAGE_collectd-mod-cpu=y
70+
CONFIG_PACKAGE_collectd-mod-interface=y
71+
CONFIG_PACKAGE_collectd-mod-iwinfo=y
72+
CONFIG_PACKAGE_collectd-mod-load=y
73+
CONFIG_PACKAGE_collectd-mod-memory=y
74+
CONFIG_PACKAGE_collectd-mod-network=y
75+
CONFIG_PACKAGE_collectd-mod-rrdtool=y
76+
CONFIG_PACKAGE_confuse=y
6077
CONFIG_PACKAGE_conntrack=y
6178
CONFIG_PACKAGE_conntrackd=y
6279
CONFIG_PACKAGE_coremark=y
80+
CONFIG_PACKAGE_coreutils=y
81+
CONFIG_PACKAGE_coreutils-sort=y
6382
CONFIG_PACKAGE_curl=y
6483
CONFIG_PACKAGE_dbus=y
6584
CONFIG_PACKAGE_dbus-utils=y
6685
CONFIG_PACKAGE_ddns-scripts=y
6786
CONFIG_PACKAGE_ddns-scripts-services=y
87+
CONFIG_PACKAGE_diffutils=y
88+
# CONFIG_PACKAGE_dnsmasq is not set
89+
CONFIG_PACKAGE_dnsmasq-full=y
90+
CONFIG_PACKAGE_dnsmasq_full_auth=y
91+
CONFIG_PACKAGE_dnsmasq_full_broken_rtc=y
92+
CONFIG_PACKAGE_dnsmasq_full_conntrack=y
93+
CONFIG_PACKAGE_dnsmasq_full_dhcp=y
94+
CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y
95+
CONFIG_PACKAGE_dnsmasq_full_dnssec=y
96+
CONFIG_PACKAGE_dnsmasq_full_ipset=y
97+
CONFIG_PACKAGE_dnsmasq_full_noid=y
98+
CONFIG_PACKAGE_dnsmasq_full_tftp=y
6899
CONFIG_PACKAGE_ds-lite=y
69100
CONFIG_PACKAGE_ebtables=y
70101
CONFIG_PACKAGE_ebtables-utils=y
102+
CONFIG_PACKAGE_etherwake=y
71103
CONFIG_PACKAGE_f2fs-tools=y
72104
CONFIG_PACKAGE_f2fsck=y
73105
CONFIG_PACKAGE_halog=y
74106
CONFIG_PACKAGE_haproxy=y
75107
CONFIG_PACKAGE_i2c-tools=y
108+
CONFIG_PACKAGE_ifstat=y
109+
CONFIG_PACKAGE_iftop=y
110+
CONFIG_PACKAGE_igmpproxy=y
76111
CONFIG_PACKAGE_ip-full=y
77112
CONFIG_PACKAGE_ip-tiny=y
78113
CONFIG_PACKAGE_ip6tables-extra=y
@@ -217,10 +252,13 @@ CONFIG_PACKAGE_kmod-random-core=y
217252
CONFIG_PACKAGE_kmod-sched-cake=y
218253
CONFIG_PACKAGE_kmod-sched-connmark=y
219254
CONFIG_PACKAGE_kmod-sched-core=y
255+
CONFIG_PACKAGE_kmod-sound-core=y
256+
CONFIG_PACKAGE_kmod-sound-usb-caiaq=y
220257
CONFIG_PACKAGE_kmod-tpm=y
221258
CONFIG_PACKAGE_kmod-tun=y
222259
CONFIG_PACKAGE_kmod-udptunnel4=y
223260
CONFIG_PACKAGE_kmod-udptunnel6=y
261+
CONFIG_PACKAGE_kmod-usb-audio=y
224262
CONFIG_PACKAGE_kmod-usb-dwc2=y
225263
CONFIG_PACKAGE_kmod-usb-dwc3=y
226264
CONFIG_PACKAGE_kmod-usb-ehci=y
@@ -238,6 +276,7 @@ CONFIG_PACKAGE_libdaemon=y
238276
CONFIG_PACKAGE_libdbus=y
239277
CONFIG_PACKAGE_libelf=y
240278
CONFIG_PACKAGE_libexpat=y
279+
CONFIG_PACKAGE_libgmp=y
241280
CONFIG_PACKAGE_libi2c=y
242281
CONFIG_PACKAGE_libipset=y
243282
CONFIG_PACKAGE_libiwinfo=y
@@ -253,31 +292,53 @@ CONFIG_PACKAGE_libnetfilter-conntrack=y
253292
CONFIG_PACKAGE_libnetfilter-cthelper=y
254293
CONFIG_PACKAGE_libnetfilter-cttimeout=y
255294
CONFIG_PACKAGE_libnetfilter-queue=y
295+
CONFIG_PACKAGE_libnetsnmp=y
296+
CONFIG_PACKAGE_libnettle=y
256297
CONFIG_PACKAGE_libnfnetlink=y
257298
CONFIG_PACKAGE_libnftnl=y
299+
CONFIG_PACKAGE_libnl-core=y
300+
CONFIG_PACKAGE_libnl-route=y
258301
CONFIG_PACKAGE_libopenssl=y
259302
CONFIG_PACKAGE_libopenssl-conf=y
260303
CONFIG_PACKAGE_libopenssl-devcrypto=y
261304
CONFIG_PACKAGE_libpcap=y
305+
CONFIG_PACKAGE_libpci=y
262306
CONFIG_PACKAGE_libpcre=y
263307
CONFIG_PACKAGE_libpopt=y
264308
CONFIG_PACKAGE_libreadline=y
309+
CONFIG_PACKAGE_librrd1=y
265310
CONFIG_PACKAGE_libsoxr=y
266311
CONFIG_PACKAGE_libubus-lua=y
267312
CONFIG_PACKAGE_lua=y
268313
CONFIG_PACKAGE_luci=y
314+
CONFIG_PACKAGE_luci-app-acl=y
269315
CONFIG_PACKAGE_luci-app-acme=y
316+
CONFIG_PACKAGE_luci-app-adblock=y
317+
CONFIG_PACKAGE_luci-app-banip=y
318+
CONFIG_PACKAGE_luci-app-commands=y
270319
CONFIG_PACKAGE_luci-app-firewall=y
320+
CONFIG_PACKAGE_luci-app-ntpc=y
271321
CONFIG_PACKAGE_luci-app-openvpn=y
272322
CONFIG_PACKAGE_luci-app-opkg=y
323+
CONFIG_PACKAGE_luci-app-qos=y
324+
CONFIG_PACKAGE_luci-app-sqm=y
325+
CONFIG_PACKAGE_luci-app-statistics=y
273326
CONFIG_PACKAGE_luci-app-tinyproxy=y
274327
CONFIG_PACKAGE_luci-base=y
275328
CONFIG_PACKAGE_luci-compat=y
329+
CONFIG_PACKAGE_luci-i18n-acl-en=y
276330
CONFIG_PACKAGE_luci-i18n-acme-en=y
331+
CONFIG_PACKAGE_luci-i18n-adblock-en=y
332+
CONFIG_PACKAGE_luci-i18n-banip-en=y
277333
CONFIG_PACKAGE_luci-i18n-base-en=y
334+
CONFIG_PACKAGE_luci-i18n-commands-en=y
278335
CONFIG_PACKAGE_luci-i18n-firewall-en=y
336+
CONFIG_PACKAGE_luci-i18n-ntpc-en=y
279337
CONFIG_PACKAGE_luci-i18n-openvpn-en=y
280338
CONFIG_PACKAGE_luci-i18n-opkg-en=y
339+
CONFIG_PACKAGE_luci-i18n-qos-en=y
340+
CONFIG_PACKAGE_luci-i18n-sqm-en=y
341+
CONFIG_PACKAGE_luci-i18n-statistics-en=y
281342
CONFIG_PACKAGE_luci-i18n-tinyproxy-en=y
282343
CONFIG_PACKAGE_luci-lib-base=y
283344
CONFIG_PACKAGE_luci-lib-ip=y
@@ -292,12 +353,15 @@ CONFIG_PACKAGE_luci-mod-status=y
292353
CONFIG_PACKAGE_luci-mod-system=y
293354
CONFIG_PACKAGE_luci-proto-ipv6=y
294355
CONFIG_PACKAGE_luci-proto-ppp=y
356+
CONFIG_PACKAGE_luci-proto-wireguard=y
295357
CONFIG_PACKAGE_luci-theme-bootstrap=y
296358
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
297359
CONFIG_PACKAGE_mt7601u-firmware=y
298360
CONFIG_PACKAGE_nano=y
299361
CONFIG_PACKAGE_netcat=y
362+
CONFIG_PACKAGE_netperf=y
300363
CONFIG_PACKAGE_nlbwmon=y
364+
CONFIG_PACKAGE_nstat=y
301365
CONFIG_PACKAGE_ntpclient=y
302366
CONFIG_PACKAGE_openssl-util=y
303367
CONFIG_PACKAGE_openvpn-openssl=y
@@ -306,12 +370,16 @@ CONFIG_PACKAGE_picocom=y
306370
CONFIG_PACKAGE_qos-scripts=y
307371
CONFIG_PACKAGE_r8169-firmware=y
308372
CONFIG_PACKAGE_resolveip=y
373+
CONFIG_PACKAGE_rng-tools=y
309374
CONFIG_PACKAGE_rpcd=y
310375
CONFIG_PACKAGE_rpcd-mod-file=y
311376
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
312377
CONFIG_PACKAGE_rpcd-mod-luci=y
313378
CONFIG_PACKAGE_rpcd-mod-rrdns=y
379+
CONFIG_PACKAGE_rrdtool1=y
380+
CONFIG_PACKAGE_shairport-sync-openssl=y
314381
CONFIG_PACKAGE_socat=y
382+
CONFIG_PACKAGE_speedtest-netperf=y
315383
CONFIG_PACKAGE_sqm-scripts=y
316384
CONFIG_PACKAGE_sqm-scripts-extra=y
317385
CONFIG_PACKAGE_tc-mod-iptables=y

steps/r2s/03_patch_openwrt_2102.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,18 @@ if ! grep -q "0002-kernel-crypto.addon" target/linux/rockchip/armv8/config-5.4;
107107
else
108108
echo "Already added 0002-kernel-crypto.addon to target/linux/rockchip/armv8/config-5.4"
109109
fi
110-
110+
111+
# add caiaq usb sound module for shairport with old soundcard
112+
ADDON_PATH='snd-usb-caiaq.makefileaddon'
113+
ADDON_DEST='package/kernel/linux/modules/usb.mk'
114+
if ! grep -q " --- $ADDON_PATH" $ADDON_DEST; then
115+
echo "Adding $ADDON_PATH to $ADDON_DEST"
116+
echo "# --- $ADDON_PATH" >> $ADDON_DEST
117+
cat $ROOTDIR/patches/$ADDON_PATH >> $ADDON_DEST
118+
else
119+
echo "Already added $ADDON_PATH to $ADDON_DEST"
120+
fi
121+
111122
#cleanup
112123
if [ -e .config ]; then
113124
echo "Cleaning up ..."

0 commit comments

Comments
 (0)