summaryrefslogtreecommitdiffstats
path: root/recipes-config/unicens-config/files/unicens-config.sh
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2018-10-09 17:20:27 +0200
committerChristian Gromm <christian.gromm@microchip.com>2018-10-09 17:20:34 +0200
commit80d9e65c1e2f3e77d87676212f6a329b783503d3 (patch)
tree480d78f9a3eb4b0fe5c0e9115e5c45c7710a4158 /recipes-config/unicens-config/files/unicens-config.sh
parentfc32c5eed79acf4f4662c57825c763a58ff3da73 (diff)
recipes-config: unicens-config: add capture device to configuration file
This patch adds a capture device to the MOST sound configuration. Is is needed to have the kernel driver register another sound card with the ALSA subsystem. Change-Id: I6406c40a788251e860768acce3c886b395e95ce0 Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Diffstat (limited to 'recipes-config/unicens-config/files/unicens-config.sh')
-rw-r--r--recipes-config/unicens-config/files/unicens-config.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes-config/unicens-config/files/unicens-config.sh b/recipes-config/unicens-config/files/unicens-config.sh
index e4817bded..3697a886d 100644
--- a/recipes-config/unicens-config/files/unicens-config.sh
+++ b/recipes-config/unicens-config/files/unicens-config.sh
@@ -106,6 +106,18 @@ echo 12 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep01/set_subbuffer_si
echo 42 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep01/set_packets_per_xact 2>/dev/null
echo mdev2:ep01:ep01-6ch.6x16 > /sys/devices/virtual/most/mostcore/aims/sound/add_link 2>/dev/null
+
+# interface: mdev2
+# aim: sound
+# name: ep81-2ch.2x16
+echo rx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_direction 2>/dev/null
+echo sync > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_datatype 2>/dev/null
+echo 8 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_number_of_buffers 2>/dev/null
+echo 2048 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_buffer_size 2>/dev/null
+echo 4 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_subbuffer_size 2>/dev/null
+echo 128 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_packets_per_xact 2>/dev/null
+
+echo mdev2:ep81:ep81-2ch.2x16 > /sys/devices/virtual/most/mostcore/aims/sound/add_link 2>/dev/null
##aim: cdev
##name: inic-usb-itx1
echo tx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep02/set_direction 2>/dev/null