alsaaudio.c (2700efa3236d20879473d6b9c612f882a1b43dda) | alsaaudio.c (1dd3e4d13d0d59de61de518c9e504cb444782510) |
---|---|
1/* 2 * QEMU ALSA audio driver 3 * 4 * Copyright (c) 2005 Vassili Karpov (malc) 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 969 unchanged lines hidden (view full) --- 978 {.name = "VERBOSE", 979 .tag = AUD_OPT_BOOL, 980 .valp = &conf.verbose, 981 .descr = "Behave in a more verbose way"}, 982 { /* End of list */ } 983}; 984 985static struct audio_pcm_ops alsa_pcm_ops = { | 1/* 2 * QEMU ALSA audio driver 3 * 4 * Copyright (c) 2005 Vassili Karpov (malc) 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 969 unchanged lines hidden (view full) --- 978 {.name = "VERBOSE", 979 .tag = AUD_OPT_BOOL, 980 .valp = &conf.verbose, 981 .descr = "Behave in a more verbose way"}, 982 { /* End of list */ } 983}; 984 985static struct audio_pcm_ops alsa_pcm_ops = { |
986 alsa_init_out, 987 alsa_fini_out, 988 alsa_run_out, 989 alsa_write, 990 alsa_ctl_out, | 986 .init_out = alsa_init_out, 987 .fini_out = alsa_fini_out, 988 .run_out = alsa_run_out, 989 .write = alsa_write, 990 .ctl_out = alsa_ctl_out, |
991 | 991 |
992 alsa_init_in, 993 alsa_fini_in, 994 alsa_run_in, 995 alsa_read, 996 alsa_ctl_in | 992 .init_in = alsa_init_in, 993 .fini_in = alsa_fini_in, 994 .run_in = alsa_run_in, 995 .read = alsa_read, 996 .ctl_in = alsa_ctl_in |
997}; 998 999struct audio_driver alsa_audio_driver = { 1000 .name = "alsa", 1001 .descr = "ALSA http://www.alsa-project.org", 1002 .options = alsa_options, 1003 .init = alsa_audio_init, 1004 .fini = alsa_audio_fini, 1005 .pcm_ops = &alsa_pcm_ops, 1006 .can_be_default = 1, 1007 .max_voices_out = INT_MAX, 1008 .max_voices_in = INT_MAX, 1009 .voice_size_out = sizeof (ALSAVoiceOut), 1010 .voice_size_in = sizeof (ALSAVoiceIn) 1011}; | 997}; 998 999struct audio_driver alsa_audio_driver = { 1000 .name = "alsa", 1001 .descr = "ALSA http://www.alsa-project.org", 1002 .options = alsa_options, 1003 .init = alsa_audio_init, 1004 .fini = alsa_audio_fini, 1005 .pcm_ops = &alsa_pcm_ops, 1006 .can_be_default = 1, 1007 .max_voices_out = INT_MAX, 1008 .max_voices_in = INT_MAX, 1009 .voice_size_out = sizeof (ALSAVoiceOut), 1010 .voice_size_in = sizeof (ALSAVoiceIn) 1011}; |