summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2003-10-07 15:18:55 +0000
committerMarcel Holtmann <marcel@holtmann.org>2003-10-07 15:18:55 +0000
commit693d345b0cc02c961748aad2074a2ca64934c9f5 (patch)
treed7a4f3e1f7da40fece6bb7c165f7661f8078975c
parent68e6756b899d040b14062baaa1ae9ae0e14f3b02 (diff)
Let the headset test tools use 16 bit PCM for input and output
-rwxr-xr-xtest/hsmicro2
-rwxr-xr-xtest/hsplay2
-rw-r--r--test/hstest.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/test/hsmicro b/test/hsmicro
index 8aec68f2..c254226b 100755
--- a/test/hsmicro
+++ b/test/hsmicro
@@ -17,4 +17,4 @@ fi
BDADDR=$1
CHANNEL=$2
-$HSTEST record - $BDADDR $CHANNEL | $SOX -t raw -r 8000 -c 1 -s -b - -t ossdsp -r 44100 -c 2 -s -w /dev/dsp polyphase vol 5.0 2> /dev/null
+$HSTEST record - $BDADDR $CHANNEL | $SOX -t raw -r 8000 -c 1 -s -w - -t ossdsp -r 44100 -c 2 -s -w /dev/dsp polyphase vol 5.0 2> /dev/null
diff --git a/test/hsplay b/test/hsplay
index 8a676459..5f53562b 100755
--- a/test/hsplay
+++ b/test/hsplay
@@ -19,4 +19,4 @@ FILE=$1
BDADDR=$2
CHANNEL=$3
-$MPG123 -q -s "$FILE" | $SOX -t raw -r 44100 -c 2 -s -w - -t raw -r 8000 -c 1 -s -b - | $HSTEST play - $BDADDR $CHANNEL
+$MPG123 -q -s "$FILE" | $SOX -t raw -r 44100 -c 2 -s -w - -t raw -r 8000 -c 1 -s -w - | $HSTEST play - $BDADDR $CHANNEL
diff --git a/test/hstest.c b/test/hstest.c
index 8b47a10a..23bbf089 100644
--- a/test/hstest.c
+++ b/test/hstest.c
@@ -189,8 +189,8 @@ int main(int argc, char *argv[])
vs = htobs(vs);
fprintf(stderr, "Voice setting: 0x%04x\n", vs);
close(dd);
- if (vs != 0x0040) {
- fprintf(stderr, "The voice setting must be 0x0040\n");
+ if (vs != 0x0060) {
+ fprintf(stderr, "The voice setting must be 0x0060\n");
return -1;
}