aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorDaiane Angolini <daiane.angolini@freescale.com>2012-07-25 12:27:04 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2012-07-25 14:54:50 -0300
commit2e53d9aef1dfec5c5d92a44ac0e9d25d0091f078 (patch)
tree94b02a6b4da80b3fd70e3d1d5570181c036e2045 /recipes-bsp
parente634ab0400de9b460eefafd2b50bcec84f31ca2d (diff)
downloadmeta-fsl-arm-2e53d9aef1dfec5c5d92a44ac0e9d25d0091f078.tar.gz
meta-fsl-arm-2e53d9aef1dfec5c5d92a44ac0e9d25d0091f078.tar.bz2
meta-fsl-arm-2e53d9aef1dfec5c5d92a44ac0e9d25d0091f078.zip
alsa-state: custom asound.conf file for iMX targets
asound.conf file for iMX5 family is from FSL BSP 2.6.35_11.09.01_ER asound.conf file for MXS family is from FSL BSP L2.6.35_10.12.01_SDK Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/alsa-state/alsa-state.bbappend8
-rwxr-xr-xrecipes-bsp/alsa-state/alsa-state/mx5/asound.conf275
-rw-r--r--recipes-bsp/alsa-state/alsa-state/mxs/asound.conf299
3 files changed, 582 insertions, 0 deletions
diff --git a/recipes-bsp/alsa-state/alsa-state.bbappend b/recipes-bsp/alsa-state/alsa-state.bbappend
new file mode 100644
index 0000000..d350a0b
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state.bbappend
@@ -0,0 +1,8 @@
+# Append path for freescale layer to include alsa-state asound.conf
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}"
+PACKAGE_ARCH_mxs = "${MACHINE_ARCH}"
+
+PRINC := "${@int(PRINC) + 1}"
+
diff --git a/recipes-bsp/alsa-state/alsa-state/mx5/asound.conf b/recipes-bsp/alsa-state/alsa-state/mx5/asound.conf
new file mode 100755
index 0000000..0cbe59b
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state/mx5/asound.conf
@@ -0,0 +1,275 @@
+defaults.pcm.rate_converter "linear"
+
+pcm.dmix_48000{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 48000
+}
+}
+
+pcm.dmix_44100{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 44100
+}
+}
+
+pcm.dmix_32000{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 32000
+}
+}
+
+pcm.dmix_24000{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 24000
+}
+}
+
+pcm.dmix_22050{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 22050
+}
+}
+
+pcm.dmix_16000{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 16000
+}
+}
+
+pcm.dmix_12000{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 12000
+}
+}
+
+pcm.dmix_11025{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 11025
+}
+}
+
+pcm.dmix_8000{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 8000
+}
+}
+
+pcm.!dsnoop_48000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 48000
+}
+}
+
+pcm.!dsnoop_44100{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 44100
+}
+}
+
+pcm.!dsnoop_32000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 32000
+}
+}
+
+pcm.!dsnoop_24000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 24000
+}
+}
+
+pcm.!dsnoop_22050{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 22050
+}
+}
+
+pcm.!dsnoop_16000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 16000
+}
+}
+
+pcm.!dsnoop_12000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 12000
+}
+}
+
+pcm.!dsnoop_11025{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 11025
+}
+}
+
+pcm.!dsnoop_8000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 8000
+}
+}
+
+pcm.asymed{
+type asym
+playback.pcm "dmix_44100"
+capture.pcm "dsnoop_44100"
+}
+
+pcm.dsp0{
+type plug
+slave.pcm "asymed"
+}
+
+pcm.!default{
+type plug
+route_policy "average"
+slave.pcm "asymed"
+}
+
+ctl.mixer0{
+type hw
+card 0
+}
diff --git a/recipes-bsp/alsa-state/alsa-state/mxs/asound.conf b/recipes-bsp/alsa-state/alsa-state/mxs/asound.conf
new file mode 100644
index 0000000..39cb396
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state/mxs/asound.conf
@@ -0,0 +1,299 @@
+defaults.pcm.rate_converter "linear"
+
+pcm.dmix_48000{
+type plug
+slave.pcm{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 48000
+}
+}
+}
+
+pcm.dmix_44100{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 44100
+}
+}
+
+pcm.dmix_32000{
+type plug
+slave.pcm{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 32000
+}
+}
+}
+
+pcm.dmix_24000{
+type plug
+slave.pcm{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 24000
+}
+}
+}
+
+pcm.dmix_22050{
+type plug
+slave.pcm{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 22050
+}
+}
+}
+
+pcm.dmix_16000{
+type plug
+slave.pcm{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 16000
+}
+}
+}
+
+pcm.dmix_12000{
+type plug
+slave.pcm{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 12000
+}
+}
+}
+
+pcm.dmix_11025{
+type plug
+slave.pcm{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 11025
+}
+}
+}
+
+pcm.dmix_8000{
+type plug
+slave.pcm{
+type dmix
+ipc_key 5678293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 8000
+}
+}
+}
+
+pcm.!dsnoop_48000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 48000
+}
+}
+
+pcm.!dsnoop_44100{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 44100
+}
+}
+
+pcm.!dsnoop_32000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 32000
+}
+}
+
+pcm.!dsnoop_24000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 24000
+}
+}
+
+pcm.!dsnoop_22050{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 22050
+}
+}
+
+pcm.!dsnoop_16000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 16000
+}
+}
+
+pcm.!dsnoop_12000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 12000
+}
+}
+
+pcm.!dsnoop_11025{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 11025
+}
+}
+
+pcm.!dsnoop_8000{
+type dsnoop
+ipc_key 5778293
+ipc_key_add_uid yes
+slave{
+pcm "hw:0,0"
+period_time 0
+period_size 2048
+buffer_size 24576
+format S16_LE
+rate 8000
+}
+}
+
+pcm.asymed{
+type asym
+playback.pcm "dmix_44100"
+capture.pcm "dsnoop_44100"
+}
+
+pcm.dsp0{
+type plug
+slave.pcm "asymed"
+}
+
+pcm.!default{
+type plug
+route_policy "average"
+slave.pcm "asymed"
+}
+
+ctl.mixer0{
+type hw
+card 0
+}