summaryrefslogtreecommitdiff
path: root/filesystem
diff options
context:
space:
mode:
Diffstat (limited to 'filesystem')
-rwxr-xr-xfilesystem/etc/inittab2
-rwxr-xr-xfilesystem/etc/profile.d/proxy_setting.sh35
-rw-r--r--filesystem/etc/profile.d/simulator-opengl.sh37
-rwxr-xr-xfilesystem/etc/rc.d/rc.emul71
-rwxr-xr-xfilesystem/etc/rc.d/rc.shutdown9
-rwxr-xr-xfilesystem/etc/rc.d/rc.sysinit54
-rwxr-xr-xfilesystem/etc/rc.d/rc3.d/S01Init-sim4
-rwxr-xr-xfilesystem/etc/rc.d/rc3.d/S30brightness8
-rwxr-xr-xfilesystem/etc/rc.d/rc3.d/S45vconf-menuscreen3
-rwxr-xr-xfilesystem/etc/sensord_setting.sh24
-rwxr-xr-xfilesystem/etc/yagl.sh54
-rw-r--r--filesystem/usr/etc/sound/default.conf56
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_bt0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_bt_gain0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_bt_pre0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_bt_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_headset2
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_headset_gain2
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_headset_gain_pre2
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_headset_pre2
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_headset_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_headset_ringtone_gain0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_receiver0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_receiver_gain0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_receiver_pre0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_receiver_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker2
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker_gain2
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker_gain_pre2
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker_left0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker_left_pre0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker_pre2
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker_right0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker_right_pre0
-rw-r--r--filesystem/usr/etc/sound/default/ap_to_speaker_ringtone_gain0
-rw-r--r--filesystem/usr/etc/sound/default/bt_to_ap0
-rw-r--r--filesystem/usr/etc/sound/default/bt_to_ap_gain0
-rw-r--r--filesystem/usr/etc/sound/default/bt_to_ap_pre0
-rw-r--r--filesystem/usr/etc/sound/default/bt_to_ap_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/bt_to_cp0
-rw-r--r--filesystem/usr/etc/sound/default/bt_to_cp_gain0
-rw-r--r--filesystem/usr/etc/sound/default/bt_to_cp_pre0
-rw-r--r--filesystem/usr/etc/sound/default/bt_to_cp_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/codec_disable_on_suspend0
-rw-r--r--filesystem/usr/etc/sound/default/codec_disable_on_suspend_pre0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_ap0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_ap_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_ap_pre0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_ap_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_bt0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_bt_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_bt_pre0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_bt_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_headset0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_headset_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_headset_pre0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_headset_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_headset_videocall_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_headset_voicecall_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_receiver0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_receiver_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_receiver_pre0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_receiver_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_receiver_videocall_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_receiver_voicecall_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_speaker0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_speaker_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_speaker_pre0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_speaker_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_speaker_videocall_gain0
-rw-r--r--filesystem/usr/etc/sound/default/cp_to_speaker_voicecall_gain0
-rw-r--r--filesystem/usr/etc/sound/default/earmic_to_ap0
-rw-r--r--filesystem/usr/etc/sound/default/earmic_to_ap_gain0
-rw-r--r--filesystem/usr/etc/sound/default/earmic_to_ap_pre0
-rw-r--r--filesystem/usr/etc/sound/default/earmic_to_ap_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/earmic_to_cp0
-rw-r--r--filesystem/usr/etc/sound/default/earmic_to_cp_gain0
-rw-r--r--filesystem/usr/etc/sound/default/earmic_to_cp_pre0
-rw-r--r--filesystem/usr/etc/sound/default/earmic_to_cp_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_ap0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_ap_gain0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_ap_pre0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_ap_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_headset0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_headset_gain0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_headset_pre0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_headset_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_speaker0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_speaker_gain0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_speaker_pre0
-rw-r--r--filesystem/usr/etc/sound/default/fmradio_to_speaker_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/mainmic_to_ap1
-rw-r--r--filesystem/usr/etc/sound/default/mainmic_to_ap_gain1
-rw-r--r--filesystem/usr/etc/sound/default/mainmic_to_ap_gain_pre1
-rw-r--r--filesystem/usr/etc/sound/default/mainmic_to_ap_pre1
-rw-r--r--filesystem/usr/etc/sound/default/mainmic_to_ap_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/mainmic_to_cp0
-rw-r--r--filesystem/usr/etc/sound/default/mainmic_to_cp_gain0
-rw-r--r--filesystem/usr/etc/sound/default/mainmic_to_cp_pre0
-rw-r--r--filesystem/usr/etc/sound/default/mainmic_to_cp_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/mute_playback0
-rw-r--r--filesystem/usr/etc/sound/default/mute_playback_pre0
-rw-r--r--filesystem/usr/etc/sound/default/reset0
-rw-r--r--filesystem/usr/etc/sound/default/reset_capture1
-rw-r--r--filesystem/usr/etc/sound/default/reset_capture_pre1
-rw-r--r--filesystem/usr/etc/sound/default/reset_playback2
-rw-r--r--filesystem/usr/etc/sound/default/reset_playback_pre2
-rw-r--r--filesystem/usr/etc/sound/default/reset_pre0
-rw-r--r--filesystem/usr/etc/sound/default/stereomic_to_ap0
-rw-r--r--filesystem/usr/etc/sound/default/stereomic_to_ap_gain0
-rw-r--r--filesystem/usr/etc/sound/default/stereomic_to_ap_pre0
-rw-r--r--filesystem/usr/etc/sound/default/stereomic_to_ap_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/submic_to_ap0
-rw-r--r--filesystem/usr/etc/sound/default/submic_to_ap_gain0
-rw-r--r--filesystem/usr/etc/sound/default/submic_to_ap_pre0
-rw-r--r--filesystem/usr/etc/sound/default/submic_to_ap_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/submic_to_cp0
-rw-r--r--filesystem/usr/etc/sound/default/submic_to_cp_gain0
-rw-r--r--filesystem/usr/etc/sound/default/submic_to_cp_pre0
-rw-r--r--filesystem/usr/etc/sound/default/submic_to_cp_pre_gain0
-rw-r--r--filesystem/usr/etc/sound/default/unmute_playback0
122 files changed, 338 insertions, 45 deletions
diff --git a/filesystem/etc/inittab b/filesystem/etc/inittab
index efced0c..e8c343d 100755
--- a/filesystem/etc/inittab
+++ b/filesystem/etc/inittab
@@ -6,7 +6,7 @@ id:1:initdefault:
# Console
#ttyS0::respawn:/bin/sh
-con:12345:respawn:/sbin/getty -L 115200 ttySAC2 vt100
+#con:12345:respawn:/sbin/getty -L 115200 ttySAC2 vt100
#::askfirst:/bin/sh
#Logging , move to rc.sysinit
diff --git a/filesystem/etc/profile.d/proxy_setting.sh b/filesystem/etc/profile.d/proxy_setting.sh
new file mode 100755
index 0000000..a017ab1
--- /dev/null
+++ b/filesystem/etc/profile.d/proxy_setting.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+if grep -q "http_proxy=" /proc/cmdline ; then
+ __proxy=`sed 's/^.*http_proxy=\([^, ]*\).*$/\1/g' /proc/cmdline`
+ echo -e "[Export environment variable: http_proxy=${__proxy}]"
+ export "http_proxy=${__proxy}"
+fi
+if grep -q "https_proxy=" /proc/cmdline ; then
+ __proxy=`sed 's/^.*https_proxy=\([^, ]*\).*$/\1/g' /proc/cmdline`
+ echo -e "[Export environment variable: https_proxy=${__proxy}]"
+ export "https_proxy=${__proxy}"
+fi
+if grep -q "ftp_proxy=" /proc/cmdline ; then
+ __proxy=`sed 's/^.*ftp_proxy=\([^, ]*\).*$/\1/g' /proc/cmdline`
+ echo -e "[Export environment variable: ftp_proxy=${__proxy}]"
+ export "ftp_proxy=${__proxy}"
+fi
+if grep -q "socks_proxy=" /proc/cmdline ; then
+ __proxy=`sed 's/^.*socks_proxy=\([^, ]*\).*$/\1/g' /proc/cmdline`
+ echo -e "[Export environment variable: socks_proxy=${__proxy}]"
+ export "socks_proxy=${__proxy}"
+fi
+if grep -q "dns1=" /proc/cmdline ; then
+ __dns1=`sed 's/^.*dns1=\([^, ]*\).*$/\1/g' /proc/cmdline`
+ rm -rf /etc/resolv.conf
+ echo "nameserver ${__dns1}" >> /etc/resolv.conf
+fi
+if grep -q "dns2=" /proc/cmdline ; then
+ __dns2=`sed 's/^.*dns2=\([^, ]*\).*$/\1/g' /proc/cmdline`
+ echo "nameserver ${__dns2}" >> /etc/resolv.conf
+fi
+if grep -q "sdb_port=" /proc/cmdline ; then
+ __sdb_port=`sed 's/^.*sdb_port=\([^, ]*\).*$/\1/g' /proc/cmdline`
+ rm -rf /opt/home/sdb_port.txt
+ echo "${__sdb_port}" >> /opt/home/sdb_port.txt
+fi
diff --git a/filesystem/etc/profile.d/simulator-opengl.sh b/filesystem/etc/profile.d/simulator-opengl.sh
new file mode 100644
index 0000000..406779c
--- /dev/null
+++ b/filesystem/etc/profile.d/simulator-opengl.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+echo -e "[${_G} Opengl-es acceleration module setting. ${C_}]"
+if grep "gles=1" /proc/cmdline ; then
+ echo -e "[${_G} Emulator support gles hw acceleration. ${C_}]"
+ echo -e "[${_G} Change permission of /dev/glmem. ${C_}]"
+ chmod 666 /dev/glmem
+ echo -e "[${_G} Apply to use hw gles library. ${C_}]"
+ ln -s -f /usr/lib/host-gl/libEGL.so.1.0 /usr/lib/libEGL.so
+ ln -s -f /usr/lib/host-gl/libEGL.so.1.0 /usr/lib/libEGL.so.1
+ ln -s -f /usr/lib/host-gl/libGLESv1_CM.so.1.0 /usr/lib/libGLESv1_CM.so
+ ln -s -f /usr/lib/host-gl/libGLESv1_CM.so.1.0 /usr/lib/libGLESv1_CM.so.1
+ ln -s -f /usr/lib/host-gl/libGLESv2.so.1.0 /usr/lib/libGLESv2.so
+ ln -s -f /usr/lib/host-gl/libGLESv2.so.1.0 /usr/lib/libGLESv2.so.1
+ ln -s -f /usr/lib/host-gl/libGL.so.1.2 /usr/lib/libGL.so
+ ln -s -f /usr/lib/host-gl/libGL.so.1.2 /usr/lib/libGL.so.1
+ ln -s -f /usr/lib/host-gl/libGL.so.1.2 /usr/lib/libGL.so.1.0
+ rm /usr/lib/st_GL.so
+ rm /usr/lib/egl_gallium.so
+ rm /usr/lib/libglapi.so*
+else
+ echo -e "[${_G} Emulator does not support gles hw acceleration. ${C_}]"
+ echo -e "[${_G} Apply to use sw mesa gles library. ${C_}]"
+ ln -s -f /usr/lib/mesa-gl/libEGL.so.1.0 /usr/lib/libEGL.so
+ ln -s -f /usr/lib/mesa-gl/libEGL.so.1.0 /usr/lib/libEGL.so.1
+ ln -s -f /usr/lib/mesa-gl/libGLESv1_CM.so.1.1.0 /usr/lib/libGLESv1_CM.so
+ ln -s -f /usr/lib/mesa-gl/libGLESv1_CM.so.1.1.0 /usr/lib/libGLESv1_CM.so.1
+ ln -s -f /usr/lib/mesa-gl/libGLESv2.so.2.0.0 /usr/lib/libGLESv2.so
+ ln -s -f /usr/lib/mesa-gl/libGLESv2.so.2.0.0 /usr/lib/libGLESv2.so.1
+ ln -s -f /usr/lib/mesa-gl/st_GL.so /usr/lib/st_GL.so
+ ln -s -f /usr/lib/mesa-gl/egl_gallium.so /usr/lib/egl_gallium.so
+ ln -s -f /usr/lib/mesa-gl/libglapi.so.0.0.0 /usr/lib/libglapi.so
+ ln -s -f /usr/lib/mesa-gl/libglapi.so.0.0.0 /usr/lib/libglapi.so.0
+ ln -s -f /usr/lib/mesa-gl/libglapi.so.0.0.0 /usr/lib/libglapi.so.0.0.0
+ rm /usr/lib/libGL.so*
+fi
+. /etc/yagl.sh
diff --git a/filesystem/etc/rc.d/rc.emul b/filesystem/etc/rc.d/rc.emul
index e76c6f7..7904e2d 100755
--- a/filesystem/etc/rc.d/rc.emul
+++ b/filesystem/etc/rc.d/rc.emul
@@ -19,38 +19,69 @@ ln -sf /mnt/mmc /sdcard
ln -sf /proc/mounts /etc/mtab
echo -e "[${_G}Setting power manager state value ${C_}]"
-/usr/bin/vconftool set -t int memory/pwrmgr/state 1
+/usr/bin/vconftool set -t int memory/pm/state 1 -f
echo -e "[${_G}Initialize battery level ${C_}]"
-/usr/bin/vconftool set -t int memory/Battery/Level 5
-/usr/bin/vconftool set -t int memory/Battery/Status/Low 4
+#/usr/bin/vconftool set -t int memory/Battery/Level 5 -f
+/usr/bin/vconftool set -t int memory/sysman/battery_status_low 4 -f
-echo -e "[${_G}Mount SD card ${C_}]"
-mount -o umask=000 /dev/mmcblk0 /mnt/mmc
-chmod 777 /opt/storage/sdcard
+#echo -e "[${_G}Mount SD card ${C_}]"
+#mount -o umask=000 /dev/mmcblk0 /mnt/mmc
+#chmod 777 /opt/storage/sdcard
-MMC_MOUNT=`/bin/mount | grep mmc`
-if [ -n "$MMC_MOUNT" ]; then
- echo -e "[${_G}MMC storage detected ${C_}]"
- /usr/bin/vconftool set -t int memory/Device/Mmc 1
- /usr/bin/vconftool set -t int memory/filemanager/Mmc 2
-fi
+#MMC_MOUNT=`/bin/mount | grep mmc`
+#if [ -n "$MMC_MOUNT" ]; then
+# echo -e "[${_G}MMC storage detected ${C_}]"
+# /usr/bin/vconftool set -t memory/sysman/mmc 1 -f
+# /usr/bin/vconftool set -t int memory/filemanager/Mmc 2 -f
+#fi
+
+echo -e "[${_G}Mount host directory${C_}]"
+test -d "/mnt/host" || mkdir "/mnt/host"
+if grep "cifs=" /proc/cmdline ; then
+ cifs=`sed 's/^.*cifs=\([^, ]*\).*$/\1/g' /proc/cmdline`
+ opts=`sed 's/^.*cifs=\([^, ]*\),username=\([^, ]*\),password=\([^, ]*\).*$/username=\2,password=\3/g' /proc/cmdline`
+ cifs=`echo $cifs | tr [a-z] [A-Z]`
+ if mount -t cifs //10.0.2.2/$cifs /mnt/host -o $opts,file_mode=0777,dir_mode=0777; then
+ echo -e "[${_Y}Mount.cifs succeed${C_}]"
+ else
+ echo -e "[${_R}Mount.cifs fail!!!!${C_}]"
+ fi
+fi
+if grep "virtio-9p" /proc/cmdline ; then
+ if mount -t 9p -o trans=virtio fileshare /mnt/host -oversion=9p2000.L -o msize=65536; then
+ echo -e "[${_Y}Mount.9pfs succeed${C_}]"
+ else
+ echo -e "[${_R}Mount.9pfs fail!!!!${C_}]"
+ fi
+fi
+
+if grep -q "enable_cam" /proc/cmdline ; then
+ if grep -q "enable_cam=1" /proc/cmdline ; then
+ echo -e "[${_Y}Webcam is connected. We can use '/dev/video0' for camera.${C_}]"
+ else
+ echo -e "[${_Y}Webcam is not connected! We will remove '/dev/video0'.${C_}]"
+ rm -rf /dev/video0
+ fi
+fi
echo -e "[${_G}to generate modules.dep and map files${C_}]"
depmod -a
-echo -e "[${_G}to change brightness's group${C_}]"
-chgrp system_bklight /sys/class/backlight/emulator/brightness
-chmod g+w /sys/class/backlight/emulator/brightness
+#--move to rc3.d/S30brgihtness
+#echo -e "[${_G}to change brightness's group${C_}]"
+#chgrp system_bklight /sys/class/backlight/emulator/brightness
+#chmod g+w /sys/class/backlight/emulator/brightness
-echo -e "[${_G}to change lcd_power's group${C_}]"
-chown -R root:system_bklight /sys/devices/virtual/lcd/emulator/lcd_power
+#echo -e "[${_G}to change lcd_power's group${C_}]"
+#chown -R root:system_bklight /sys/devices/virtual/lcd/emulator/lcd_power
+#--
echo -e "[${_G}Initialize display setting value${C_}]"
-/usr/bin/vconftool set -t int db/setting/Brightness "24"
-/usr/bin/vconftool set -t int db/MainLCD/Backlight/Normal "600"
+#/usr/bin/vconftool set -t int db/setting/Brightness "24" -f
+/usr/bin/vconftool set -t int db/sysman/lcd_backlight_normal "600" -f
echo -e "[${_G}For menu_screen booting..${C_}]"
-/usr/bin/vconftool set -t int memory/startapps/sequence 1
+/usr/bin/vconftool set -t int memory/startapps/sequence 1 -f
echo -e "[${_G}rc.emul : script end ${C_}]"
diff --git a/filesystem/etc/rc.d/rc.shutdown b/filesystem/etc/rc.d/rc.shutdown
index c4e4c1f..adc4e3a 100755
--- a/filesystem/etc/rc.d/rc.shutdown
+++ b/filesystem/etc/rc.d/rc.shutdown
@@ -20,6 +20,15 @@ echo "Stopping all applications..."
echo "Stopping indicator..."
killall -9 indicator
+value=1
+while [&value != "0"];
+do
+ value='vconftool get memory/boot_animation/finished | awk '{print $4}''
+ sleep 0.5
+done
+sleep 1
+echo "Turn off LCD after finishing boot-animation"
+xset dpms force off
# factory resetting...
# flag set by factory-reset.sh
diff --git a/filesystem/etc/rc.d/rc.sysinit b/filesystem/etc/rc.d/rc.sysinit
index 2acbc75..6b20221 100755
--- a/filesystem/etc/rc.d/rc.sysinit
+++ b/filesystem/etc/rc.d/rc.sysinit
@@ -13,8 +13,16 @@ mount -t tmpfs tmpfs /tmp
#for emulator : /var/run only for supporting dpkg command
mount -t tmpfs tmpfs /var/run
mount -t sysfs none /sys
-#for emulator : comment out
-#mount -t tmpfs tmpfs /dev # remount dev to make it writable
+
+echo -e "[${_G}make emulator /dev partition${C_}]"
+mdev -s
+cp -rf /dev /root/. 2> /dev/null
+mount -t tmpfs runfs /run
+mount -t devtmpfs devtmpfs /dev
+cp -rf /dev/* /root/dev/. 2> /dev/null
+cp -rf /root/dev/* /dev/. 2> /dev/null
+rm -rf /root/dev
+
mkdir -p /dev/pts
mkdir -p /dev/shm
mount -t tmpfs none /dev/shm
@@ -26,13 +34,19 @@ if [ ! -e /dev/snd ]; then
mkdir /dev/snd
fi
-mdev -s
-mknod /dev/ttySAC1 c 204 65 # UART1 device node for GPS (requested by youngae.kang)
-mknod /dev/ttySAC2 c 204 66
+echo -e "[${_G}check codec dev node${C_}]"
+test -c /dev/codec || mknod -m 666 /dev/codec c 240 0
#for emulator : comment out
#mount -t ubifs -o bulk_read,no_chk_data_crc ubi0!dbfs /mnt/db
+#echo -e "[${_G}Initialize display brightness.${C_}]"
+#/usr/bin/vconftool set -t int db/setting/Brightness "24" -f
+#echo 24 > /sys/class/backlight/emulator/brightness
+
+echo -e "[${_G}set env varible -LAUNCHER_ENGINE- for menu-screen${C_}]"
+export LAUNCHER_ENGINE=x11
+
echo -e "[${_G}loading MFC firmware${C_}]"
#for emulator : comment out
# loading firmware
@@ -68,9 +82,13 @@ echo -e "[${_G}mount mmc storage${C_}]"
#/usr/bin/mount_slp.sh -a
mount -a
+#emulator's swapon
+echo -e "[${_G}mount swap /dev/vdb ${C_}]"
+/sbin/swapon /dev/vdb
+
echo -e "[${_G}udev start${C_}]"
UDEVD_MAX_CHILDS=1 /sbin/udevd --daemon
-/sbin/udevadm trigger --subsystem-match=iio
+/sbin/udevadm trigger
echo -e "[${_G}create base directory in /opt, /var${C_}]"
# construct directory hierarchy
@@ -168,20 +186,19 @@ echo -e "[${_G}camera firmware update${C_}]"
#for emulator : comment out
#/usr/bin/camtest -t 1
+if [ -e /opt/etc/.coredump ]; then
+ # enable coredump
+ echo "/opt/usr/share/crash/core/%p_%s_%e.core" > /proc/sys/kernel/core_pattern
+ ulimit -c unlimited
+else
+ echo "core dump disabled"
+ ulimit -c 0
+fi
+
echo -e "[${_G}run profile${C_}]"
# Run profile
. /etc/profile
-if [ -e /opt/etc/.debugmode ]; then
- echo "debug mode enabled"
- # for bluescreen
- export LD_PRELOAD=/usr/lib/libsys-assert.so
- # enable coredump
- echo "/opt/bs/core/core.%p" > /proc/sys/kernel/core_pattern
- ulimit -c unlimited
-else
- echo "debug mode disabled"
-fi
# Check rw mode
DEVEL_UPDATE_MODE=`grep devel_update_boot /proc/cmdline`
if [ -f /opt/etc/.devel_update ] && [ -z "$DEVEL_UPDATE_MODE" ]; then
@@ -228,9 +245,14 @@ else
# Run all rc3 scripts
echo -e "[${_G}run all rc3 scripts${C_}]"
echo "normal boot"
+ # modify script for checking boot up progress...
+ NUMBER_OF_RCS=`ls /etc/rc.d/rc3.d/ | wc -l`
+ count=0;
for i in /etc/rc.d/rc3.d/*; do
echo -e "[${_G}${i} start${C_}]"
$i start
+ count=$((count + 1))
+ echo `expr $count \* 100 / $NUMBER_OF_RCS` > /dev/esm
done
#for i in /etc/rc3.d/S*; do
diff --git a/filesystem/etc/rc.d/rc3.d/S01Init-sim b/filesystem/etc/rc.d/rc3.d/S01Init-sim
index 3f5d72e..4ccf3a0 100755
--- a/filesystem/etc/rc.d/rc3.d/S01Init-sim
+++ b/filesystem/etc/rc.d/rc3.d/S01Init-sim
@@ -11,9 +11,7 @@ export FONTNAME=HelveN_Asia
/etc/sensord_setting.sh
# for emulator : init db
-/usr/bin/ail_initdb
-
-/etc/proxy_setting.sh
+#/usr/bin/ail_initdb
ulimit -c unlimited
diff --git a/filesystem/etc/rc.d/rc3.d/S30brightness b/filesystem/etc/rc.d/rc3.d/S30brightness
index e6897f0..e79876d 100755
--- a/filesystem/etc/rc.d/rc3.d/S30brightness
+++ b/filesystem/etc/rc.d/rc3.d/S30brightness
@@ -1,4 +1,10 @@
# for emulator brightness level setting.
-/usr/bin/vconftool set -t int db/setting/Brightness "24"
+#/usr/bin/vconftool set -t int db/setting/Brightness "24"
+echo -e "[${_G}to change brightness's group${C_}]"
+chgrp system_bklight /sys/class/backlight/emulator/brightness
+chmod g+w /sys/class/backlight/emulator/brightness
+
+echo -e "[${_G}to change lcd_power's group${C_}]"
+chown -R root:system_bklight /sys/devices/virtual/lcd/emulator/lcd_power
diff --git a/filesystem/etc/rc.d/rc3.d/S45vconf-menuscreen b/filesystem/etc/rc.d/rc3.d/S45vconf-menuscreen
new file mode 100755
index 0000000..527b797
--- /dev/null
+++ b/filesystem/etc/rc.d/rc3.d/S45vconf-menuscreen
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo -e "[${_G}set a vconf for menu-screen sw backend${C_}]"
+/usr/bin/vconftool set -t string file/private/org.tizen.menu-screen/engine "x11" -i -u 5000 -f
diff --git a/filesystem/etc/sensord_setting.sh b/filesystem/etc/sensord_setting.sh
index f76f905..ee0b9d5 100755
--- a/filesystem/etc/sensord_setting.sh
+++ b/filesystem/etc/sensord_setting.sh
@@ -7,6 +7,7 @@ CHECK_PROXI="/opt/sensor/proxi"
CHECK_GEO="/opt/sensor/geo"
CHECK_GYRO="/opt/sensor/gyro"
CHECK_NFC="/opt/nfc"
+CHECK_NFC_FILE="/opt/nfc/sdkMsg"
if [ ! -d $CHECK_SENSOR ]; then
mkdir /opt/sensor
@@ -34,12 +35,12 @@ if [ ! -d $CHECK_SENSOR ]; then
touch /opt/sensor/accel/name
echo "accel_sim" > /opt/sensor/accel/name
touch /opt/sensor/accel/xyz
- echo "0, -256, 0" > /opt/sensor/accel/xyz
+ echo "0, 980665, 0" > /opt/sensor/accel/xyz
touch /opt/sensor/light/name
echo "light_sim" > /opt/sensor/light/name
touch /opt/sensor/light/adc
- echo "2000" > /opt/sensor/light/adc
+ echo "65535" > /opt/sensor/light/adc
touch /opt/sensor/light/level
echo "10" > /opt/sensor/light/level
@@ -48,7 +49,7 @@ if [ ! -d $CHECK_SENSOR ]; then
touch /opt/sensor/proxi/enable
echo "1" > /opt/sensor/proxi/enable
touch /opt/sensor/proxi/vo
- echo "0" > /opt/sensor/proxi/vo
+ echo "8" > /opt/sensor/proxi/vo
touch /opt/sensor/gyro/name
echo "gyro_sim" > /opt/sensor/gyro/name
@@ -62,13 +63,28 @@ if [ ! -d $CHECK_SENSOR ]; then
touch /opt/sensor/geo/name
echo "geo_sim" > /opt/sensor/geo/name
touch /opt/sensor/geo/raw
- echo "0 0 0 4" > /opt/sensor/geo/raw
+ echo "0 -90 0 3" > /opt/sensor/geo/raw
touch /opt/sensor/geo/tesla
echo "1 0 -10" > /opt/sensor/geo/tesla
+else
+ echo "0, 980665, 0" > /opt/sensor/accel/xyz
+ echo "65535" > /opt/sensor/light/adc
+ echo "10" > /opt/sensor/light/level
+ echo "1" > /opt/sensor/proxi/enable
+ echo "8" > /opt/sensor/proxi/vo
+ echo "0" > /opt/sensor/gyro/gyro_x_raw
+ echo "0" > /opt/sensor/gyro/gyro_y_raw
+ echo "0" > /opt/sensor/gyro/gyro_z_raw
+ echo "0 -90 0 3" > /opt/sensor/geo/raw
+ echo "1 0 -10" > /opt/sensor/geo/tesla
fi
if [ ! -d $CHECK_NFC ]; then
mkdir /opt/nfc
touch /opt/nfc/sdkMsg
+else
+ if [ ! -f $CHECK_NFC_FILE ]; then
+ touch /opt/nfc/sdkMsg
+ fi
fi
diff --git a/filesystem/etc/yagl.sh b/filesystem/etc/yagl.sh
new file mode 100755
index 0000000..08d6fc4
--- /dev/null
+++ b/filesystem/etc/yagl.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+if [ -f "/usr/lib/yagl/libGLESv2.so" ] ; then
+ if grep "yagl=1" /proc/cmdline ; then
+ echo -e "[${_G} Emulator YaGL hw acceleration. ${C_}]"
+ # Backup
+ if [ ! -d /usr/lib/yagl/backup ] ; then
+ mkdir -p /usr/lib/yagl/backup
+ [ -f /usr/lib/libCOREGL.so.1.1 ] && mv /usr/lib/libCOREGL.so.1.1 /usr/lib/yagl/backup/
+ [ -f /usr/lib/libEGL_drv.so ] && mv /usr/lib/libEGL_drv.so /usr/lib/yagl/backup/
+ [ -f /usr/lib/libEGL_platform.so ] && mv /usr/lib/libEGL_platform.so /usr/lib/yagl/backup/
+ [ -f /usr/lib/libGLESv1_CM.so.1.1 ] && mv /usr/lib/libGLESv1_CM.so.1.1 /usr/lib/yagl/backup/
+ [ -f /usr/lib/libGLESv2_drv.so ] && mv /usr/lib/libGLESv2_drv.so /usr/lib/yagl/backup/
+# GL_LIBRARY="/usr/lib/libCOREGL.so.1.1"
+# GL_LIBRARY="$GL_LIBRARY /usr/lib/libEGL_drv.so"
+# GL_LIBRARY="$GL_LIBRARY /usr/lib/libEGL_platform.so"
+# GL_LIBRARY="$GL_LIBRARY /usr/lib/libGLESv1_CM.so.1.1"
+# GL_LIBRARY="$GL_LIBRARY /usr/lib/libGLESv2_drv.so"
+# mv $GL_LIBRARY /usr/lib/yagl/backup/
+ fi
+
+ rm -f /usr/lib/libGLESv*.so*
+ rm -f /usr/lib/libEGLv*.so*
+ rm -f /usr/lib/libCOREGL*.so
+ rm -f /usr/lib/libGL.so*
+ rm -f /usr/lib/st_GL.so
+ rm -f /usr/lib/egl_gallium.so
+ rm -f /usr/lib/libglapi.so*
+
+ ulimit -SHl unlimited
+
+ if [ -c /dev/yagl ] ; then
+ chmod 666 /dev/yagl
+ fi
+
+ export ELM_ENGINE="gl"
+ export YAGL_DEBUG=4
+# export YAGL_DEBUG_FUNC_TRACE=1
+
+ ln -s -f /usr/lib/yagl/libGLESv2.so /usr/lib/libGLESv2.so
+
+ ln -s -f /usr/lib/libGLESv2.so /usr/lib/libGLESv2_drv.so
+ ln -s -f /usr/lib/libGLESv2.so /usr/lib/libGLESv2.so.1
+ ln -s -f /usr/lib/libGLESv2.so.1 /usr/lib/libGLESv2.so.2
+
+ ln -s -f /usr/lib/yagl/libEGL.so /usr/lib/libEGL.so
+ ln -s -f /usr/lib/libEGL.so /usr/lib/libEGL.so.1
+ ln -s -f /usr/lib/libEGL.so.1 /usr/lib/libEGL.so.1.4
+
+ ln -s -f /usr/lib/libGLESv2.so /usr/lib/libCOREGL.so
+ ln -s -f /usr/lib/libCOREGL.so /usr/lib/libCOREGL.so.1
+ ln -s -f /usr/lib/libCOREGL.so.1 /usr/lib/libCOREGL.so.1.1
+ fi
+fi
diff --git a/filesystem/usr/etc/sound/default.conf b/filesystem/usr/etc/sound/default.conf
new file mode 100644
index 0000000..2f6e4a1
--- /dev/null
+++ b/filesystem/usr/etc/sound/default.conf
@@ -0,0 +1,56 @@
+Section "Scenario"
+ Identifier = "reset_playback"
+ File = "reset_playback"
+ PreSequenceFile = "reset_playback_pre"
+EndSection
+Section "Scenario"
+ Identifier = "reset_capture"
+ File = "reset_capture"
+ PreSequenceFile = "reset_capture_pre"
+EndSection
+
+###### PLAYBACk ######
+Section "Scenario"
+ Identifier = "ap_to_speaker"
+ File = "ap_to_speaker"
+ PreSequenceFile = "ap_to_speaker_pre"
+EndSection
+Section "Scenario"
+ Identifier = "ap_to_speaker_gain"
+ File = "ap_to_speaker_gain"
+ PreSequenceFile = "ap_to_speaker_gain_pre"
+EndSection
+Section "Scenario"
+ Identifier = "ap_to_speaker_ringtone_gain"
+ File = "ap_to_speaker_gain"
+ PreSequenceFile = "ap_to_speaker_gain_pre"
+EndSection
+Section "Scenario"
+ Identifier = "ap_to_headset"
+ File = "ap_to_headset"
+ PreSequenceFile = "ap_to_headset_pre"
+EndSection
+Section "Scenario"
+ Identifier = "ap_to_headset_gain"
+ File = "ap_to_headset_gain"
+ PreSequenceFile = "ap_to_headset_gain_pre"
+EndSection
+Section "Scenario"
+ Identifier = "ap_to_headset_ringtone_gain"
+ File = "ap_to_headset_gain"
+ PreSequenceFile = "ap_to_headset_gain_pre"
+EndSection
+
+###### CAPTURE ######
+
+Section "Scenario"
+ Identifier = "mainmic_to_ap"
+ File = "mainmic_to_ap"
+ PreSequenceFile = "mainmic_to_ap_pre"
+EndSection
+Section "Scenario"
+ Identifier = "mainmic_to_ap_gain"
+ File = "mainmic_to_ap_gain"
+ PreSequenceFile = "mainmic_to_ap_gain_pre"
+EndSection
+
diff --git a/filesystem/usr/etc/sound/default/ap_to_bt b/filesystem/usr/etc/sound/default/ap_to_bt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_bt
diff --git a/filesystem/usr/etc/sound/default/ap_to_bt_gain b/filesystem/usr/etc/sound/default/ap_to_bt_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_bt_gain
diff --git a/filesystem/usr/etc/sound/default/ap_to_bt_pre b/filesystem/usr/etc/sound/default/ap_to_bt_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_bt_pre
diff --git a/filesystem/usr/etc/sound/default/ap_to_bt_pre_gain b/filesystem/usr/etc/sound/default/ap_to_bt_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_bt_pre_gain
diff --git a/filesystem/usr/etc/sound/default/ap_to_headset b/filesystem/usr/etc/sound/default/ap_to_headset
new file mode 100644
index 0000000..9331169
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_headset
@@ -0,0 +1,2 @@
+'Master Playback Switch':1:0
+'PCM Playback Switch':1:0
diff --git a/filesystem/usr/etc/sound/default/ap_to_headset_gain b/filesystem/usr/etc/sound/default/ap_to_headset_gain
new file mode 100644
index 0000000..e97b603
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_headset_gain
@@ -0,0 +1,2 @@
+'Master Playback Volume':2:50,50
+'PCM Playback Volume':2:50,50
diff --git a/filesystem/usr/etc/sound/default/ap_to_headset_gain_pre b/filesystem/usr/etc/sound/default/ap_to_headset_gain_pre
new file mode 100644
index 0000000..c6e92fc
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_headset_gain_pre
@@ -0,0 +1,2 @@
+kcontrol "Master Playback Volume" = "1"
+kcontrol "PCM Playback Volume" = "1"
diff --git a/filesystem/usr/etc/sound/default/ap_to_headset_pre b/filesystem/usr/etc/sound/default/ap_to_headset_pre
new file mode 100644
index 0000000..043a628
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_headset_pre
@@ -0,0 +1,2 @@
+kcontrol "Master Playback Switch" = "1"
+kcontrol "PCM Playback Switch" = "1"
diff --git a/filesystem/usr/etc/sound/default/ap_to_headset_pre_gain b/filesystem/usr/etc/sound/default/ap_to_headset_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_headset_pre_gain
diff --git a/filesystem/usr/etc/sound/default/ap_to_headset_ringtone_gain b/filesystem/usr/etc/sound/default/ap_to_headset_ringtone_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_headset_ringtone_gain
diff --git a/filesystem/usr/etc/sound/default/ap_to_receiver b/filesystem/usr/etc/sound/default/ap_to_receiver
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_receiver
diff --git a/filesystem/usr/etc/sound/default/ap_to_receiver_gain b/filesystem/usr/etc/sound/default/ap_to_receiver_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_receiver_gain
diff --git a/filesystem/usr/etc/sound/default/ap_to_receiver_pre b/filesystem/usr/etc/sound/default/ap_to_receiver_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_receiver_pre
diff --git a/filesystem/usr/etc/sound/default/ap_to_receiver_pre_gain b/filesystem/usr/etc/sound/default/ap_to_receiver_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_receiver_pre_gain
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker b/filesystem/usr/etc/sound/default/ap_to_speaker
new file mode 100644
index 0000000..df8f01c
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker
@@ -0,0 +1,2 @@
+'Master Playback Switch':1:1
+'PCM Playback Switch':1:1
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker_gain b/filesystem/usr/etc/sound/default/ap_to_speaker_gain
new file mode 100644
index 0000000..e97b603
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker_gain
@@ -0,0 +1,2 @@
+'Master Playback Volume':2:50,50
+'PCM Playback Volume':2:50,50
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker_gain_pre b/filesystem/usr/etc/sound/default/ap_to_speaker_gain_pre
new file mode 100644
index 0000000..c6e92fc
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker_gain_pre
@@ -0,0 +1,2 @@
+kcontrol "Master Playback Volume" = "1"
+kcontrol "PCM Playback Volume" = "1"
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker_left b/filesystem/usr/etc/sound/default/ap_to_speaker_left
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker_left
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker_left_pre b/filesystem/usr/etc/sound/default/ap_to_speaker_left_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker_left_pre
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker_pre b/filesystem/usr/etc/sound/default/ap_to_speaker_pre
new file mode 100644
index 0000000..043a628
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker_pre
@@ -0,0 +1,2 @@
+kcontrol "Master Playback Switch" = "1"
+kcontrol "PCM Playback Switch" = "1"
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker_pre_gain b/filesystem/usr/etc/sound/default/ap_to_speaker_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker_pre_gain
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker_right b/filesystem/usr/etc/sound/default/ap_to_speaker_right
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker_right
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker_right_pre b/filesystem/usr/etc/sound/default/ap_to_speaker_right_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker_right_pre
diff --git a/filesystem/usr/etc/sound/default/ap_to_speaker_ringtone_gain b/filesystem/usr/etc/sound/default/ap_to_speaker_ringtone_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/ap_to_speaker_ringtone_gain
diff --git a/filesystem/usr/etc/sound/default/bt_to_ap b/filesystem/usr/etc/sound/default/bt_to_ap
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/bt_to_ap
diff --git a/filesystem/usr/etc/sound/default/bt_to_ap_gain b/filesystem/usr/etc/sound/default/bt_to_ap_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/bt_to_ap_gain
diff --git a/filesystem/usr/etc/sound/default/bt_to_ap_pre b/filesystem/usr/etc/sound/default/bt_to_ap_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/bt_to_ap_pre
diff --git a/filesystem/usr/etc/sound/default/bt_to_ap_pre_gain b/filesystem/usr/etc/sound/default/bt_to_ap_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/bt_to_ap_pre_gain
diff --git a/filesystem/usr/etc/sound/default/bt_to_cp b/filesystem/usr/etc/sound/default/bt_to_cp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/bt_to_cp
diff --git a/filesystem/usr/etc/sound/default/bt_to_cp_gain b/filesystem/usr/etc/sound/default/bt_to_cp_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/bt_to_cp_gain
diff --git a/filesystem/usr/etc/sound/default/bt_to_cp_pre b/filesystem/usr/etc/sound/default/bt_to_cp_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/bt_to_cp_pre
diff --git a/filesystem/usr/etc/sound/default/bt_to_cp_pre_gain b/filesystem/usr/etc/sound/default/bt_to_cp_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/bt_to_cp_pre_gain
diff --git a/filesystem/usr/etc/sound/default/codec_disable_on_suspend b/filesystem/usr/etc/sound/default/codec_disable_on_suspend
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/codec_disable_on_suspend
diff --git a/filesystem/usr/etc/sound/default/codec_disable_on_suspend_pre b/filesystem/usr/etc/sound/default/codec_disable_on_suspend_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/codec_disable_on_suspend_pre
diff --git a/filesystem/usr/etc/sound/default/cp_to_ap b/filesystem/usr/etc/sound/default/cp_to_ap
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_ap
diff --git a/filesystem/usr/etc/sound/default/cp_to_ap_gain b/filesystem/usr/etc/sound/default/cp_to_ap_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_ap_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_ap_pre b/filesystem/usr/etc/sound/default/cp_to_ap_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_ap_pre
diff --git a/filesystem/usr/etc/sound/default/cp_to_ap_pre_gain b/filesystem/usr/etc/sound/default/cp_to_ap_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_ap_pre_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_bt b/filesystem/usr/etc/sound/default/cp_to_bt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_bt
diff --git a/filesystem/usr/etc/sound/default/cp_to_bt_gain b/filesystem/usr/etc/sound/default/cp_to_bt_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_bt_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_bt_pre b/filesystem/usr/etc/sound/default/cp_to_bt_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_bt_pre
diff --git a/filesystem/usr/etc/sound/default/cp_to_bt_pre_gain b/filesystem/usr/etc/sound/default/cp_to_bt_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_bt_pre_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_headset b/filesystem/usr/etc/sound/default/cp_to_headset
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_headset
diff --git a/filesystem/usr/etc/sound/default/cp_to_headset_gain b/filesystem/usr/etc/sound/default/cp_to_headset_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_headset_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_headset_pre b/filesystem/usr/etc/sound/default/cp_to_headset_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_headset_pre
diff --git a/filesystem/usr/etc/sound/default/cp_to_headset_pre_gain b/filesystem/usr/etc/sound/default/cp_to_headset_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_headset_pre_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_headset_videocall_gain b/filesystem/usr/etc/sound/default/cp_to_headset_videocall_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_headset_videocall_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_headset_voicecall_gain b/filesystem/usr/etc/sound/default/cp_to_headset_voicecall_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_headset_voicecall_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_receiver b/filesystem/usr/etc/sound/default/cp_to_receiver
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_receiver
diff --git a/filesystem/usr/etc/sound/default/cp_to_receiver_gain b/filesystem/usr/etc/sound/default/cp_to_receiver_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_receiver_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_receiver_pre b/filesystem/usr/etc/sound/default/cp_to_receiver_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_receiver_pre
diff --git a/filesystem/usr/etc/sound/default/cp_to_receiver_pre_gain b/filesystem/usr/etc/sound/default/cp_to_receiver_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_receiver_pre_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_receiver_videocall_gain b/filesystem/usr/etc/sound/default/cp_to_receiver_videocall_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_receiver_videocall_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_receiver_voicecall_gain b/filesystem/usr/etc/sound/default/cp_to_receiver_voicecall_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_receiver_voicecall_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_speaker b/filesystem/usr/etc/sound/default/cp_to_speaker
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_speaker
diff --git a/filesystem/usr/etc/sound/default/cp_to_speaker_gain b/filesystem/usr/etc/sound/default/cp_to_speaker_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_speaker_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_speaker_pre b/filesystem/usr/etc/sound/default/cp_to_speaker_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_speaker_pre
diff --git a/filesystem/usr/etc/sound/default/cp_to_speaker_pre_gain b/filesystem/usr/etc/sound/default/cp_to_speaker_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_speaker_pre_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_speaker_videocall_gain b/filesystem/usr/etc/sound/default/cp_to_speaker_videocall_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_speaker_videocall_gain
diff --git a/filesystem/usr/etc/sound/default/cp_to_speaker_voicecall_gain b/filesystem/usr/etc/sound/default/cp_to_speaker_voicecall_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/cp_to_speaker_voicecall_gain
diff --git a/filesystem/usr/etc/sound/default/earmic_to_ap b/filesystem/usr/etc/sound/default/earmic_to_ap
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/earmic_to_ap
diff --git a/filesystem/usr/etc/sound/default/earmic_to_ap_gain b/filesystem/usr/etc/sound/default/earmic_to_ap_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/earmic_to_ap_gain
diff --git a/filesystem/usr/etc/sound/default/earmic_to_ap_pre b/filesystem/usr/etc/sound/default/earmic_to_ap_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/earmic_to_ap_pre
diff --git a/filesystem/usr/etc/sound/default/earmic_to_ap_pre_gain b/filesystem/usr/etc/sound/default/earmic_to_ap_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/earmic_to_ap_pre_gain
diff --git a/filesystem/usr/etc/sound/default/earmic_to_cp b/filesystem/usr/etc/sound/default/earmic_to_cp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/earmic_to_cp
diff --git a/filesystem/usr/etc/sound/default/earmic_to_cp_gain b/filesystem/usr/etc/sound/default/earmic_to_cp_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/earmic_to_cp_gain
diff --git a/filesystem/usr/etc/sound/default/earmic_to_cp_pre b/filesystem/usr/etc/sound/default/earmic_to_cp_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/earmic_to_cp_pre
diff --git a/filesystem/usr/etc/sound/default/earmic_to_cp_pre_gain b/filesystem/usr/etc/sound/default/earmic_to_cp_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/earmic_to_cp_pre_gain
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_ap b/filesystem/usr/etc/sound/default/fmradio_to_ap
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_ap
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_ap_gain b/filesystem/usr/etc/sound/default/fmradio_to_ap_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_ap_gain
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_ap_pre b/filesystem/usr/etc/sound/default/fmradio_to_ap_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_ap_pre
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_ap_pre_gain b/filesystem/usr/etc/sound/default/fmradio_to_ap_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_ap_pre_gain
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_headset b/filesystem/usr/etc/sound/default/fmradio_to_headset
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_headset
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_headset_gain b/filesystem/usr/etc/sound/default/fmradio_to_headset_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_headset_gain
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_headset_pre b/filesystem/usr/etc/sound/default/fmradio_to_headset_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_headset_pre
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_headset_pre_gain b/filesystem/usr/etc/sound/default/fmradio_to_headset_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_headset_pre_gain
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_speaker b/filesystem/usr/etc/sound/default/fmradio_to_speaker
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_speaker
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_speaker_gain b/filesystem/usr/etc/sound/default/fmradio_to_speaker_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_speaker_gain
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_speaker_pre b/filesystem/usr/etc/sound/default/fmradio_to_speaker_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_speaker_pre
diff --git a/filesystem/usr/etc/sound/default/fmradio_to_speaker_pre_gain b/filesystem/usr/etc/sound/default/fmradio_to_speaker_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/fmradio_to_speaker_pre_gain
diff --git a/filesystem/usr/etc/sound/default/mainmic_to_ap b/filesystem/usr/etc/sound/default/mainmic_to_ap
new file mode 100644
index 0000000..2656c09
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mainmic_to_ap
@@ -0,0 +1 @@
+'Capture Switch':1:1
diff --git a/filesystem/usr/etc/sound/default/mainmic_to_ap_gain b/filesystem/usr/etc/sound/default/mainmic_to_ap_gain
new file mode 100644
index 0000000..8ceeed8
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mainmic_to_ap_gain
@@ -0,0 +1 @@
+'Capture Volume':2:15,15
diff --git a/filesystem/usr/etc/sound/default/mainmic_to_ap_gain_pre b/filesystem/usr/etc/sound/default/mainmic_to_ap_gain_pre
new file mode 100644
index 0000000..20f8323
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mainmic_to_ap_gain_pre
@@ -0,0 +1 @@
+kcontrol "Capture Volume" = "1"
diff --git a/filesystem/usr/etc/sound/default/mainmic_to_ap_pre b/filesystem/usr/etc/sound/default/mainmic_to_ap_pre
new file mode 100644
index 0000000..30589c7
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mainmic_to_ap_pre
@@ -0,0 +1 @@
+kcontrol "Capture Switch" = "1"
diff --git a/filesystem/usr/etc/sound/default/mainmic_to_ap_pre_gain b/filesystem/usr/etc/sound/default/mainmic_to_ap_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mainmic_to_ap_pre_gain
diff --git a/filesystem/usr/etc/sound/default/mainmic_to_cp b/filesystem/usr/etc/sound/default/mainmic_to_cp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mainmic_to_cp
diff --git a/filesystem/usr/etc/sound/default/mainmic_to_cp_gain b/filesystem/usr/etc/sound/default/mainmic_to_cp_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mainmic_to_cp_gain
diff --git a/filesystem/usr/etc/sound/default/mainmic_to_cp_pre b/filesystem/usr/etc/sound/default/mainmic_to_cp_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mainmic_to_cp_pre
diff --git a/filesystem/usr/etc/sound/default/mainmic_to_cp_pre_gain b/filesystem/usr/etc/sound/default/mainmic_to_cp_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mainmic_to_cp_pre_gain
diff --git a/filesystem/usr/etc/sound/default/mute_playback b/filesystem/usr/etc/sound/default/mute_playback
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mute_playback
diff --git a/filesystem/usr/etc/sound/default/mute_playback_pre b/filesystem/usr/etc/sound/default/mute_playback_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/mute_playback_pre
diff --git a/filesystem/usr/etc/sound/default/reset b/filesystem/usr/etc/sound/default/reset
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/reset
diff --git a/filesystem/usr/etc/sound/default/reset_capture b/filesystem/usr/etc/sound/default/reset_capture
new file mode 100644
index 0000000..19082c0
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/reset_capture
@@ -0,0 +1 @@
+'Capture Switch':1:0
diff --git a/filesystem/usr/etc/sound/default/reset_capture_pre b/filesystem/usr/etc/sound/default/reset_capture_pre
new file mode 100644
index 0000000..30589c7
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/reset_capture_pre
@@ -0,0 +1 @@
+kcontrol "Capture Switch" = "1"
diff --git a/filesystem/usr/etc/sound/default/reset_playback b/filesystem/usr/etc/sound/default/reset_playback
new file mode 100644
index 0000000..9331169
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/reset_playback
@@ -0,0 +1,2 @@
+'Master Playback Switch':1:0
+'PCM Playback Switch':1:0
diff --git a/filesystem/usr/etc/sound/default/reset_playback_pre b/filesystem/usr/etc/sound/default/reset_playback_pre
new file mode 100644
index 0000000..043a628
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/reset_playback_pre
@@ -0,0 +1,2 @@
+kcontrol "Master Playback Switch" = "1"
+kcontrol "PCM Playback Switch" = "1"
diff --git a/filesystem/usr/etc/sound/default/reset_pre b/filesystem/usr/etc/sound/default/reset_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/reset_pre
diff --git a/filesystem/usr/etc/sound/default/stereomic_to_ap b/filesystem/usr/etc/sound/default/stereomic_to_ap
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/stereomic_to_ap
diff --git a/filesystem/usr/etc/sound/default/stereomic_to_ap_gain b/filesystem/usr/etc/sound/default/stereomic_to_ap_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/stereomic_to_ap_gain
diff --git a/filesystem/usr/etc/sound/default/stereomic_to_ap_pre b/filesystem/usr/etc/sound/default/stereomic_to_ap_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/stereomic_to_ap_pre
diff --git a/filesystem/usr/etc/sound/default/stereomic_to_ap_pre_gain b/filesystem/usr/etc/sound/default/stereomic_to_ap_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/stereomic_to_ap_pre_gain
diff --git a/filesystem/usr/etc/sound/default/submic_to_ap b/filesystem/usr/etc/sound/default/submic_to_ap
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/submic_to_ap
diff --git a/filesystem/usr/etc/sound/default/submic_to_ap_gain b/filesystem/usr/etc/sound/default/submic_to_ap_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/submic_to_ap_gain
diff --git a/filesystem/usr/etc/sound/default/submic_to_ap_pre b/filesystem/usr/etc/sound/default/submic_to_ap_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/submic_to_ap_pre
diff --git a/filesystem/usr/etc/sound/default/submic_to_ap_pre_gain b/filesystem/usr/etc/sound/default/submic_to_ap_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/submic_to_ap_pre_gain
diff --git a/filesystem/usr/etc/sound/default/submic_to_cp b/filesystem/usr/etc/sound/default/submic_to_cp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/submic_to_cp
diff --git a/filesystem/usr/etc/sound/default/submic_to_cp_gain b/filesystem/usr/etc/sound/default/submic_to_cp_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/submic_to_cp_gain
diff --git a/filesystem/usr/etc/sound/default/submic_to_cp_pre b/filesystem/usr/etc/sound/default/submic_to_cp_pre
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/submic_to_cp_pre
diff --git a/filesystem/usr/etc/sound/default/submic_to_cp_pre_gain b/filesystem/usr/etc/sound/default/submic_to_cp_pre_gain
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/submic_to_cp_pre_gain
diff --git a/filesystem/usr/etc/sound/default/unmute_playback b/filesystem/usr/etc/sound/default/unmute_playback
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/filesystem/usr/etc/sound/default/unmute_playback