diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2014-10-01 16:31:31 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2014-10-06 14:23:57 +0200 |
commit | 033c46df34c3e0f04597063ecc4d26038e5a35ef (patch) | |
tree | 12e1c4a784338575ed39bdde845d8edbbcb3034a | |
parent | e5ad2d7402be8d55e436be36833956e2373c3712 (diff) |
colibri-imx6: add machine specific config files
-rw-r--r-- | recipes-bsp/alsa-state/alsa-state/colibri-imx6/asound.state | 126 | ||||
-rw-r--r-- | recipes/base-files/base-files/colibri-imx6/fstab | 14 | ||||
-rw-r--r-- | recipes/base-files/base-files/colibri-imx6/profile | 35 |
3 files changed, 175 insertions, 0 deletions
diff --git a/recipes-bsp/alsa-state/alsa-state/colibri-imx6/asound.state b/recipes-bsp/alsa-state/alsa-state/colibri-imx6/asound.state new file mode 100644 index 0000000..e145735 --- /dev/null +++ b/recipes-bsp/alsa-state/alsa-state/colibri-imx6/asound.state @@ -0,0 +1,126 @@ +state.imx6colibrisgtl { + control.1 { + iface MIXER + name 'PCM Playback Volume' + value.0 144 + value.1 144 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 192' + } + } + control.2 { + iface MIXER + name 'Capture Volume' + value.0 12 + value.1 12 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 15' + } + } + control.3 { + iface MIXER + name 'Capture Attenuate Switch (-6dB)' + value 2 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 2' + dbmin -600 + dbmax 600 + dbvalue.0 600 + } + } + control.4 { + iface MIXER + name 'Capture ZC Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.5 { + iface MIXER + name 'Headphone Playback Volume' + value.0 87 + value.1 87 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 127' + dbmin -5150 + dbmax 1200 + dbvalue.0 -800 + dbvalue.1 -800 + } + } + control.6 { + iface MIXER + name 'Headphone Playback ZC Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.7 { + iface MIXER + name 'Mic Volume' + value 3 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 3' + dbmin 0 + dbmax 4000 + dbvalue.0 4000 + } + } + control.8 { + iface MIXER + name 'Headphone Mux' + value DAC + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 DAC + item.1 LINE_IN + } + } + control.9 { + iface MIXER + name 'Capture Mux' + value MIC_IN + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 MIC_IN + item.1 LINE_IN + } + } +} +state.imxhdmisoc { + control.1 { + iface MIXER + name 'IEC958 Playback Default' + value '0400020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access 'read write volatile' + type IEC958 + count 1 + } + } +} diff --git a/recipes/base-files/base-files/colibri-imx6/fstab b/recipes/base-files/base-files/colibri-imx6/fstab new file mode 100644 index 0000000..8c4880f --- /dev/null +++ b/recipes/base-files/base-files/colibri-imx6/fstab @@ -0,0 +1,14 @@ +# stock fstab - you probably want to override this with a machine specific one + +/dev/root / auto defaults 1 1 +proc /proc proc defaults 0 0 +debugfs /sys/kernel/debug debugfs defaults 0 0 +devpts /dev/pts devpts mode=0620,gid=5 0 0 +usbfs /proc/bus/usb usbfs defaults 0 0 +tmpfs /var/volatile tmpfs defaults 0 0 +tmpfs /dev/shm tmpfs mode=0777 0 0 +tmpfs /media/ram tmpfs defaults 0 0 + +# uncomment this if your device has a SD/MMC/Transflash slot +#/dev/mmcblk0p1 /media/card auto defaults,sync,noauto 0 0 + diff --git a/recipes/base-files/base-files/colibri-imx6/profile b/recipes/base-files/base-files/colibri-imx6/profile new file mode 100644 index 0000000..c1ee240 --- /dev/null +++ b/recipes/base-files/base-files/colibri-imx6/profile @@ -0,0 +1,35 @@ +# /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) +# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). + +PATH="/usr/local/bin:/usr/bin:/bin" +EDITOR="/bin/vi" # needed for packages like cron +test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. + +if [ ! -e /etc/localtime ]; then + TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html + # for an explanation of how to set this to your local timezone. + export TZ +fi + +if [ "$HOME" = "/home/root" ]; then + PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin +fi +if [ "$PS1" ]; then +# works for bash and ash (no other shells known to be in use here) + PS1='\u@\h:\w\$ ' +fi + +if [ -d /etc/profile.d ]; then + for i in /etc/profile.d/* ; do + . $i + done + unset i +fi + +test -z "$DISPLAY" && DISPLAY=":0.0" # have the X display defined, unless it is already set, e.g. by a ssh connection +export DISPLAY + +export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM + +umask 022 + |