Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

383 Commits   1 Branch   1 Tag
Index: 1.2.8/Makefile
===================================================================
--- 1.2.8/Makefile	(nonexistent)
+++ 1.2.8/Makefile	(revision 5)
@@ -0,0 +1,279 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/m/alsa/utils
+
+REQUIRES           = app/procps/3.3.17
+REQUIRES          += app/pciutils/3.7.0
+REQUIRES          += app/dialog/1.3-20210621
+REQUIRES          += libs/ncurses/6.3
+REQUIRES          += libs/fftw/3.3.10
+REQUIRES          += media/alsa-lib/1.2.8
+REQUIRES          += media/libsamplerate/0.1.9
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.2.8
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/m/alsa/utils/alsa-utils-$(version).tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/alsa-utils-$(version)
+src_dir_name       = alsa-utils-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+conf_dir           = $(CURDIR)/etc
+panda5_conf_dir    = $(CURDIR)/panda5-conf
+
+
+####### Targets
+
+PKG_GROUP = media
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+ALSA_UTILS_PKG_NAME                = alsa-utils
+ALSA_UTILS_PKG_VERSION             = 1.2.8
+ALSA_UTILS_PKG_ARCH                = $(PKGARCH)
+ALSA_UTILS_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+ALSA_UTILS_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+ALSA_UTILS_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+ALSA_UTILS_PKG_SHORT_DESCRIPTION   = Advanced Linux Sound Architecture utilities
+ALSA_UTILS_PKG_URL                 = $(BUG_URL)
+ALSA_UTILS_PKG_LICENSE             = GPLv2
+ALSA_UTILS_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(ALSA_UTILS_PKG_NAME)-pkg-description
+ALSA_UTILS_PKG_DESCRIPTION_FILE_IN = $(ALSA_UTILS_PKG_NAME)-pkg-description.in
+ALSA_UTILS_PKG_INSTALL_SCRIPT      = $(ALSA_UTILS_PKG_NAME)-pkg-install.sh
+
+ALSA_UTILS_PKG   = $(CURDIR)/$(TARGET_BUILD_DIR)/$(ALSA_UTILS_PKG_NAME)-package
+
+pkg_basename     = $(ALSA_UTILS_PKG_NAME)-$(ALSA_UTILS_PKG_VERSION)-$(ALSA_UTILS_PKG_ARCH)-$(ALSA_UTILS_PKG_DISTRO_NAME)-$(ALSA_UTILS_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot  = DESTDIR=$(ALSA_UTILS_PKG)
+
+
+extra_configure_switches  = --libdir=/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --with-udev-rules-dir=/lib/udev/rules.d
+extra_configure_switches += --disable-alsaconf
+
+
+CFLAGS += -Wno-maybe-uninitialized -Wno-stringop-overread -Wno-format
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(ALSA_UTILS_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@mkdir -p $(ALSA_UTILS_PKG)/etc/rc.d
+	# ======= Install /etc/rc.d/rc.alsa script =======
+ifneq ($(filter $(HARDWARE),$(HARDWARE_OMAP5UEVM)),)
+	@cp $(conf_dir)/rc.d/rc.alsa-$(HARDWARE) $(ALSA_UTILS_PKG)/etc/rc.d/rc.alsa.new
+else
+	@cp $(conf_dir)/rc.d/rc.alsa $(ALSA_UTILS_PKG)/etc/rc.d/rc.alsa.new
+endif
+	@chmod 0755 $(ALSA_UTILS_PKG)/etc/rc.d/rc.alsa.new
+	@cp $(conf_dir)/rc.d/rc.alsa-oss $(ALSA_UTILS_PKG)/etc/rc.d/rc.alsa-oss.new
+	@chmod 0644 $(ALSA_UTILS_PKG)/etc/rc.d/rc.alsa-oss.new
+ifneq ($(filter $(HARDWARE),$(HARDWARE_OMAP5UEVM)),)
+	# ======= Install Panda5 asound.conf =======
+	@mkdir -p $(ALSA_UTILS_PKG)/etc
+	@cp $(panda5_conf_dir)/asound-hdmi.conf $(ALSA_UTILS_PKG)/etc/asound-hdmi.conf
+	@chmod 0644 $(ALSA_UTILS_PKG)/etc/asound-hdmi.conf
+	@cp $(panda5_conf_dir)/asound-panda5.conf $(ALSA_UTILS_PKG)/etc/asound-panda5.conf
+	@chmod 0644 $(ALSA_UTILS_PKG)/etc/asound-panda5.conf
+	@( cd $(ALSA_UTILS_PKG)/etc ; \
+	   ln -sf asound-panda5.conf asound.conf ; \
+	 )
+endif
+	# ======= Install Documentation =======
+	@if [ -d $(ALSA_UTILS_PKG)/usr/share/man ]; then \
+	  ( cd $(ALSA_UTILS_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(ALSA_UTILS_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(ALSA_UTILS_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(ALSA_UTILS_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a ABOUT-NLS COPYING INSTALL README* TODO \
+	         seq/aconnect/README.aconnect \
+	         seq/aseqnet/README.aseqnet \
+	         $(ALSA_UTILS_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(ALSA_UTILS_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(ALSA_UTILS_PKG)/lib$(LIBSUFFIX)/alsa-topology ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libalsatplg_module_nhlt.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(ALSA_UTILS_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/lib$(LIBSUFFIX)/alsa-topology ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   libalsatplg_module_nhlt.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libalsatplg_module_nhlt.la ; \
+	   sed -i "s,'/lib,'$(TARGET_DEST_DIR)/lib,g" libalsatplg_module_nhlt.la ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(ALSA_UTILS_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(ALSA_UTILS_PKG) ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(ALSA_UTILS_PKG)/lib$(LIBSUFFIX)/alsa-topology ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(ALSA_UTILS_PKG_DESCRIPTION_FILE): $(ALSA_UTILS_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(ALSA_UTILS_PKG_DESCRIPTION_FILE) $(ALSA_UTILS_PKG_INSTALL_SCRIPT)
+	@cp $(ALSA_UTILS_PKG_DESCRIPTION_FILE) $(ALSA_UTILS_PKG)/.DESCRIPTION
+	@cp $(ALSA_UTILS_PKG_INSTALL_SCRIPT) $(ALSA_UTILS_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(ALSA_UTILS_PKG)/.REQUIRES
+	@echo "pkgname=$(ALSA_UTILS_PKG_NAME)"                            >  $(ALSA_UTILS_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(ALSA_UTILS_PKG_VERSION)"                          >> $(ALSA_UTILS_PKG)/.PKGINFO ; \
+	 echo "arch=$(ALSA_UTILS_PKG_ARCH)"                               >> $(ALSA_UTILS_PKG)/.PKGINFO ; \
+	 echo "distroname=$(ALSA_UTILS_PKG_DISTRO_NAME)"                  >> $(ALSA_UTILS_PKG)/.PKGINFO ; \
+	 echo "distrover=$(ALSA_UTILS_PKG_DISTRO_VERSION)"                >> $(ALSA_UTILS_PKG)/.PKGINFO ; \
+	 echo "group=$(ALSA_UTILS_PKG_GROUP)"                             >> $(ALSA_UTILS_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(ALSA_UTILS_PKG_SHORT_DESCRIPTION)\"" >> $(ALSA_UTILS_PKG)/.PKGINFO ; \
+	 echo "url=$(ALSA_UTILS_PKG_URL)"                                 >> $(ALSA_UTILS_PKG)/.PKGINFO ; \
+	 echo "license=$(ALSA_UTILS_PKG_LICENSE)"                         >> $(ALSA_UTILS_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(ALSA_UTILS_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 1.2.8/PATCHES
===================================================================
--- 1.2.8/PATCHES	(nonexistent)
+++ 1.2.8/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/m/alsa/utils/patches/alsa-utils-1.2.8-alsaconf.patch -p0
Index: 1.2.8/alsa-utils-pkg-description.in
===================================================================
--- 1.2.8/alsa-utils-pkg-description.in	(nonexistent)
+++ 1.2.8/alsa-utils-pkg-description.in	(revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+          |-----handy-ruler------------------------------------------------------|
+alsa-utils: alsa-utils @VERSION@ (Advanced Linux Sound Architecture utilities)
+alsa-utils:
+alsa-utils: The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
+alsa-utils: functionality to the Linux operating system. This package contains
+alsa-utils: command line audio utilities for use with ALSA:
+alsa-utils:    alsactl        (manage soundcard settings)
+alsa-utils:    arecord/aplay  (capture and play audio)
+alsa-utils:    amixer         (adjust mixer settings from the command line)
+alsa-utils:    alsamixer      (an ncurses-based console mixer)
+alsa-utils: For more information, see http://alsa-project.org
+alsa-utils:
Index: 1.2.8/alsa-utils-pkg-install.sh
===================================================================
--- 1.2.8/alsa-utils-pkg-install.sh	(nonexistent)
+++ 1.2.8/alsa-utils-pkg-install.sh	(revision 5)
@@ -0,0 +1,78 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if [ -r etc/asound.state -a ! -r var/lib/alsa/asound.state -a ! -L etc/asound.state ]; then
+    mv etc/asound.state var/lib/alsa
+  fi
+  # Better a dangling symlink than for nobody to know where this went:
+  rm -f etc/asound.state
+  ( cd etc && ln -sf ../var/lib/alsa/asound.state . )
+
+  # Duplicate permissions from any existing rc scripts:
+  if [ -e etc/rc.d/rc.alsa ]; then
+    if [ -x etc/rc.d/rc.alsa ]; then
+      chmod 755 etc/rc.d/rc.alsa.new
+    else
+      chmod 644 etc/rc.d/rc.alsa.new
+    fi
+  fi
+  if [ -e etc/rc.d/rc.alsa-oss ]; then
+    if [ -x etc/rc.d/rc.alsa-oss ]; then
+      chmod 755 etc/rc.d/rc.alsa-oss.new
+    else
+      chmod 644 etc/rc.d/rc.alsa-oss.new
+    fi
+  fi
+
+  # Move the scripts into place:
+  mv etc/rc.d/rc.alsa.new etc/rc.d/rc.alsa
+  mv etc/rc.d/rc.alsa-oss.new etc/rc.d/rc.alsa-oss
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: 1.2.8/alsa-utils-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 1.2.8/etc/rc.d/rc.alsa
===================================================================
--- 1.2.8/etc/rc.d/rc.alsa	(nonexistent)
+++ 1.2.8/etc/rc.d/rc.alsa	(revision 5)
@@ -0,0 +1,87 @@
+#!/bin/sh
+# Load the mixer settings and OSS compatibility (if enabled) for ALSA.
+# (the Advanced Linux Sound Architecture)
+
+# A function to load the ALSA mixer settings:
+load_alsa_mixer() {
+  if [ -r /var/lib/alsa/asound.state ]; then
+    echo "Loading ALSA mixer settings:  /usr/sbin/alsactl restore"
+    /usr/sbin/alsactl restore
+  else
+    # It's possible a user might not want to set a default sound state.
+    # In that case, do this:  touch /var/lib/alsa/no.asound.state
+    if [ ! -r /var/lib/alsa/no.asound.state ]; then
+      echo "Setting default ALSA mixer settings."
+      # set default mixer volumes for ALSA
+      # Taken from the alsaconf script.
+      amixer -s -q <<EOF
+set Master 75% unmute
+set Master -12dB
+set 'Master Mono' 75% unmute
+set 'Master Mono' -12dB
+set Front 75% unmute
+set Front -12dB
+set PCM 90% unmute
+set PCM 0dB
+mixer Synth 90% unmute
+mixer Synth 0dB
+mixer CD 90% unmute
+mixer CD 0dB
+# mute mic
+set Mic 0% mute
+# ESS 1969 chipset has 2 PCM channels
+set PCM,1 90% unmute
+set PCM,1 0dB
+# Trident/YMFPCI/emu10k1
+set Wave 100% unmute
+set Music 100% unmute
+set AC97 100% unmute
+# CS4237B chipset:
+set 'Master Digital' 75% unmute
+# Envy24 chips with analog outs
+set DAC 90% unmute
+set DAC -12dB
+set DAC,0 90% unmute
+set DAC,0 -12dB
+set DAC,1 90% unmute
+set DAC,1 -12dB
+# some notebooks use headphone instead of master
+set Headphone 75% unmute
+set Headphone -12dB
+set Playback 100% unmute
+# turn off digital switches
+set "SB Live Analog/Digital Output Jack" off
+set "Audigy Analog/Digital Output Jack" off
+EOF
+      echo "Storing default ALSA mixer settings:  /usr/sbin/alsactl store"
+      /usr/sbin/alsactl store
+    fi
+  fi
+}
+
+# If udev or something else has loaded the ALSA modules, then
+# simply load the mixer settings and make sure the OSS compat
+# modules are loaded (if enabled):
+if [ -d /proc/asound ]; then
+  if [ -x /etc/rc.d/rc.alsa-oss ]; then
+    sh /etc/rc.d/rc.alsa-oss
+  fi
+  load_alsa_mixer
+else
+  # If there are ALSA modules defined in /etc/modprobe.d/*, but
+  # ALSA is not yet loaded, then load the modules now:
+  DRIVERS=$(modprobe -c | grep -E "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | tr -s "[[:blank:]]" " " | cut -d " " -f 3)
+  if [ ! "$DRIVERS" = "" ]; then
+    echo "Loading ALSA kernel modules."
+    for module in $DRIVERS; do
+      modprobe $module
+    done
+  fi
+  # If ALSA is now up, then load the mixer settings and OSS modules (if enabled):
+  if [ -d /proc/asound ]; then
+    if [ -x /etc/rc.d/rc.alsa-oss ]; then
+      sh /etc/rc.d/rc.alsa-oss
+    fi
+    load_alsa_mixer
+  fi
+fi
Index: 1.2.8/etc/rc.d/rc.alsa-omap5uevm
===================================================================
--- 1.2.8/etc/rc.d/rc.alsa-omap5uevm	(nonexistent)
+++ 1.2.8/etc/rc.d/rc.alsa-omap5uevm	(revision 5)
@@ -0,0 +1,107 @@
+#!/bin/sh
+# Load the mixer settings and OSS compatibility (if enabled) for ALSA.
+# (the Advanced Linux Sound Architecture)
+
+# A function to load the ALSA mixer settings:
+load_alsa_mixer() {
+  if [ -r /var/lib/alsa/asound.state ]; then
+    echo "Loading ALSA mixer settings:  /usr/sbin/alsactl restore"
+    /usr/sbin/alsactl restore
+
+# OMAP5 uEVM (Panda5) board:
+    amixer -c 1 -s -q <<EOF
+cset name='Headset Left Playback' 1
+cset name='Headset Right Playback' 1
+cset name='Headset Playback Volume' 12
+cset name='DL1 PDM Switch' 1
+cset name='Sidetone Mixer Playback' 1
+cset name='SDT DL Volume' 120
+cset name='DL1 Mixer Multimedia' 1
+cset name='DL1 Media Playback Volume' 110
+sset 'Analog Left',0 'Aux/FM Left'
+sset 'Analog Right',0 'Aux/FM Right'
+sset 'Aux FM',0 7
+sset 'AUDUL Media',0 149
+sset 'Capture',0 4
+sset MUX_UL00,0 AMic0
+sset MUX_UL01,0 AMic1
+sset 'AMIC UL',0 120
+EOF
+  else
+    # It's possible a user might not want to set a default sound state.
+    # In that case, do this:  touch /var/lib/alsa/no.asound.state
+    if [ ! -r /var/lib/alsa/no.asound.state ]; then
+      echo "Setting default ALSA mixer settings."
+      # set default mixer volumes for ALSA
+      # Taken from the alsaconf script.
+      amixer -s -q <<EOF
+set Master 75% unmute
+set Master -12dB
+set 'Master Mono' 75% unmute
+set 'Master Mono' -12dB
+set Front 75% unmute
+set Front -12dB
+set PCM 90% unmute
+set PCM 0dB
+mixer Synth 90% unmute
+mixer Synth 0dB
+mixer CD 90% unmute
+mixer CD 0dB
+# mute mic
+set Mic 0% mute
+# ESS 1969 chipset has 2 PCM channels
+set PCM,1 90% unmute
+set PCM,1 0dB
+# Trident/YMFPCI/emu10k1
+set Wave 100% unmute
+set Music 100% unmute
+set AC97 100% unmute
+# CS4237B chipset:
+set 'Master Digital' 75% unmute
+# Envy24 chips with analog outs
+set DAC 90% unmute
+set DAC -12dB
+set DAC,0 90% unmute
+set DAC,0 -12dB
+set DAC,1 90% unmute
+set DAC,1 -12dB
+# some notebooks use headphone instead of master
+set Headphone 75% unmute
+set Headphone -12dB
+set Playback 100% unmute
+# turn off digital switches
+set "SB Live Analog/Digital Output Jack" off
+set "Audigy Analog/Digital Output Jack" off
+EOF
+      echo "Storing default ALSA mixer settings:  /usr/sbin/alsactl store"
+      /usr/sbin/alsactl store
+    fi
+  fi
+}
+
+# If udev or something else has loaded the ALSA modules, then
+# simply load the mixer settings and make sure the OSS compat
+# modules are loaded (if enabled):
+if [ -d /proc/asound ]; then
+  if [ -x /etc/rc.d/rc.alsa-oss ]; then
+    sh /etc/rc.d/rc.alsa-oss
+  fi
+  load_alsa_mixer
+else
+  # If there are ALSA modules defined in /etc/modprobe.d/*, but
+  # ALSA is not yet loaded, then load the modules now:
+  DRIVERS=$(modprobe -c | grep -E "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | tr -s "[[:blank:]]" " " | cut -d " " -f 3)
+  if [ ! "$DRIVERS" = "" ]; then
+    echo "Loading ALSA kernel modules."
+    for module in $DRIVERS; do
+      modprobe $module
+    done
+  fi
+  # If ALSA is now up, then load the mixer settings and OSS modules (if enabled):
+  if [ -d /proc/asound ]; then
+    if [ -x /etc/rc.d/rc.alsa-oss ]; then
+      sh /etc/rc.d/rc.alsa-oss
+    fi
+    load_alsa_mixer
+  fi
+fi
Index: 1.2.8/etc/rc.d/rc.alsa-oss
===================================================================
--- 1.2.8/etc/rc.d/rc.alsa-oss	(nonexistent)
+++ 1.2.8/etc/rc.d/rc.alsa-oss	(revision 5)
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Load the ALSA OSS kernel modules to support OSS applications.
+# To use this, set this script as executable (chmod 755 rc.alsa-oss)
+# and it will be run from the main rc.alsa script.  Unless you know
+# that something requires OSS support, it is better to leave this
+# script disabled.  Some applications will try OSS first even though
+# they also support ALSA, and will block other applications from
+# using audio I/O.
+#
+# Many programs that use OSS can be run using the aoss wrapper and
+# will then use ALSA in a non-blocking way (and will not require
+# loading these kernel modules).  Consider trying that before enabling
+# these modules.  (See "man aoss")
+
+if modprobe -c | tr _ - | grep -wq snd-pcm-oss ; then
+  if ! cat /proc/modules | tr _ - | grep -wq snd-pcm-oss ; then
+    echo "Loading OSS compatibility modules for ALSA."
+    # Use -b to enable blacklisting these modules:
+    modprobe -q -b snd-pcm-oss
+    modprobe -q -b snd-seq-oss
+    modprobe -q -b snd-mixer-oss
+  fi
+fi
Index: 1.2.8/etc/rc.d
===================================================================
--- 1.2.8/etc/rc.d	(nonexistent)
+++ 1.2.8/etc/rc.d	(revision 5)

Property changes on: 1.2.8/etc/rc.d
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 1.2.8/etc
===================================================================
--- 1.2.8/etc	(nonexistent)
+++ 1.2.8/etc	(revision 5)

Property changes on: 1.2.8/etc
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 1.2.8/panda5-conf/asound-hdmi.conf
===================================================================
--- 1.2.8/panda5-conf/asound-hdmi.conf	(nonexistent)
+++ 1.2.8/panda5-conf/asound-hdmi.conf	(revision 5)
@@ -0,0 +1,11 @@
+
+pcm.!default {
+  type hw
+  card 0
+  device 0
+}
+
+ctl.!default {
+  type hw
+  card 0
+}
Index: 1.2.8/panda5-conf/asound-panda5.conf
===================================================================
--- 1.2.8/panda5-conf/asound-panda5.conf	(nonexistent)
+++ 1.2.8/panda5-conf/asound-panda5.conf	(revision 5)
@@ -0,0 +1,11 @@
+
+pcm.!default {
+  type hw
+  card 1
+  device 0
+}
+
+ctl.!default {
+  type hw
+  card 1
+}
Index: 1.2.8/panda5-conf
===================================================================
--- 1.2.8/panda5-conf	(nonexistent)
+++ 1.2.8/panda5-conf	(revision 5)

Property changes on: 1.2.8/panda5-conf
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 1.2.8
===================================================================
--- 1.2.8	(nonexistent)
+++ 1.2.8	(revision 5)

Property changes on: 1.2.8
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 5)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~