Index: rc.alsa
===================================================================
--- rc.alsa (nonexistent)
+++ 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: rc.alsa-omap5uevm
===================================================================
--- rc.alsa-omap5uevm (nonexistent)
+++ 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: rc.alsa-oss
===================================================================
--- rc.alsa-oss (nonexistent)
+++ 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: .
===================================================================
--- . (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
+*~