use C99 initializers for audio_pcm_ops

Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
Juan Quintela 2009-08-11 02:31:15 +02:00 committed by malc
parent 2700efa323
commit 1dd3e4d13d
10 changed files with 86 additions and 103 deletions

View File

@ -983,17 +983,17 @@ static struct audio_option alsa_options[] = {
}; };
static struct audio_pcm_ops alsa_pcm_ops = { static struct audio_pcm_ops alsa_pcm_ops = {
alsa_init_out, .init_out = alsa_init_out,
alsa_fini_out, .fini_out = alsa_fini_out,
alsa_run_out, .run_out = alsa_run_out,
alsa_write, .write = alsa_write,
alsa_ctl_out, .ctl_out = alsa_ctl_out,
alsa_init_in, .init_in = alsa_init_in,
alsa_fini_in, .fini_in = alsa_fini_in,
alsa_run_in, .run_in = alsa_run_in,
alsa_read, .read = alsa_read,
alsa_ctl_in .ctl_in = alsa_ctl_in
}; };
struct audio_driver alsa_audio_driver = { struct audio_driver alsa_audio_driver = {

View File

@ -525,17 +525,11 @@ static struct audio_option coreaudio_options[] = {
}; };
static struct audio_pcm_ops coreaudio_pcm_ops = { static struct audio_pcm_ops coreaudio_pcm_ops = {
coreaudio_init_out, .init_out = coreaudio_init_out,
coreaudio_fini_out, .fini_out = coreaudio_fini_out,
coreaudio_run_out, .run_out = coreaudio_run_out,
coreaudio_write, .write = coreaudio_write,
coreaudio_ctl_out, .ctl_out = coreaudio_ctl_out
NULL,
NULL,
NULL,
NULL,
NULL
}; };
struct audio_driver coreaudio_audio_driver = { struct audio_driver coreaudio_audio_driver = {

View File

@ -1079,17 +1079,17 @@ static struct audio_option dsound_options[] = {
}; };
static struct audio_pcm_ops dsound_pcm_ops = { static struct audio_pcm_ops dsound_pcm_ops = {
dsound_init_out, .init_out = dsound_init_out,
dsound_fini_out, .fini_out = dsound_fini_out,
dsound_run_out, .run_out = dsound_run_out,
dsound_write, .write = dsound_write,
dsound_ctl_out, .ctl_out = dsound_ctl_out,
dsound_init_in, .init_in = dsound_init_in,
dsound_fini_in, .fini_in = dsound_fini_in,
dsound_run_in, .run_in = dsound_run_in,
dsound_read, .read = dsound_read,
dsound_ctl_in .ctl_in = dsound_ctl_in
}; };
struct audio_driver dsound_audio_driver = { struct audio_driver dsound_audio_driver = {

View File

@ -571,17 +571,17 @@ struct audio_option qesd_options[] = {
}; };
static struct audio_pcm_ops qesd_pcm_ops = { static struct audio_pcm_ops qesd_pcm_ops = {
qesd_init_out, .init_out = qesd_init_out,
qesd_fini_out, .fini_out = qesd_fini_out,
qesd_run_out, .run_out = qesd_run_out,
qesd_write, .write = qesd_write,
qesd_ctl_out, .ctl_out = qesd_ctl_out,
qesd_init_in, .init_in = qesd_init_in,
qesd_fini_in, .fini_in = qesd_fini_in,
qesd_run_in, .run_in = qesd_run_in,
qesd_read, .read = qesd_read,
qesd_ctl_in, .ctl_in = qesd_ctl_in,
}; };
struct audio_driver esd_audio_driver = { struct audio_driver esd_audio_driver = {

View File

@ -669,17 +669,17 @@ static struct audio_option fmod_options[] = {
}; };
static struct audio_pcm_ops fmod_pcm_ops = { static struct audio_pcm_ops fmod_pcm_ops = {
fmod_init_out, .init_out = fmod_init_out,
fmod_fini_out, .fini_out = fmod_fini_out,
fmod_run_out, .run_out = fmod_run_out,
fmod_write, .write = fmod_write,
fmod_ctl_out, .ctl_out = fmod_ctl_out,
fmod_init_in, .init_in = fmod_init_in,
fmod_fini_in, .fini_in = fmod_fini_in,
fmod_run_in, .run_in = fmod_run_in,
fmod_read, .read = fmod_read,
fmod_ctl_in .ctl_in = fmod_ctl_in
}; };
struct audio_driver fmod_audio_driver = { struct audio_driver fmod_audio_driver = {

View File

@ -146,17 +146,17 @@ static void no_audio_fini (void *opaque)
} }
static struct audio_pcm_ops no_pcm_ops = { static struct audio_pcm_ops no_pcm_ops = {
no_init_out, .init_out = no_init_out,
no_fini_out, .fini_out = no_fini_out,
no_run_out, .run_out = no_run_out,
no_write, .write = no_write,
no_ctl_out, .ctl_out = no_ctl_out,
no_init_in, .init_in = no_init_in,
no_fini_in, .fini_in = no_fini_in,
no_run_in, .run_in = no_run_in,
no_read, .read = no_read,
no_ctl_in .ctl_in = no_ctl_in
}; };
struct audio_driver no_audio_driver = { struct audio_driver no_audio_driver = {

View File

@ -764,17 +764,17 @@ static struct audio_option oss_options[] = {
}; };
static struct audio_pcm_ops oss_pcm_ops = { static struct audio_pcm_ops oss_pcm_ops = {
oss_init_out, .init_out = oss_init_out,
oss_fini_out, .fini_out = oss_fini_out,
oss_run_out, .run_out = oss_run_out,
oss_write, .write = oss_write,
oss_ctl_out, .ctl_out = oss_ctl_out,
oss_init_in, .init_in = oss_init_in,
oss_fini_in, .fini_in = oss_fini_in,
oss_run_in, .run_in = oss_run_in,
oss_read, .read = oss_read,
oss_ctl_in .ctl_in = oss_ctl_in
}; };
struct audio_driver oss_audio_driver = { struct audio_driver oss_audio_driver = {

View File

@ -493,16 +493,17 @@ struct audio_option qpa_options[] = {
}; };
static struct audio_pcm_ops qpa_pcm_ops = { static struct audio_pcm_ops qpa_pcm_ops = {
qpa_init_out, .init_out = qpa_init_out,
qpa_fini_out, .fini_out = qpa_fini_out,
qpa_run_out, .run_out = qpa_run_out,
qpa_write, .write = qpa_write,
qpa_ctl_out, .ctl_out = qpa_ctl_out,
qpa_init_in,
qpa_fini_in, .init_in = qpa_init_in,
qpa_run_in, .fini_in = qpa_fini_in,
qpa_read, .run_in = qpa_run_in,
qpa_ctl_in .read = qpa_read,
.ctl_in = qpa_ctl_in
}; };
struct audio_driver pa_audio_driver = { struct audio_driver pa_audio_driver = {

View File

@ -428,17 +428,11 @@ static struct audio_option sdl_options[] = {
}; };
static struct audio_pcm_ops sdl_pcm_ops = { static struct audio_pcm_ops sdl_pcm_ops = {
sdl_init_out, .init_out = sdl_init_out,
sdl_fini_out, .fini_out = sdl_fini_out,
sdl_run_out, .run_out = sdl_run_out,
sdl_write_out, .write = sdl_write_out,
sdl_ctl_out, .ctl_out = sdl_ctl_out,
NULL,
NULL,
NULL,
NULL,
NULL
}; };
struct audio_driver sdl_audio_driver = { struct audio_driver sdl_audio_driver = {

View File

@ -239,17 +239,11 @@ static struct audio_option wav_options[] = {
}; };
static struct audio_pcm_ops wav_pcm_ops = { static struct audio_pcm_ops wav_pcm_ops = {
wav_init_out, .init_out = wav_init_out,
wav_fini_out, .fini_out = wav_fini_out,
wav_run_out, .run_out = wav_run_out,
wav_write_out, .write = wav_write_out,
wav_ctl_out, .ctl_out = wav_ctl_out,
NULL,
NULL,
NULL,
NULL,
NULL
}; };
struct audio_driver wav_audio_driver = { struct audio_driver wav_audio_driver = {