summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2018-11-28 17:38:14 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-11-29 10:59:52 +0000
commita6e8e365148f8cf12a9a8291f96fca04b3368c14 (patch)
tree4894103136fbf74a4cfebfb17585690cdc038f70
parenta826886e187e20c9125d2dc960a1e255dc9d3ec1 (diff)
recipes-config: unicens-config: set up additional sound card in configuration file
This patch adds the configuration for an additional ALSA sound card to the MOST driver configuration file. It is needed to have another capture device registered with ALSA. Change-Id: I9c458448c80bef47d61831157c1b80ce1a7a9848 Signed-off-by: Christian Gromm <christian.gromm@microchip.com> (cherry picked from commit f3eecd3f5b5270d08cc4ab90b1c381008332c42a)
-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 3697a886d..8d6072d38 100644
--- a/recipes-config/unicens-config/files/unicens-config.sh
+++ b/recipes-config/unicens-config/files/unicens-config.sh
@@ -118,6 +118,18 @@ echo 4 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_subbuffer_siz
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
+
+# interface: mdev2
+# aim: sound
+# name: ep82-2ch.2x16
+echo rx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_direction 2>/dev/null
+echo sync > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_datatype 2>/dev/null
+echo 8 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_number_of_buffers 2>/dev/null
+echo 2048 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_buffer_size 2>/dev/null
+echo 4 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_subbuffer_size 2>/dev/null
+echo 128 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_packets_per_xact 2>/dev/null
+
+echo mdev2:ep82:ep82-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