aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Wilson2011-10-13 15:57:25 -0500
committerSimon Wilson2011-10-14 11:39:00 -0500
commite9942c8b1fab1cea4836b5af2dd59a1bf0ad411d (patch)
tree038f26884056835eff415093b37a7bf773bc2b27 /tinyplay.c
parent621047309242d04a6186230e7a337de8642ec754 (diff)
downloadplatform-external-tinyalsa-e9942c8b1fab1cea4836b5af2dd59a1bf0ad411d.tar.gz
platform-external-tinyalsa-e9942c8b1fab1cea4836b5af2dd59a1bf0ad411d.tar.xz
platform-external-tinyalsa-e9942c8b1fab1cea4836b5af2dd59a1bf0ad411d.zip
Update to latest tinyalsa
6be28f1 pcm: add mmap playback and no periodic IRQ support. fa0697e tinyplay: fix segfault caused by missing device argument Change-Id: I22cf8f01eba21e42b4fa43cc5fd9edd2826f44fa
Diffstat (limited to 'tinyplay.c')
-rw-r--r--tinyplay.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tinyplay.c b/tinyplay.c
index f52d76a..915a1ea 100644
--- a/tinyplay.c
+++ b/tinyplay.c
@@ -76,9 +76,12 @@ int main(int argc, char **argv)
76 76
77 /* parse command line arguments */ 77 /* parse command line arguments */
78 argv += 2; 78 argv += 2;
79 if (strcmp(*argv, "-d") == 0) { 79 while (*argv) {
80 if (strcmp(*argv, "-d") == 0) {
81 argv++;
82 device = atoi(*argv);
83 }
80 argv++; 84 argv++;
81 device = atoi(*argv);
82 } 85 }
83 86
84 fread(&header, sizeof(struct wav_header), 1, file); 87 fread(&header, sizeof(struct wav_header), 1, file);