test: fixes in avsys-audio-test
authorJanos Kovacs <jankovac503@gmail.com>
Mon, 27 Aug 2012 23:26:20 +0000 (02:26 +0300)
committerJaska Uimonen <jaska.uimonen@helsinki.fi>
Wed, 7 Nov 2012 12:58:55 +0000 (14:58 +0200)
audiotest/avsys-audio-test.c

index c1ecdd9..0f7dd98 100644 (file)
@@ -125,7 +125,7 @@ int _playback(int mode, int routing, int voltyp, char *filename)
        if (!filename)
                return -1;
 
-       memset(&param, sizeof(avsys_audio_param_t), '\0');
+       memset(&param, '\0', sizeof(avsys_audio_param_t));
 
        if (__make_param(OP_PLAYBACK, mode, routing, voltyp, &param)) {
                printf("Can not make audio parameter\n");
@@ -184,7 +184,7 @@ int _capture(int mode, int routing, int voltyp, char *filename)
 
        printf("[%s] real filename :%s\n", __func__, namebuffer);
 
-       memset(&param, sizeof(avsys_audio_param_t), '\0');
+       memset(&param, '\0', sizeof(avsys_audio_param_t));
 
        if (__make_param(OP_CAPTURE, mode, routing, voltyp, &param)) {
                printf("Can not make audio parameter\n");