From 98b83096561b4c5b56ca977e4bfe0f9ba5184c6f Mon Sep 17 00:00:00 2001 From: Tianyu Gao Date: Fri, 3 May 2019 09:53:15 +0000 Subject: [PATCH] add ioctl to audio hello --- biscuit/c/audio_hello.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/biscuit/c/audio_hello.c b/biscuit/c/audio_hello.c index 236338d..e738c7c 100644 --- a/biscuit/c/audio_hello.c +++ b/biscuit/c/audio_hello.c @@ -8910,7 +8910,10 @@ int main(int argc, char **argv) printf("fail to open /dev/dsp"); return 1; } + ioctl(fd_dsp, 0, NULL); write(fd_dsp, sound, sizeof(sound)); + ioctl(fd_dsp, 1, NULL); + printf("finish writing %d\n", sizeof(sound)); return 0; }