diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-08 17:02:51 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:41 +1100 |
commit | 39af5aad096d103c171096f05cc0487e66de0571 (patch) | |
tree | 76ad9495f009a794835b7785a593dc49f19ca623 /scripts | |
parent | 3b2d2634474398bb40c64941c828a4cf6b363d4a (diff) |
Add working loopback implementation, helper scripts
Reworked the original aloop implementation to have the PCM devices loop on themselves, and subscribe the the AVIRT system.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/load.sh | 5 | ||||
-rwxr-xr-x | scripts/test_configfs.sh | 4 | ||||
-rwxr-xr-x | scripts/unload.sh | 3 |
3 files changed, 11 insertions, 1 deletions
diff --git a/scripts/load.sh b/scripts/load.sh index 2cd472d..82f613a 100755 --- a/scripts/load.sh +++ b/scripts/load.sh @@ -4,7 +4,10 @@ insmod avirt_core.ko # Load the additional Audio Paths -#insmod dummy/avirt_dummyap.ko +insmod dummy/avirt_dummyap.ko insmod loopback/avirt_loopbackap.ko +# Run the test script +./scripts/test_configfs.sh + echo "Drivers Loaded!" diff --git a/scripts/test_configfs.sh b/scripts/test_configfs.sh index 1ae0fe5..baa5e58 100755 --- a/scripts/test_configfs.sh +++ b/scripts/test_configfs.sh @@ -4,14 +4,18 @@ mkdir -p /config && mount -t configfs none /config mkdir /config/avirt/streams/playback_media echo "2">/config/avirt/streams/playback_media/channels +echo "ap_loopback">/config/avirt/streams/playback_media/map mkdir /config/avirt/streams/playback_navigation echo "1">/config/avirt/streams/playback_navigation/channels +echo "ap_loopback">/config/avirt/streams/playback_navigation/map mkdir /config/avirt/streams/playback_emergency echo "1">/config/avirt/streams/playback_emergency/channels +echo "ap_loopback">/config/avirt/streams/playback_emergency/map mkdir /config/avirt/streams/capture_voice echo "1">/config/avirt/streams/capture_voice/channels +echo "ap_loopback">/config/avirt/streams/capture_voice/map echo "1">/config/avirt/streams/sealed diff --git a/scripts/unload.sh b/scripts/unload.sh index a011a2b..2c158d5 100755 --- a/scripts/unload.sh +++ b/scripts/unload.sh @@ -1,5 +1,8 @@ #!/bin/sh +rmdir /config/avirt/streams/playback_* +rmdir /config/avirt/streams/capture_* + rm_module() { lsmod |grep "^$1\>" && rmmod $1 || true } |