aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-config
diff options
context:
space:
mode:
authorTobias Jahnke <tobias.jahnke@microchip.com>2019-11-12 14:32:15 +0100
committerTobias Jahnke <tobias.jahnke@microchip.com>2019-11-13 07:46:25 +0000
commitb01dec966f303cdd658ec2c32290fca04a09a35a (patch)
tree8728d2a1862794a83b12f01d1cafd825e1f2f58d /recipes-config
parentb706fa19383aac2717f96b2e9734d6561c5f5007 (diff)
unicens-configuration: updated driver config
- adopt driver configuration to provide 2 'mono' ALSA capture devices Bug-AGL: SPEC-2953 Signed-off-by: Tobias Jahnke <tobias.jahnke@microchip.com> Change-Id: Iff5138828dd192cd9370b2ac1ab17c7fc3db208b
Diffstat (limited to 'recipes-config')
-rw-r--r--recipes-config/unicens-config/files/unicens-config.sh59
1 files changed, 9 insertions, 50 deletions
diff --git a/recipes-config/unicens-config/files/unicens-config.sh b/recipes-config/unicens-config/files/unicens-config.sh
index 8d6072d38..1f7fd3906 100644
--- a/recipes-config/unicens-config/files/unicens-config.sh
+++ b/recipes-config/unicens-config/files/unicens-config.sh
@@ -109,27 +109,28 @@ echo mdev2:ep01:ep01-6ch.6x16 > /sys/devices/virtual/most/mostcore/aims/sound/ad
# interface: mdev2
# aim: sound
-# name: ep81-2ch.2x16
+# name: ep81-1ch.1x16
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 2 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_subbuffer_size 2>/dev/null
+echo 256 > /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
+echo mdev2:ep81:ep81-1ch.1x16 > /sys/devices/virtual/most/mostcore/aims/sound/add_link 2>/dev/null
# interface: mdev2
# aim: sound
-# name: ep82-2ch.2x16
+# name: ep82-1ch.1x16
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 2 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_subbuffer_size 2>/dev/null
+echo 256 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_packets_per_xact 2>/dev/null
+
+echo mdev2:ep82:ep82-1ch.1x16 > /sys/devices/virtual/most/mostcore/aims/sound/add_link 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
@@ -140,45 +141,3 @@ echo 188 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep02/set_subbuffer_s
echo 2 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep02/set_packets_per_xact 2>/dev/null
echo mdev2:ep02:inic-usb-itx1 > /sys/devices/virtual/most/mostcore/aims/cdev/add_link 2>/dev/null
-
-##aim: sound
-##name: ep02-2ch.2x16
-#echo tx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep02/set_direction
-#echo sync > /sys/devices/virtual/most/mostcore/devices/mdev2/ep02/set_datatype
-#echo 4 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep02/set_number_of_buffers
-#echo 1024 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep02/set_buffer_size
-#echo 4 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep01/set_subbuffer_size
-#echo 128 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep01/set_packets_per_xact
-#
-#echo mdev2:ep02:ep02-2ch.2x16 > /sys/devices/virtual/most/mostcore/aims/sound/add_link
-##aim: sound
-##name: ep81-6ch.6x16
-#echo tx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_direction
-#echo sync > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_datatype
-#echo 4 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_number_of_buffers
-#echo 1008 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_buffer_size
-#echo 12 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_subbuffer_size
-#echo 42 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_packets_per_xact
-#
-#echo mdev2:ep81:ep81-6ch.6x16 > /sys/devices/virtual/most/mostcore/aims/sound/add_link
-##aim: sound
-##name: ep82-6ch.6x16
-#echo tx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_direction
-#echo sync > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_datatype
-#echo 4 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_number_of_buffers
-#echo 1008 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep81/set_buffer_size
-#echo 12 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_subbuffer_size
-#echo 42 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep82/set_packets_per_xact
-#
-#echo mdev2:ep82:ep82-6ch.6x16 > /sys/devices/virtual/most/mostcore/aims/sound/add_link
-##aim: sound
-##name: ep83-2ch.2x16
-#echo tx > /sys/devices/virtual/most/mostcore/devices/mdev2/ep83/set_direction
-#echo sync > /sys/devices/virtual/most/mostcore/devices/mdev2/ep83/set_datatype
-#echo 4 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep83/set_number_of_buffers
-#echo 1024 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep83/set_buffer_size
-#echo 4 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep83/set_subbuffer_size
-#echo 128 > /sys/devices/virtual/most/mostcore/devices/mdev2/ep83/set_packets_per_xact
-#
-#echo mdev2:ep83:ep83-2ch.2x16 > /sys/devices/virtual/most/mostcore/aims/sound/add_link
-