-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
licheervnano: fix audio test volume, add gpio button test
- Loading branch information
Showing
6 changed files
with
75 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 12 additions & 7 deletions
19
ramdisk/rootfs/overlay/cv1812cp_licheerv_nano_sd/opt/audio.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
#!/bin/sh | ||
|
||
export LD_LIBRARY_PATH=/mnt/system/lib/ | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "usage: $0 count" | ||
exit 1 | ||
fi | ||
|
||
seq 1 $1 | while read line | ||
do | ||
echo "Now record sound" | ||
arecord -Dhw:0,0 -d 5 -r 48000 -f S16_LE -t wav /tmp/ramdisk/test.wav | ||
echo "Set ADC Volume" | ||
echo "0 | ||
24 | ||
1 | ||
" | sample_audio 6 | ||
|
||
echo "Now record sound" | ||
arecord -Dhw:0,0 -d $1 -r 48000 -f S16_LE -t wav /tmp/ramdisk/test.wav | ||
|
||
echo "Now play sound" | ||
aplay -D hw:1,0 -f S16_LE /tmp/ramdisk/test.wav | ||
done | ||
echo "Now play sound" | ||
aplay -D hw:1,0 -f S16_LE /tmp/ramdisk/test.wav |
Binary file modified
BIN
+1.99 KB
(100%)
ramdisk/rootfs/overlay/cv1812cp_licheerv_nano_sd/opt/src/vendortest/vendortest
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.99 KB
(100%)
ramdisk/rootfs/overlay/cv1812cp_licheerv_nano_sd/opt/vendortest
Binary file not shown.