fixes by Art Haas <ahaas@airmail.net>:

rewritten with C99 struct initialization style.
This commit is contained in:
Takashi Iwai 2003-07-25 17:02:00 +00:00
parent c18c32b26c
commit 7716fd1e3d
33 changed files with 762 additions and 762 deletions

View file

@ -600,41 +600,41 @@ static void snd_pcm_jack_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_jack_ops = {
close: snd_pcm_jack_close,
info: snd_pcm_jack_info,
hw_refine: snd_pcm_jack_hw_refine,
hw_params: snd_pcm_jack_hw_params,
hw_free: snd_pcm_jack_hw_free,
sw_params: snd_pcm_jack_sw_params,
channel_info: snd_pcm_jack_channel_info,
dump: snd_pcm_jack_dump,
nonblock: snd_pcm_jack_nonblock,
async: snd_pcm_jack_async,
poll_revents: snd_pcm_jack_poll_revents,
mmap: snd_pcm_jack_mmap,
munmap: snd_pcm_jack_munmap,
.close = snd_pcm_jack_close,
.info = snd_pcm_jack_info,
.hw_refine = snd_pcm_jack_hw_refine,
.hw_params = snd_pcm_jack_hw_params,
.hw_free = snd_pcm_jack_hw_free,
.sw_params = snd_pcm_jack_sw_params,
.channel_info = snd_pcm_jack_channel_info,
.dump = snd_pcm_jack_dump,
.nonblock = snd_pcm_jack_nonblock,
.async = snd_pcm_jack_async,
.poll_revents = snd_pcm_jack_poll_revents,
.mmap = snd_pcm_jack_mmap,
.munmap = snd_pcm_jack_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_jack_fast_ops = {
status: snd_pcm_jack_status,
state: snd_pcm_jack_state,
hwsync: snd_pcm_jack_hwsync,
delay: snd_pcm_jack_delay,
prepare: snd_pcm_jack_prepare,
reset: snd_pcm_jack_reset,
start: snd_pcm_jack_start,
drop: snd_pcm_jack_drop,
drain: snd_pcm_jack_drain,
pause: snd_pcm_jack_pause,
rewind: snd_pcm_jack_rewind,
forward: snd_pcm_jack_forward,
resume: snd_pcm_jack_resume,
writei: snd_pcm_mmap_writei,
writen: snd_pcm_mmap_writen,
readi: snd_pcm_mmap_readi,
readn: snd_pcm_mmap_readn,
avail_update: snd_pcm_jack_avail_update,
mmap_commit: snd_pcm_jack_mmap_commit,
.status = snd_pcm_jack_status,
.state = snd_pcm_jack_state,
.hwsync = snd_pcm_jack_hwsync,
.delay = snd_pcm_jack_delay,
.prepare = snd_pcm_jack_prepare,
.reset = snd_pcm_jack_reset,
.start = snd_pcm_jack_start,
.drop = snd_pcm_jack_drop,
.drain = snd_pcm_jack_drain,
.pause = snd_pcm_jack_pause,
.rewind = snd_pcm_jack_rewind,
.forward = snd_pcm_jack_forward,
.resume = snd_pcm_jack_resume,
.writei = snd_pcm_mmap_writei,
.writen = snd_pcm_mmap_writen,
.readi = snd_pcm_mmap_readi,
.readn = snd_pcm_mmap_readn,
.avail_update = snd_pcm_jack_avail_update,
.mmap_commit = snd_pcm_jack_mmap_commit,
};
static int parse_ports(snd_config_t *conf,char*** ret_ports,int *ret_n)

View file

@ -517,19 +517,19 @@ static void snd_pcm_adpcm_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_adpcm_ops = {
close: snd_pcm_plugin_close,
info: snd_pcm_plugin_info,
hw_refine: snd_pcm_adpcm_hw_refine,
hw_params: snd_pcm_adpcm_hw_params,
hw_free: snd_pcm_adpcm_hw_free,
sw_params: snd_pcm_plugin_sw_params,
channel_info: snd_pcm_plugin_channel_info,
dump: snd_pcm_adpcm_dump,
nonblock: snd_pcm_plugin_nonblock,
async: snd_pcm_plugin_async,
poll_revents: snd_pcm_plugin_poll_revents,
mmap: snd_pcm_plugin_mmap,
munmap: snd_pcm_plugin_munmap,
.close = snd_pcm_plugin_close,
.info = snd_pcm_plugin_info,
.hw_refine = snd_pcm_adpcm_hw_refine,
.hw_params = snd_pcm_adpcm_hw_params,
.hw_free = snd_pcm_adpcm_hw_free,
.sw_params = snd_pcm_plugin_sw_params,
.channel_info = snd_pcm_plugin_channel_info,
.dump = snd_pcm_adpcm_dump,
.nonblock = snd_pcm_plugin_nonblock,
.async = snd_pcm_plugin_async,
.poll_revents = snd_pcm_plugin_poll_revents,
.mmap = snd_pcm_plugin_mmap,
.munmap = snd_pcm_plugin_munmap,
};
/**

View file

@ -390,19 +390,19 @@ static void snd_pcm_alaw_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_alaw_ops = {
close: snd_pcm_plugin_close,
info: snd_pcm_plugin_info,
hw_refine: snd_pcm_alaw_hw_refine,
hw_params: snd_pcm_alaw_hw_params,
hw_free: snd_pcm_plugin_hw_free,
sw_params: snd_pcm_plugin_sw_params,
channel_info: snd_pcm_plugin_channel_info,
dump: snd_pcm_alaw_dump,
nonblock: snd_pcm_plugin_nonblock,
async: snd_pcm_plugin_async,
poll_revents: snd_pcm_plugin_poll_revents,
mmap: snd_pcm_plugin_mmap,
munmap: snd_pcm_plugin_munmap,
.close = snd_pcm_plugin_close,
.info = snd_pcm_plugin_info,
.hw_refine = snd_pcm_alaw_hw_refine,
.hw_params = snd_pcm_alaw_hw_params,
.hw_free = snd_pcm_plugin_hw_free,
.sw_params = snd_pcm_plugin_sw_params,
.channel_info = snd_pcm_plugin_channel_info,
.dump = snd_pcm_alaw_dump,
.nonblock = snd_pcm_plugin_nonblock,
.async = snd_pcm_plugin_async,
.poll_revents = snd_pcm_plugin_poll_revents,
.mmap = snd_pcm_plugin_mmap,
.munmap = snd_pcm_plugin_munmap,
};
/**

View file

@ -153,19 +153,19 @@ static void snd_pcm_copy_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_copy_ops = {
close: snd_pcm_plugin_close,
info: snd_pcm_plugin_info,
hw_refine: snd_pcm_copy_hw_refine,
hw_params: snd_pcm_copy_hw_params,
hw_free: snd_pcm_plugin_hw_free,
sw_params: snd_pcm_plugin_sw_params,
channel_info: snd_pcm_plugin_channel_info,
dump: snd_pcm_copy_dump,
nonblock: snd_pcm_plugin_nonblock,
async: snd_pcm_plugin_async,
poll_revents: snd_pcm_plugin_poll_revents,
mmap: snd_pcm_plugin_mmap,
munmap: snd_pcm_plugin_munmap,
.close = snd_pcm_plugin_close,
.info = snd_pcm_plugin_info,
.hw_refine = snd_pcm_copy_hw_refine,
.hw_params = snd_pcm_copy_hw_params,
.hw_free = snd_pcm_plugin_hw_free,
.sw_params = snd_pcm_plugin_sw_params,
.channel_info = snd_pcm_plugin_channel_info,
.dump = snd_pcm_copy_dump,
.nonblock = snd_pcm_plugin_nonblock,
.async = snd_pcm_plugin_async,
.poll_revents = snd_pcm_plugin_poll_revents,
.mmap = snd_pcm_plugin_mmap,
.munmap = snd_pcm_plugin_munmap,
};
/**

View file

@ -832,41 +832,41 @@ static void snd_pcm_dmix_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_dmix_ops = {
close: snd_pcm_dmix_close,
info: snd_pcm_dmix_info,
hw_refine: snd_pcm_dmix_hw_refine,
hw_params: snd_pcm_dmix_hw_params,
hw_free: snd_pcm_dmix_hw_free,
sw_params: snd_pcm_dmix_sw_params,
channel_info: snd_pcm_dmix_channel_info,
dump: snd_pcm_dmix_dump,
nonblock: snd_pcm_dmix_nonblock,
async: snd_pcm_dmix_async,
poll_revents: snd_pcm_dmix_poll_revents,
mmap: snd_pcm_dmix_mmap,
munmap: snd_pcm_dmix_munmap,
.close = snd_pcm_dmix_close,
.info = snd_pcm_dmix_info,
.hw_refine = snd_pcm_dmix_hw_refine,
.hw_params = snd_pcm_dmix_hw_params,
.hw_free = snd_pcm_dmix_hw_free,
.sw_params = snd_pcm_dmix_sw_params,
.channel_info = snd_pcm_dmix_channel_info,
.dump = snd_pcm_dmix_dump,
.nonblock = snd_pcm_dmix_nonblock,
.async = snd_pcm_dmix_async,
.poll_revents = snd_pcm_dmix_poll_revents,
.mmap = snd_pcm_dmix_mmap,
.munmap = snd_pcm_dmix_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_dmix_fast_ops = {
status: snd_pcm_dmix_status,
state: snd_pcm_dmix_state,
hwsync: snd_pcm_dmix_hwsync,
delay: snd_pcm_dmix_delay,
prepare: snd_pcm_dmix_prepare,
reset: snd_pcm_dmix_reset,
start: snd_pcm_dmix_start,
drop: snd_pcm_dmix_drop,
drain: snd_pcm_dmix_drain,
pause: snd_pcm_dmix_pause,
rewind: snd_pcm_dmix_rewind,
forward: snd_pcm_dmix_forward,
resume: snd_pcm_dmix_resume,
writei: snd_pcm_mmap_writei,
writen: snd_pcm_mmap_writen,
readi: snd_pcm_dmix_readi,
readn: snd_pcm_dmix_readn,
avail_update: snd_pcm_dmix_avail_update,
mmap_commit: snd_pcm_dmix_mmap_commit,
.status = snd_pcm_dmix_status,
.state = snd_pcm_dmix_state,
.hwsync = snd_pcm_dmix_hwsync,
.delay = snd_pcm_dmix_delay,
.prepare = snd_pcm_dmix_prepare,
.reset = snd_pcm_dmix_reset,
.start = snd_pcm_dmix_start,
.drop = snd_pcm_dmix_drop,
.drain = snd_pcm_dmix_drain,
.pause = snd_pcm_dmix_pause,
.rewind = snd_pcm_dmix_rewind,
.forward = snd_pcm_dmix_forward,
.resume = snd_pcm_dmix_resume,
.writei = snd_pcm_mmap_writei,
.writen = snd_pcm_mmap_writen,
.readi = snd_pcm_dmix_readi,
.readn = snd_pcm_dmix_readn,
.avail_update = snd_pcm_dmix_avail_update,
.mmap_commit = snd_pcm_dmix_mmap_commit,
};
/**

View file

@ -622,41 +622,41 @@ static void snd_pcm_dshare_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_dshare_ops = {
close: snd_pcm_dshare_close,
info: snd_pcm_dshare_info,
hw_refine: snd_pcm_dshare_hw_refine,
hw_params: snd_pcm_dshare_hw_params,
hw_free: snd_pcm_dshare_hw_free,
sw_params: snd_pcm_dshare_sw_params,
channel_info: snd_pcm_dshare_channel_info,
dump: snd_pcm_dshare_dump,
nonblock: snd_pcm_dshare_nonblock,
async: snd_pcm_dshare_async,
poll_revents: snd_pcm_dshare_poll_revents,
mmap: snd_pcm_dshare_mmap,
munmap: snd_pcm_dshare_munmap,
.close = snd_pcm_dshare_close,
.info = snd_pcm_dshare_info,
.hw_refine = snd_pcm_dshare_hw_refine,
.hw_params = snd_pcm_dshare_hw_params,
.hw_free = snd_pcm_dshare_hw_free,
.sw_params = snd_pcm_dshare_sw_params,
.channel_info = snd_pcm_dshare_channel_info,
.dump = snd_pcm_dshare_dump,
.nonblock = snd_pcm_dshare_nonblock,
.async = snd_pcm_dshare_async,
.poll_revents = snd_pcm_dshare_poll_revents,
.mmap = snd_pcm_dshare_mmap,
.munmap = snd_pcm_dshare_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_dshare_fast_ops = {
status: snd_pcm_dshare_status,
state: snd_pcm_dshare_state,
hwsync: snd_pcm_dshare_hwsync,
delay: snd_pcm_dshare_delay,
prepare: snd_pcm_dshare_prepare,
reset: snd_pcm_dshare_reset,
start: snd_pcm_dshare_start,
drop: snd_pcm_dshare_drop,
drain: snd_pcm_dshare_drain,
pause: snd_pcm_dshare_pause,
rewind: snd_pcm_dshare_rewind,
forward: snd_pcm_dshare_forward,
resume: snd_pcm_dshare_resume,
writei: snd_pcm_mmap_writei,
writen: snd_pcm_mmap_writen,
readi: snd_pcm_dshare_readi,
readn: snd_pcm_dshare_readn,
avail_update: snd_pcm_dshare_avail_update,
mmap_commit: snd_pcm_dshare_mmap_commit,
.status = snd_pcm_dshare_status,
.state = snd_pcm_dshare_state,
.hwsync = snd_pcm_dshare_hwsync,
.delay = snd_pcm_dshare_delay,
.prepare = snd_pcm_dshare_prepare,
.reset = snd_pcm_dshare_reset,
.start = snd_pcm_dshare_start,
.drop = snd_pcm_dshare_drop,
.drain = snd_pcm_dshare_drain,
.pause = snd_pcm_dshare_pause,
.rewind = snd_pcm_dshare_rewind,
.forward = snd_pcm_dshare_forward,
.resume = snd_pcm_dshare_resume,
.writei = snd_pcm_mmap_writei,
.writen = snd_pcm_mmap_writen,
.readi = snd_pcm_dshare_readi,
.readn = snd_pcm_dshare_readn,
.avail_update = snd_pcm_dshare_avail_update,
.mmap_commit = snd_pcm_dshare_mmap_commit,
};
/**

View file

@ -590,41 +590,41 @@ static void snd_pcm_dsnoop_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_dsnoop_ops = {
close: snd_pcm_dsnoop_close,
info: snd_pcm_dsnoop_info,
hw_refine: snd_pcm_dsnoop_hw_refine,
hw_params: snd_pcm_dsnoop_hw_params,
hw_free: snd_pcm_dsnoop_hw_free,
sw_params: snd_pcm_dsnoop_sw_params,
channel_info: snd_pcm_dsnoop_channel_info,
dump: snd_pcm_dsnoop_dump,
nonblock: snd_pcm_dsnoop_nonblock,
async: snd_pcm_dsnoop_async,
poll_revents: snd_pcm_dsnoop_poll_revents,
mmap: snd_pcm_dsnoop_mmap,
munmap: snd_pcm_dsnoop_munmap,
.close = snd_pcm_dsnoop_close,
.info = snd_pcm_dsnoop_info,
.hw_refine = snd_pcm_dsnoop_hw_refine,
.hw_params = snd_pcm_dsnoop_hw_params,
.hw_free = snd_pcm_dsnoop_hw_free,
.sw_params = snd_pcm_dsnoop_sw_params,
.channel_info = snd_pcm_dsnoop_channel_info,
.dump = snd_pcm_dsnoop_dump,
.nonblock = snd_pcm_dsnoop_nonblock,
.async = snd_pcm_dsnoop_async,
.poll_revents = snd_pcm_dsnoop_poll_revents,
.mmap = snd_pcm_dsnoop_mmap,
.munmap = snd_pcm_dsnoop_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_dsnoop_fast_ops = {
status: snd_pcm_dsnoop_status,
state: snd_pcm_dsnoop_state,
hwsync: snd_pcm_dsnoop_hwsync,
delay: snd_pcm_dsnoop_delay,
prepare: snd_pcm_dsnoop_prepare,
reset: snd_pcm_dsnoop_reset,
start: snd_pcm_dsnoop_start,
drop: snd_pcm_dsnoop_drop,
drain: snd_pcm_dsnoop_drain,
pause: snd_pcm_dsnoop_pause,
rewind: snd_pcm_dsnoop_rewind,
forward: snd_pcm_dsnoop_forward,
resume: snd_pcm_dsnoop_resume,
writei: snd_pcm_dsnoop_writei,
writen: snd_pcm_dsnoop_writen,
readi: snd_pcm_mmap_readi,
readn: snd_pcm_mmap_readn,
avail_update: snd_pcm_dsnoop_avail_update,
mmap_commit: snd_pcm_dsnoop_mmap_commit,
.status = snd_pcm_dsnoop_status,
.state = snd_pcm_dsnoop_state,
.hwsync = snd_pcm_dsnoop_hwsync,
.delay = snd_pcm_dsnoop_delay,
.prepare = snd_pcm_dsnoop_prepare,
.reset = snd_pcm_dsnoop_reset,
.start = snd_pcm_dsnoop_start,
.drop = snd_pcm_dsnoop_drop,
.drain = snd_pcm_dsnoop_drain,
.pause = snd_pcm_dsnoop_pause,
.rewind = snd_pcm_dsnoop_rewind,
.forward = snd_pcm_dsnoop_forward,
.resume = snd_pcm_dsnoop_resume,
.writei = snd_pcm_dsnoop_writei,
.writen = snd_pcm_dsnoop_writen,
.readi = snd_pcm_mmap_readi,
.readn = snd_pcm_mmap_readn,
.avail_update = snd_pcm_dsnoop_avail_update,
.mmap_commit = snd_pcm_dsnoop_mmap_commit,
};
/**

View file

@ -413,40 +413,40 @@ static void snd_pcm_file_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_file_ops = {
close: snd_pcm_file_close,
info: snd_pcm_file_info,
hw_refine: snd_pcm_file_hw_refine,
hw_params: snd_pcm_file_hw_params,
hw_free: snd_pcm_file_hw_free,
sw_params: snd_pcm_file_sw_params,
channel_info: snd_pcm_file_channel_info,
dump: snd_pcm_file_dump,
nonblock: snd_pcm_file_nonblock,
async: snd_pcm_file_async,
mmap: snd_pcm_file_mmap,
munmap: snd_pcm_file_munmap,
.close = snd_pcm_file_close,
.info = snd_pcm_file_info,
.hw_refine = snd_pcm_file_hw_refine,
.hw_params = snd_pcm_file_hw_params,
.hw_free = snd_pcm_file_hw_free,
.sw_params = snd_pcm_file_sw_params,
.channel_info = snd_pcm_file_channel_info,
.dump = snd_pcm_file_dump,
.nonblock = snd_pcm_file_nonblock,
.async = snd_pcm_file_async,
.mmap = snd_pcm_file_mmap,
.munmap = snd_pcm_file_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_file_fast_ops = {
status: snd_pcm_file_status,
state: snd_pcm_file_state,
hwsync: snd_pcm_file_hwsync,
delay: snd_pcm_file_delay,
prepare: snd_pcm_file_prepare,
reset: snd_pcm_file_reset,
start: snd_pcm_file_start,
drop: snd_pcm_file_drop,
drain: snd_pcm_file_drain,
pause: snd_pcm_file_pause,
rewind: snd_pcm_file_rewind,
forward: snd_pcm_file_forward,
resume: snd_pcm_file_resume,
writei: snd_pcm_file_writei,
writen: snd_pcm_file_writen,
readi: snd_pcm_file_readi,
readn: snd_pcm_file_readn,
avail_update: snd_pcm_file_avail_update,
mmap_commit: snd_pcm_file_mmap_commit,
.status = snd_pcm_file_status,
.state = snd_pcm_file_state,
.hwsync = snd_pcm_file_hwsync,
.delay = snd_pcm_file_delay,
.prepare = snd_pcm_file_prepare,
.reset = snd_pcm_file_reset,
.start = snd_pcm_file_start,
.drop = snd_pcm_file_drop,
.drain = snd_pcm_file_drain,
.pause = snd_pcm_file_pause,
.rewind = snd_pcm_file_rewind,
.forward = snd_pcm_file_forward,
.resume = snd_pcm_file_resume,
.writei = snd_pcm_file_writei,
.writen = snd_pcm_file_writen,
.readi = snd_pcm_file_readi,
.readn = snd_pcm_file_readn,
.avail_update = snd_pcm_file_avail_update,
.mmap_commit = snd_pcm_file_mmap_commit,
};
/**

View file

@ -287,40 +287,40 @@ static void snd_pcm_hooks_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_hooks_ops = {
close: snd_pcm_hooks_close,
info: snd_pcm_hooks_info,
hw_refine: snd_pcm_hooks_hw_refine,
hw_params: snd_pcm_hooks_hw_params,
hw_free: snd_pcm_hooks_hw_free,
sw_params: snd_pcm_hooks_sw_params,
channel_info: snd_pcm_hooks_channel_info,
dump: snd_pcm_hooks_dump,
nonblock: snd_pcm_hooks_nonblock,
async: snd_pcm_hooks_async,
mmap: snd_pcm_hooks_mmap,
munmap: snd_pcm_hooks_munmap,
.close = snd_pcm_hooks_close,
.info = snd_pcm_hooks_info,
.hw_refine = snd_pcm_hooks_hw_refine,
.hw_params = snd_pcm_hooks_hw_params,
.hw_free = snd_pcm_hooks_hw_free,
.sw_params = snd_pcm_hooks_sw_params,
.channel_info = snd_pcm_hooks_channel_info,
.dump = snd_pcm_hooks_dump,
.nonblock = snd_pcm_hooks_nonblock,
.async = snd_pcm_hooks_async,
.mmap = snd_pcm_hooks_mmap,
.munmap = snd_pcm_hooks_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_hooks_fast_ops = {
status: snd_pcm_hooks_status,
state: snd_pcm_hooks_state,
hwsync: snd_pcm_hooks_hwsync,
delay: snd_pcm_hooks_delay,
prepare: snd_pcm_hooks_prepare,
reset: snd_pcm_hooks_reset,
start: snd_pcm_hooks_start,
drop: snd_pcm_hooks_drop,
drain: snd_pcm_hooks_drain,
pause: snd_pcm_hooks_pause,
rewind: snd_pcm_hooks_rewind,
forward: snd_pcm_hooks_forward,
resume: snd_pcm_hooks_resume,
writei: snd_pcm_hooks_writei,
writen: snd_pcm_hooks_writen,
readi: snd_pcm_hooks_readi,
readn: snd_pcm_hooks_readn,
avail_update: snd_pcm_hooks_avail_update,
mmap_commit: snd_pcm_hooks_mmap_commit,
.status = snd_pcm_hooks_status,
.state = snd_pcm_hooks_state,
.hwsync = snd_pcm_hooks_hwsync,
.delay = snd_pcm_hooks_delay,
.prepare = snd_pcm_hooks_prepare,
.reset = snd_pcm_hooks_reset,
.start = snd_pcm_hooks_start,
.drop = snd_pcm_hooks_drop,
.drain = snd_pcm_hooks_drain,
.pause = snd_pcm_hooks_pause,
.rewind = snd_pcm_hooks_rewind,
.forward = snd_pcm_hooks_forward,
.resume = snd_pcm_hooks_resume,
.writei = snd_pcm_hooks_writei,
.writen = snd_pcm_hooks_writen,
.readi = snd_pcm_hooks_readi,
.readn = snd_pcm_hooks_readn,
.avail_update = snd_pcm_hooks_avail_update,
.mmap_commit = snd_pcm_hooks_mmap_commit,
};
/**

View file

@ -843,40 +843,40 @@ static void snd_pcm_hw_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_hw_ops = {
close: snd_pcm_hw_close,
info: snd_pcm_hw_info,
hw_refine: snd_pcm_hw_hw_refine,
hw_params: snd_pcm_hw_hw_params,
hw_free: snd_pcm_hw_hw_free,
sw_params: snd_pcm_hw_sw_params,
channel_info: snd_pcm_hw_channel_info,
dump: snd_pcm_hw_dump,
nonblock: snd_pcm_hw_nonblock,
async: snd_pcm_hw_async,
mmap: snd_pcm_hw_mmap,
munmap: snd_pcm_hw_munmap,
.close = snd_pcm_hw_close,
.info = snd_pcm_hw_info,
.hw_refine = snd_pcm_hw_hw_refine,
.hw_params = snd_pcm_hw_hw_params,
.hw_free = snd_pcm_hw_hw_free,
.sw_params = snd_pcm_hw_sw_params,
.channel_info = snd_pcm_hw_channel_info,
.dump = snd_pcm_hw_dump,
.nonblock = snd_pcm_hw_nonblock,
.async = snd_pcm_hw_async,
.mmap = snd_pcm_hw_mmap,
.munmap = snd_pcm_hw_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_hw_fast_ops = {
status: snd_pcm_hw_status,
state: snd_pcm_hw_state,
hwsync: snd_pcm_hw_hwsync,
delay: snd_pcm_hw_delay,
prepare: snd_pcm_hw_prepare,
reset: snd_pcm_hw_reset,
start: snd_pcm_hw_start,
drop: snd_pcm_hw_drop,
drain: snd_pcm_hw_drain,
pause: snd_pcm_hw_pause,
rewind: snd_pcm_hw_rewind,
forward: snd_pcm_hw_forward,
resume: snd_pcm_hw_resume,
writei: snd_pcm_hw_writei,
writen: snd_pcm_hw_writen,
readi: snd_pcm_hw_readi,
readn: snd_pcm_hw_readn,
avail_update: snd_pcm_hw_avail_update,
mmap_commit: snd_pcm_hw_mmap_commit,
.status = snd_pcm_hw_status,
.state = snd_pcm_hw_state,
.hwsync = snd_pcm_hw_hwsync,
.delay = snd_pcm_hw_delay,
.prepare = snd_pcm_hw_prepare,
.reset = snd_pcm_hw_reset,
.start = snd_pcm_hw_start,
.drop = snd_pcm_hw_drop,
.drain = snd_pcm_hw_drain,
.pause = snd_pcm_hw_pause,
.rewind = snd_pcm_hw_rewind,
.forward = snd_pcm_hw_forward,
.resume = snd_pcm_hw_resume,
.writei = snd_pcm_hw_writei,
.writen = snd_pcm_hw_writen,
.readi = snd_pcm_hw_readi,
.readn = snd_pcm_hw_readn,
.avail_update = snd_pcm_hw_avail_update,
.mmap_commit = snd_pcm_hw_mmap_commit,
};
/**

View file

@ -697,19 +697,19 @@ static void snd_pcm_ladspa_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_ladspa_ops = {
close: snd_pcm_ladspa_close,
info: snd_pcm_plugin_info,
hw_refine: snd_pcm_ladspa_hw_refine,
hw_params: snd_pcm_ladspa_hw_params,
hw_free: snd_pcm_ladspa_hw_free,
sw_params: snd_pcm_plugin_sw_params,
channel_info: snd_pcm_plugin_channel_info,
dump: snd_pcm_ladspa_dump,
nonblock: snd_pcm_plugin_nonblock,
async: snd_pcm_plugin_async,
poll_revents: snd_pcm_plugin_poll_revents,
mmap: snd_pcm_plugin_mmap,
munmap: snd_pcm_plugin_munmap,
.close = snd_pcm_ladspa_close,
.info = snd_pcm_plugin_info,
.hw_refine = snd_pcm_ladspa_hw_refine,
.hw_params = snd_pcm_ladspa_hw_params,
.hw_free = snd_pcm_ladspa_hw_free,
.sw_params = snd_pcm_plugin_sw_params,
.channel_info = snd_pcm_plugin_channel_info,
.dump = snd_pcm_ladspa_dump,
.nonblock = snd_pcm_plugin_nonblock,
.async = snd_pcm_plugin_async,
.poll_revents = snd_pcm_plugin_poll_revents,
.mmap = snd_pcm_plugin_mmap,
.munmap = snd_pcm_plugin_munmap,
};
static int snd_pcm_ladspa_check_file(snd_pcm_ladspa_plugin_t * const plugin,

View file

@ -350,19 +350,19 @@ static void snd_pcm_lfloat_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_lfloat_ops = {
close: snd_pcm_plugin_close,
info: snd_pcm_plugin_info,
hw_refine: snd_pcm_lfloat_hw_refine,
hw_params: snd_pcm_lfloat_hw_params,
hw_free: snd_pcm_plugin_hw_free,
sw_params: snd_pcm_plugin_sw_params,
channel_info: snd_pcm_plugin_channel_info,
dump: snd_pcm_lfloat_dump,
nonblock: snd_pcm_plugin_nonblock,
async: snd_pcm_plugin_async,
poll_revents: snd_pcm_plugin_poll_revents,
mmap: snd_pcm_plugin_mmap,
munmap: snd_pcm_plugin_munmap,
.close = snd_pcm_plugin_close,
.info = snd_pcm_plugin_info,
.hw_refine = snd_pcm_lfloat_hw_refine,
.hw_params = snd_pcm_lfloat_hw_params,
.hw_free = snd_pcm_plugin_hw_free,
.sw_params = snd_pcm_plugin_sw_params,
.channel_info = snd_pcm_plugin_channel_info,
.dump = snd_pcm_lfloat_dump,
.nonblock = snd_pcm_plugin_nonblock,
.async = snd_pcm_plugin_async,
.poll_revents = snd_pcm_plugin_poll_revents,
.mmap = snd_pcm_plugin_mmap,
.munmap = snd_pcm_plugin_munmap,
};
/**

View file

@ -406,19 +406,19 @@ static void snd_pcm_linear_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_linear_ops = {
close: snd_pcm_plugin_close,
info: snd_pcm_plugin_info,
hw_refine: snd_pcm_linear_hw_refine,
hw_params: snd_pcm_linear_hw_params,
hw_free: snd_pcm_plugin_hw_free,
sw_params: snd_pcm_plugin_sw_params,
channel_info: snd_pcm_plugin_channel_info,
dump: snd_pcm_linear_dump,
nonblock: snd_pcm_plugin_nonblock,
async: snd_pcm_plugin_async,
poll_revents: snd_pcm_plugin_poll_revents,
mmap: snd_pcm_plugin_mmap,
munmap: snd_pcm_plugin_munmap,
.close = snd_pcm_plugin_close,
.info = snd_pcm_plugin_info,
.hw_refine = snd_pcm_linear_hw_refine,
.hw_params = snd_pcm_linear_hw_params,
.hw_free = snd_pcm_plugin_hw_free,
.sw_params = snd_pcm_plugin_sw_params,
.channel_info = snd_pcm_plugin_channel_info,
.dump = snd_pcm_linear_dump,
.nonblock = snd_pcm_plugin_nonblock,
.async = snd_pcm_plugin_async,
.poll_revents = snd_pcm_plugin_poll_revents,
.mmap = snd_pcm_plugin_mmap,
.munmap = snd_pcm_plugin_munmap,
};

View file

@ -591,40 +591,40 @@ static void snd_pcm_meter_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_meter_ops = {
close: snd_pcm_meter_close,
info: snd_pcm_meter_info,
hw_refine: snd_pcm_meter_hw_refine,
hw_params: snd_pcm_meter_hw_params,
hw_free: snd_pcm_meter_hw_free,
sw_params: snd_pcm_meter_sw_params,
channel_info: snd_pcm_meter_channel_info,
dump: snd_pcm_meter_dump,
nonblock: snd_pcm_meter_nonblock,
async: snd_pcm_meter_async,
mmap: snd_pcm_meter_mmap,
munmap: snd_pcm_meter_munmap,
.close = snd_pcm_meter_close,
.info = snd_pcm_meter_info,
.hw_refine = snd_pcm_meter_hw_refine,
.hw_params = snd_pcm_meter_hw_params,
.hw_free = snd_pcm_meter_hw_free,
.sw_params = snd_pcm_meter_sw_params,
.channel_info = snd_pcm_meter_channel_info,
.dump = snd_pcm_meter_dump,
.nonblock = snd_pcm_meter_nonblock,
.async = snd_pcm_meter_async,
.mmap = snd_pcm_meter_mmap,
.munmap = snd_pcm_meter_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_meter_fast_ops = {
status: snd_pcm_meter_status,
state: snd_pcm_meter_state,
hwsync: snd_pcm_meter_hwsync,
delay: snd_pcm_meter_delay,
prepare: snd_pcm_meter_prepare,
reset: snd_pcm_meter_reset,
start: snd_pcm_meter_start,
drop: snd_pcm_meter_drop,
drain: snd_pcm_meter_drain,
pause: snd_pcm_meter_pause,
rewind: snd_pcm_meter_rewind,
forward: snd_pcm_meter_forward,
resume: snd_pcm_meter_resume,
writei: snd_pcm_mmap_writei,
writen: snd_pcm_mmap_writen,
readi: snd_pcm_mmap_readi,
readn: snd_pcm_mmap_readn,
avail_update: snd_pcm_meter_avail_update,
mmap_commit: snd_pcm_meter_mmap_commit,
.status = snd_pcm_meter_status,
.state = snd_pcm_meter_state,
.hwsync = snd_pcm_meter_hwsync,
.delay = snd_pcm_meter_delay,
.prepare = snd_pcm_meter_prepare,
.reset = snd_pcm_meter_reset,
.start = snd_pcm_meter_start,
.drop = snd_pcm_meter_drop,
.drain = snd_pcm_meter_drain,
.pause = snd_pcm_meter_pause,
.rewind = snd_pcm_meter_rewind,
.forward = snd_pcm_meter_forward,
.resume = snd_pcm_meter_resume,
.writei = snd_pcm_mmap_writei,
.writen = snd_pcm_mmap_writen,
.readi = snd_pcm_mmap_readi,
.readn = snd_pcm_mmap_readn,
.avail_update = snd_pcm_meter_avail_update,
.mmap_commit = snd_pcm_meter_mmap_commit,
};
/**
@ -1220,13 +1220,13 @@ static void s16_reset(snd_pcm_scope_t *scope)
}
snd_pcm_scope_ops_t s16_ops = {
enable: s16_enable,
disable: s16_disable,
close: s16_close,
start: s16_start,
stop: s16_stop,
update: s16_update,
reset: s16_reset,
.enable = s16_enable,
.disable = s16_disable,
.close = s16_close,
.start = s16_start,
.stop = s16_stop,
.update = s16_update,
.reset = s16_reset,
};
#endif

View file

@ -405,19 +405,19 @@ static void snd_pcm_mulaw_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_mulaw_ops = {
close: snd_pcm_plugin_close,
info: snd_pcm_plugin_info,
hw_refine: snd_pcm_mulaw_hw_refine,
hw_params: snd_pcm_mulaw_hw_params,
hw_free: snd_pcm_plugin_hw_free,
sw_params: snd_pcm_plugin_sw_params,
channel_info: snd_pcm_plugin_channel_info,
dump: snd_pcm_mulaw_dump,
nonblock: snd_pcm_plugin_nonblock,
async: snd_pcm_plugin_async,
poll_revents: snd_pcm_plugin_poll_revents,
mmap: snd_pcm_plugin_mmap,
munmap: snd_pcm_plugin_munmap,
.close = snd_pcm_plugin_close,
.info = snd_pcm_plugin_info,
.hw_refine = snd_pcm_mulaw_hw_refine,
.hw_params = snd_pcm_mulaw_hw_params,
.hw_free = snd_pcm_plugin_hw_free,
.sw_params = snd_pcm_plugin_sw_params,
.channel_info = snd_pcm_plugin_channel_info,
.dump = snd_pcm_mulaw_dump,
.nonblock = snd_pcm_plugin_nonblock,
.async = snd_pcm_plugin_async,
.poll_revents = snd_pcm_plugin_poll_revents,
.mmap = snd_pcm_plugin_mmap,
.munmap = snd_pcm_plugin_munmap,
};
/**

View file

@ -614,40 +614,40 @@ static void snd_pcm_multi_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_multi_ops = {
close: snd_pcm_multi_close,
info: snd_pcm_multi_info,
hw_refine: snd_pcm_multi_hw_refine,
hw_params: snd_pcm_multi_hw_params,
hw_free: snd_pcm_multi_hw_free,
sw_params: snd_pcm_multi_sw_params,
channel_info: snd_pcm_multi_channel_info,
dump: snd_pcm_multi_dump,
nonblock: snd_pcm_multi_nonblock,
async: snd_pcm_multi_async,
mmap: snd_pcm_multi_mmap,
munmap: snd_pcm_multi_munmap,
.close = snd_pcm_multi_close,
.info = snd_pcm_multi_info,
.hw_refine = snd_pcm_multi_hw_refine,
.hw_params = snd_pcm_multi_hw_params,
.hw_free = snd_pcm_multi_hw_free,
.sw_params = snd_pcm_multi_sw_params,
.channel_info = snd_pcm_multi_channel_info,
.dump = snd_pcm_multi_dump,
.nonblock = snd_pcm_multi_nonblock,
.async = snd_pcm_multi_async,
.mmap = snd_pcm_multi_mmap,
.munmap = snd_pcm_multi_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_multi_fast_ops = {
status: snd_pcm_multi_status,
state: snd_pcm_multi_state,
hwsync: snd_pcm_multi_hwsync,
delay: snd_pcm_multi_delay,
prepare: snd_pcm_multi_prepare,
reset: snd_pcm_multi_reset,
start: snd_pcm_multi_start,
drop: snd_pcm_multi_drop,
drain: snd_pcm_multi_drain,
pause: snd_pcm_multi_pause,
writei: snd_pcm_mmap_writei,
writen: snd_pcm_mmap_writen,
readi: snd_pcm_mmap_readi,
readn: snd_pcm_mmap_readn,
rewind: snd_pcm_multi_rewind,
forward: snd_pcm_multi_forward,
resume: snd_pcm_multi_resume,
avail_update: snd_pcm_multi_avail_update,
mmap_commit: snd_pcm_multi_mmap_commit,
.status = snd_pcm_multi_status,
.state = snd_pcm_multi_state,
.hwsync = snd_pcm_multi_hwsync,
.delay = snd_pcm_multi_delay,
.prepare = snd_pcm_multi_prepare,
.reset = snd_pcm_multi_reset,
.start = snd_pcm_multi_start,
.drop = snd_pcm_multi_drop,
.drain = snd_pcm_multi_drain,
.pause = snd_pcm_multi_pause,
.writei = snd_pcm_mmap_writei,
.writen = snd_pcm_mmap_writen,
.readi = snd_pcm_mmap_readi,
.readn = snd_pcm_mmap_readn,
.rewind = snd_pcm_multi_rewind,
.forward = snd_pcm_multi_forward,
.resume = snd_pcm_multi_resume,
.avail_update = snd_pcm_multi_avail_update,
.mmap_commit = snd_pcm_multi_mmap_commit,
};
/**

View file

@ -312,40 +312,40 @@ static void snd_pcm_null_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_null_ops = {
close: snd_pcm_null_close,
info: snd_pcm_null_info,
hw_refine: snd_pcm_null_hw_refine,
hw_params: snd_pcm_null_hw_params,
hw_free: snd_pcm_null_hw_free,
sw_params: snd_pcm_null_sw_params,
channel_info: snd_pcm_null_channel_info,
dump: snd_pcm_null_dump,
nonblock: snd_pcm_null_nonblock,
async: snd_pcm_null_async,
mmap: snd_pcm_null_mmap,
munmap: snd_pcm_null_munmap,
.close = snd_pcm_null_close,
.info = snd_pcm_null_info,
.hw_refine = snd_pcm_null_hw_refine,
.hw_params = snd_pcm_null_hw_params,
.hw_free = snd_pcm_null_hw_free,
.sw_params = snd_pcm_null_sw_params,
.channel_info = snd_pcm_null_channel_info,
.dump = snd_pcm_null_dump,
.nonblock = snd_pcm_null_nonblock,
.async = snd_pcm_null_async,
.mmap = snd_pcm_null_mmap,
.munmap = snd_pcm_null_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_null_fast_ops = {
status: snd_pcm_null_status,
state: snd_pcm_null_state,
hwsync: snd_pcm_null_hwsync,
delay: snd_pcm_null_delay,
prepare: snd_pcm_null_prepare,
reset: snd_pcm_null_reset,
start: snd_pcm_null_start,
drop: snd_pcm_null_drop,
drain: snd_pcm_null_drain,
pause: snd_pcm_null_pause,
rewind: snd_pcm_null_rewind,
forward: snd_pcm_null_forward,
resume: snd_pcm_null_resume,
writei: snd_pcm_null_writei,
writen: snd_pcm_null_writen,
readi: snd_pcm_null_readi,
readn: snd_pcm_null_readn,
avail_update: snd_pcm_null_avail_update,
mmap_commit: snd_pcm_null_mmap_commit,
.status = snd_pcm_null_status,
.state = snd_pcm_null_state,
.hwsync = snd_pcm_null_hwsync,
.delay = snd_pcm_null_delay,
.prepare = snd_pcm_null_prepare,
.reset = snd_pcm_null_reset,
.start = snd_pcm_null_start,
.drop = snd_pcm_null_drop,
.drain = snd_pcm_null_drain,
.pause = snd_pcm_null_pause,
.rewind = snd_pcm_null_rewind,
.forward = snd_pcm_null_forward,
.resume = snd_pcm_null_resume,
.writei = snd_pcm_null_writei,
.writen = snd_pcm_null_writen,
.readi = snd_pcm_null_readi,
.readn = snd_pcm_null_readn,
.avail_update = snd_pcm_null_avail_update,
.mmap_commit = snd_pcm_null_mmap_commit,
};
/**

View file

@ -1731,143 +1731,143 @@ static int snd_pcm_hw_rule_sample_bits(snd_pcm_hw_params_t *params,
static snd_pcm_hw_rule_t refine_rules[] = {
{
var: SND_PCM_HW_PARAM_FORMAT,
func: snd_pcm_hw_rule_format,
deps: { SND_PCM_HW_PARAM_SAMPLE_BITS, -1 },
private_data: 0,
.var = SND_PCM_HW_PARAM_FORMAT,
.func = snd_pcm_hw_rule_format,
.deps = { SND_PCM_HW_PARAM_SAMPLE_BITS, -1 },
.private_data = 0,
},
{
var: SND_PCM_HW_PARAM_SAMPLE_BITS,
func: snd_pcm_hw_rule_sample_bits,
deps: { SND_PCM_HW_PARAM_FORMAT,
.var = SND_PCM_HW_PARAM_SAMPLE_BITS,
.func = snd_pcm_hw_rule_sample_bits,
.deps = { SND_PCM_HW_PARAM_FORMAT,
SND_PCM_HW_PARAM_SAMPLE_BITS, -1 },
private_data: 0,
.private_data = 0,
},
{
var: SND_PCM_HW_PARAM_SAMPLE_BITS,
func: snd_pcm_hw_rule_div,
deps: { SND_PCM_HW_PARAM_FRAME_BITS,
.var = SND_PCM_HW_PARAM_SAMPLE_BITS,
.func = snd_pcm_hw_rule_div,
.deps = { SND_PCM_HW_PARAM_FRAME_BITS,
SND_PCM_HW_PARAM_CHANNELS, -1 },
private_data: 0,
.private_data = 0,
},
{
var: SND_PCM_HW_PARAM_FRAME_BITS,
func: snd_pcm_hw_rule_mul,
deps: { SND_PCM_HW_PARAM_SAMPLE_BITS,
.var = SND_PCM_HW_PARAM_FRAME_BITS,
.func = snd_pcm_hw_rule_mul,
.deps = { SND_PCM_HW_PARAM_SAMPLE_BITS,
SND_PCM_HW_PARAM_CHANNELS, -1 },
private_data: 0,
.private_data = 0,
},
{
var: SND_PCM_HW_PARAM_FRAME_BITS,
func: snd_pcm_hw_rule_mulkdiv,
deps: { SND_PCM_HW_PARAM_PERIOD_BYTES,
.var = SND_PCM_HW_PARAM_FRAME_BITS,
.func = snd_pcm_hw_rule_mulkdiv,
.deps = { SND_PCM_HW_PARAM_PERIOD_BYTES,
SND_PCM_HW_PARAM_PERIOD_SIZE, -1 },
private_data: (void*) 8,
.private_data = (void*) 8,
},
{
var: SND_PCM_HW_PARAM_FRAME_BITS,
func: snd_pcm_hw_rule_mulkdiv,
deps: { SND_PCM_HW_PARAM_BUFFER_BYTES,
.var = SND_PCM_HW_PARAM_FRAME_BITS,
.func = snd_pcm_hw_rule_mulkdiv,
.deps = { SND_PCM_HW_PARAM_BUFFER_BYTES,
SND_PCM_HW_PARAM_BUFFER_SIZE, -1 },
private_data: (void*) 8,
.private_data = (void*) 8,
},
{
var: SND_PCM_HW_PARAM_CHANNELS,
func: snd_pcm_hw_rule_div,
deps: { SND_PCM_HW_PARAM_FRAME_BITS,
.var = SND_PCM_HW_PARAM_CHANNELS,
.func = snd_pcm_hw_rule_div,
.deps = { SND_PCM_HW_PARAM_FRAME_BITS,
SND_PCM_HW_PARAM_SAMPLE_BITS, -1 },
private_data: 0,
.private_data = 0,
},
{
var: SND_PCM_HW_PARAM_RATE,
func: snd_pcm_hw_rule_mulkdiv,
deps: { SND_PCM_HW_PARAM_PERIOD_SIZE,
.var = SND_PCM_HW_PARAM_RATE,
.func = snd_pcm_hw_rule_mulkdiv,
.deps = { SND_PCM_HW_PARAM_PERIOD_SIZE,
SND_PCM_HW_PARAM_PERIOD_TIME, -1 },
private_data: (void*) 1000000,
.private_data = (void*) 1000000,
},
{
var: SND_PCM_HW_PARAM_RATE,
func: snd_pcm_hw_rule_mulkdiv,
deps: { SND_PCM_HW_PARAM_BUFFER_SIZE,
.var = SND_PCM_HW_PARAM_RATE,
.func = snd_pcm_hw_rule_mulkdiv,
.deps = { SND_PCM_HW_PARAM_BUFFER_SIZE,
SND_PCM_HW_PARAM_BUFFER_TIME, -1 },
private_data: (void*) 1000000,
.private_data = (void*) 1000000,
},
{
var: SND_PCM_HW_PARAM_PERIODS,
func: snd_pcm_hw_rule_div,
deps: { SND_PCM_HW_PARAM_BUFFER_SIZE,
.var = SND_PCM_HW_PARAM_PERIODS,
.func = snd_pcm_hw_rule_div,
.deps = { SND_PCM_HW_PARAM_BUFFER_SIZE,
SND_PCM_HW_PARAM_PERIOD_SIZE, -1 },
private_data: 0,
.private_data = 0,
},
{
var: SND_PCM_HW_PARAM_PERIOD_SIZE,
func: snd_pcm_hw_rule_div,
deps: { SND_PCM_HW_PARAM_BUFFER_SIZE,
.var = SND_PCM_HW_PARAM_PERIOD_SIZE,
.func = snd_pcm_hw_rule_div,
.deps = { SND_PCM_HW_PARAM_BUFFER_SIZE,
SND_PCM_HW_PARAM_PERIODS, -1 },
private_data: 0,
.private_data = 0,
},
{
var: SND_PCM_HW_PARAM_PERIOD_SIZE,
func: snd_pcm_hw_rule_mulkdiv,
deps: { SND_PCM_HW_PARAM_PERIOD_BYTES,
.var = SND_PCM_HW_PARAM_PERIOD_SIZE,
.func = snd_pcm_hw_rule_mulkdiv,
.deps = { SND_PCM_HW_PARAM_PERIOD_BYTES,
SND_PCM_HW_PARAM_FRAME_BITS, -1 },
private_data: (void*) 8,
.private_data = (void*) 8,
},
{
var: SND_PCM_HW_PARAM_PERIOD_SIZE,
func: snd_pcm_hw_rule_muldivk,
deps: { SND_PCM_HW_PARAM_PERIOD_TIME,
.var = SND_PCM_HW_PARAM_PERIOD_SIZE,
.func = snd_pcm_hw_rule_muldivk,
.deps = { SND_PCM_HW_PARAM_PERIOD_TIME,
SND_PCM_HW_PARAM_RATE, -1 },
private_data: (void*) 1000000,
.private_data = (void*) 1000000,
},
{
var: SND_PCM_HW_PARAM_BUFFER_SIZE,
func: snd_pcm_hw_rule_mul,
deps: { SND_PCM_HW_PARAM_PERIOD_SIZE,
.var = SND_PCM_HW_PARAM_BUFFER_SIZE,
.func = snd_pcm_hw_rule_mul,
.deps = { SND_PCM_HW_PARAM_PERIOD_SIZE,
SND_PCM_HW_PARAM_PERIODS, -1 },
private_data: 0,
.private_data = 0,
},
{
var: SND_PCM_HW_PARAM_BUFFER_SIZE,
func: snd_pcm_hw_rule_mulkdiv,
deps: { SND_PCM_HW_PARAM_BUFFER_BYTES,
.var = SND_PCM_HW_PARAM_BUFFER_SIZE,
.func = snd_pcm_hw_rule_mulkdiv,
.deps = { SND_PCM_HW_PARAM_BUFFER_BYTES,
SND_PCM_HW_PARAM_FRAME_BITS, -1 },
private_data: (void*) 8,
.private_data = (void*) 8,
},
{
var: SND_PCM_HW_PARAM_BUFFER_SIZE,
func: snd_pcm_hw_rule_muldivk,
deps: { SND_PCM_HW_PARAM_BUFFER_TIME,
.var = SND_PCM_HW_PARAM_BUFFER_SIZE,
.func = snd_pcm_hw_rule_muldivk,
.deps = { SND_PCM_HW_PARAM_BUFFER_TIME,
SND_PCM_HW_PARAM_RATE, -1 },
private_data: (void*) 1000000,
.private_data = (void*) 1000000,
},
{
var: SND_PCM_HW_PARAM_PERIOD_BYTES,
func: snd_pcm_hw_rule_muldivk,
deps: { SND_PCM_HW_PARAM_PERIOD_SIZE,
.var = SND_PCM_HW_PARAM_PERIOD_BYTES,
.func = snd_pcm_hw_rule_muldivk,
.deps = { SND_PCM_HW_PARAM_PERIOD_SIZE,
SND_PCM_HW_PARAM_FRAME_BITS, -1 },
private_data: (void*) 8,
.private_data = (void*) 8,
},
{
var: SND_PCM_HW_PARAM_BUFFER_BYTES,
func: snd_pcm_hw_rule_muldivk,
deps: { SND_PCM_HW_PARAM_BUFFER_SIZE,
.var = SND_PCM_HW_PARAM_BUFFER_BYTES,
.func = snd_pcm_hw_rule_muldivk,
.deps = { SND_PCM_HW_PARAM_BUFFER_SIZE,
SND_PCM_HW_PARAM_FRAME_BITS, -1 },
private_data: (void*) 8,
.private_data = (void*) 8,
},
{
var: SND_PCM_HW_PARAM_PERIOD_TIME,
func: snd_pcm_hw_rule_mulkdiv,
deps: { SND_PCM_HW_PARAM_PERIOD_SIZE,
.var = SND_PCM_HW_PARAM_PERIOD_TIME,
.func = snd_pcm_hw_rule_mulkdiv,
.deps = { SND_PCM_HW_PARAM_PERIOD_SIZE,
SND_PCM_HW_PARAM_RATE, -1 },
private_data: (void*) 1000000,
.private_data = (void*) 1000000,
},
{
var: SND_PCM_HW_PARAM_BUFFER_TIME,
func: snd_pcm_hw_rule_mulkdiv,
deps: { SND_PCM_HW_PARAM_BUFFER_SIZE,
.var = SND_PCM_HW_PARAM_BUFFER_TIME,
.func = snd_pcm_hw_rule_mulkdiv,
.deps = { SND_PCM_HW_PARAM_BUFFER_SIZE,
SND_PCM_HW_PARAM_RATE, -1 },
private_data: (void*) 1000000,
.private_data = (void*) 1000000,
},
};
@ -1875,64 +1875,64 @@ static snd_pcm_hw_rule_t refine_rules[] = {
static snd_mask_t refine_masks[SND_PCM_HW_PARAM_LAST_MASK - SND_PCM_HW_PARAM_FIRST_MASK + 1] = {
[SND_PCM_HW_PARAM_ACCESS - SND_PCM_HW_PARAM_FIRST_MASK] = {
bits: { 0x1f },
.bits = { 0x1f },
},
[SND_PCM_HW_PARAM_FORMAT - SND_PCM_HW_PARAM_FIRST_MASK] = {
bits: { 0x81ffffff, 0xfff},
.bits = { 0x81ffffff, 0xfff},
},
[SND_PCM_HW_PARAM_SUBFORMAT - SND_PCM_HW_PARAM_FIRST_MASK] = {
bits: { 0x1 },
.bits = { 0x1 },
},
};
static snd_interval_t refine_intervals[SND_PCM_HW_PARAM_LAST_INTERVAL - SND_PCM_HW_PARAM_FIRST_INTERVAL + 1] = {
[SND_PCM_HW_PARAM_SAMPLE_BITS - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 1, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 1, empty: 0,
.min = 1, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 1, .empty = 0,
},
[SND_PCM_HW_PARAM_FRAME_BITS - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 1, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 1, empty: 0,
.min = 1, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 1, .empty = 0,
},
[SND_PCM_HW_PARAM_CHANNELS - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 1, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 1, empty: 0,
.min = 1, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 1, .empty = 0,
},
[SND_PCM_HW_PARAM_RATE - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 1, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 0, empty: 0,
.min = 1, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 0, .empty = 0,
},
[SND_PCM_HW_PARAM_PERIOD_TIME - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 0, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 0, empty: 0,
.min = 0, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 0, .empty = 0,
},
[SND_PCM_HW_PARAM_PERIOD_SIZE - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 0, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 0, empty: 0,
.min = 0, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 0, .empty = 0,
},
[SND_PCM_HW_PARAM_PERIOD_BYTES - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 0, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 0, empty: 0,
.min = 0, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 0, .empty = 0,
},
[SND_PCM_HW_PARAM_PERIODS - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 0, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 0, empty: 0,
.min = 0, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 0, .empty = 0,
},
[SND_PCM_HW_PARAM_BUFFER_TIME - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 1, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 0, empty: 0,
.min = 1, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 0, .empty = 0,
},
[SND_PCM_HW_PARAM_BUFFER_SIZE - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 1, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 1, empty: 0,
.min = 1, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 1, .empty = 0,
},
[SND_PCM_HW_PARAM_BUFFER_BYTES - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 1, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 1, empty: 0,
.min = 1, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 1, .empty = 0,
},
[SND_PCM_HW_PARAM_TICK_TIME - SND_PCM_HW_PARAM_FIRST_INTERVAL] = {
min: 0, max: UINT_MAX,
openmin: 0, openmax: 0, integer: 0, empty: 0,
.min = 0, .max = UINT_MAX,
.openmin = 0, .openmax = 0, .integer = 0, .empty = 0,
},
};

View file

@ -955,19 +955,19 @@ static void snd_pcm_plug_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_plug_ops = {
close: snd_pcm_plug_close,
info: snd_pcm_plug_info,
hw_refine: snd_pcm_plug_hw_refine,
hw_params: snd_pcm_plug_hw_params,
hw_free: snd_pcm_plug_hw_free,
sw_params: snd_pcm_plug_sw_params,
channel_info: snd_pcm_plug_channel_info,
dump: snd_pcm_plug_dump,
nonblock: snd_pcm_plug_nonblock,
async: snd_pcm_plug_async,
poll_revents: snd_pcm_plug_poll_revents,
mmap: snd_pcm_plug_mmap,
munmap: snd_pcm_plug_munmap,
.close = snd_pcm_plug_close,
.info = snd_pcm_plug_info,
.hw_refine = snd_pcm_plug_hw_refine,
.hw_params = snd_pcm_plug_hw_params,
.hw_free = snd_pcm_plug_hw_free,
.sw_params = snd_pcm_plug_sw_params,
.channel_info = snd_pcm_plug_channel_info,
.dump = snd_pcm_plug_dump,
.nonblock = snd_pcm_plug_nonblock,
.async = snd_pcm_plug_async,
.poll_revents = snd_pcm_plug_poll_revents,
.mmap = snd_pcm_plug_mmap,
.munmap = snd_pcm_plug_munmap,
};
/**

View file

@ -646,25 +646,25 @@ int snd_pcm_plugin_hw_params_slave(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
}
snd_pcm_fast_ops_t snd_pcm_plugin_fast_ops = {
status: snd_pcm_plugin_status,
state: snd_pcm_plugin_state,
hwsync: snd_pcm_plugin_hwsync,
delay: snd_pcm_plugin_delay,
prepare: snd_pcm_plugin_prepare,
reset: snd_pcm_plugin_reset,
start: snd_pcm_plugin_start,
drop: snd_pcm_plugin_drop,
drain: snd_pcm_plugin_drain,
pause: snd_pcm_plugin_pause,
rewind: snd_pcm_plugin_rewind,
forward: snd_pcm_plugin_forward,
resume: snd_pcm_plugin_resume,
writei: snd_pcm_plugin_writei,
writen: snd_pcm_plugin_writen,
readi: snd_pcm_plugin_readi,
readn: snd_pcm_plugin_readn,
avail_update: snd_pcm_plugin_avail_update,
mmap_commit: snd_pcm_plugin_mmap_commit,
.status = snd_pcm_plugin_status,
.state = snd_pcm_plugin_state,
.hwsync = snd_pcm_plugin_hwsync,
.delay = snd_pcm_plugin_delay,
.prepare = snd_pcm_plugin_prepare,
.reset = snd_pcm_plugin_reset,
.start = snd_pcm_plugin_start,
.drop = snd_pcm_plugin_drop,
.drain = snd_pcm_plugin_drain,
.pause = snd_pcm_plugin_pause,
.rewind = snd_pcm_plugin_rewind,
.forward = snd_pcm_plugin_forward,
.resume = snd_pcm_plugin_resume,
.writei = snd_pcm_plugin_writei,
.writen = snd_pcm_plugin_writen,
.readi = snd_pcm_plugin_readi,
.readn = snd_pcm_plugin_readn,
.avail_update = snd_pcm_plugin_avail_update,
.mmap_commit = snd_pcm_plugin_mmap_commit,
};

View file

@ -568,19 +568,19 @@ static void snd_pcm_rate_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_rate_ops = {
close: snd_pcm_plugin_close,
info: snd_pcm_plugin_info,
hw_refine: snd_pcm_rate_hw_refine,
hw_params: snd_pcm_rate_hw_params,
hw_free: snd_pcm_rate_hw_free,
sw_params: snd_pcm_rate_sw_params,
channel_info: snd_pcm_plugin_channel_info,
dump: snd_pcm_rate_dump,
nonblock: snd_pcm_plugin_nonblock,
async: snd_pcm_plugin_async,
poll_revents: snd_pcm_plugin_poll_revents,
mmap: snd_pcm_plugin_mmap,
munmap: snd_pcm_plugin_munmap,
.close = snd_pcm_plugin_close,
.info = snd_pcm_plugin_info,
.hw_refine = snd_pcm_rate_hw_refine,
.hw_params = snd_pcm_rate_hw_params,
.hw_free = snd_pcm_rate_hw_free,
.sw_params = snd_pcm_rate_sw_params,
.channel_info = snd_pcm_plugin_channel_info,
.dump = snd_pcm_rate_dump,
.nonblock = snd_pcm_plugin_nonblock,
.async = snd_pcm_plugin_async,
.poll_revents = snd_pcm_plugin_poll_revents,
.mmap = snd_pcm_plugin_mmap,
.munmap = snd_pcm_plugin_munmap,
};

View file

@ -722,19 +722,19 @@ static void snd_pcm_route_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_route_ops = {
close: snd_pcm_route_close,
info: snd_pcm_plugin_info,
hw_refine: snd_pcm_route_hw_refine,
hw_params: snd_pcm_route_hw_params,
hw_free: snd_pcm_plugin_hw_free,
sw_params: snd_pcm_plugin_sw_params,
channel_info: snd_pcm_plugin_channel_info,
dump: snd_pcm_route_dump,
nonblock: snd_pcm_plugin_nonblock,
async: snd_pcm_plugin_async,
poll_revents: snd_pcm_plugin_poll_revents,
mmap: snd_pcm_plugin_mmap,
munmap: snd_pcm_plugin_munmap,
.close = snd_pcm_route_close,
.info = snd_pcm_plugin_info,
.hw_refine = snd_pcm_route_hw_refine,
.hw_params = snd_pcm_route_hw_params,
.hw_free = snd_pcm_plugin_hw_free,
.sw_params = snd_pcm_plugin_sw_params,
.channel_info = snd_pcm_plugin_channel_info,
.dump = snd_pcm_route_dump,
.nonblock = snd_pcm_plugin_nonblock,
.async = snd_pcm_plugin_async,
.poll_revents = snd_pcm_plugin_poll_revents,
.mmap = snd_pcm_plugin_mmap,
.munmap = snd_pcm_plugin_munmap,
};
static int route_load_ttable(snd_pcm_route_params_t *params, snd_pcm_stream_t stream,

View file

@ -1264,40 +1264,40 @@ static void snd_pcm_share_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_share_ops = {
close: snd_pcm_share_close,
info: snd_pcm_share_info,
hw_refine: snd_pcm_share_hw_refine,
hw_params: snd_pcm_share_hw_params,
hw_free: snd_pcm_share_hw_free,
sw_params: snd_pcm_share_sw_params,
channel_info: snd_pcm_share_channel_info,
dump: snd_pcm_share_dump,
nonblock: snd_pcm_share_nonblock,
async: snd_pcm_share_async,
mmap: snd_pcm_share_mmap,
munmap: snd_pcm_share_munmap,
.close = snd_pcm_share_close,
.info = snd_pcm_share_info,
.hw_refine = snd_pcm_share_hw_refine,
.hw_params = snd_pcm_share_hw_params,
.hw_free = snd_pcm_share_hw_free,
.sw_params = snd_pcm_share_sw_params,
.channel_info = snd_pcm_share_channel_info,
.dump = snd_pcm_share_dump,
.nonblock = snd_pcm_share_nonblock,
.async = snd_pcm_share_async,
.mmap = snd_pcm_share_mmap,
.munmap = snd_pcm_share_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_share_fast_ops = {
status: snd_pcm_share_status,
state: snd_pcm_share_state,
hwsync: snd_pcm_share_hwsync,
delay: snd_pcm_share_delay,
prepare: snd_pcm_share_prepare,
reset: snd_pcm_share_reset,
start: snd_pcm_share_start,
drop: snd_pcm_share_drop,
drain: snd_pcm_share_drain,
pause: snd_pcm_share_pause,
writei: snd_pcm_mmap_writei,
writen: snd_pcm_mmap_writen,
readi: snd_pcm_mmap_readi,
readn: snd_pcm_mmap_readn,
rewind: snd_pcm_share_rewind,
forward: snd_pcm_share_forward,
resume: snd_pcm_share_resume,
avail_update: snd_pcm_share_avail_update,
mmap_commit: snd_pcm_share_mmap_commit,
.status = snd_pcm_share_status,
.state = snd_pcm_share_state,
.hwsync = snd_pcm_share_hwsync,
.delay = snd_pcm_share_delay,
.prepare = snd_pcm_share_prepare,
.reset = snd_pcm_share_reset,
.start = snd_pcm_share_start,
.drop = snd_pcm_share_drop,
.drain = snd_pcm_share_drain,
.pause = snd_pcm_share_pause,
.writei = snd_pcm_mmap_writei,
.writen = snd_pcm_mmap_writen,
.readi = snd_pcm_mmap_readi,
.readn = snd_pcm_mmap_readn,
.rewind = snd_pcm_share_rewind,
.forward = snd_pcm_share_forward,
.resume = snd_pcm_share_resume,
.avail_update = snd_pcm_share_avail_update,
.mmap_commit = snd_pcm_share_mmap_commit,
};
/**

View file

@ -574,40 +574,40 @@ static void snd_pcm_shm_dump(snd_pcm_t *pcm, snd_output_t *out)
}
static snd_pcm_ops_t snd_pcm_shm_ops = {
close: snd_pcm_shm_close,
info: snd_pcm_shm_info,
hw_refine: snd_pcm_shm_hw_refine,
hw_params: snd_pcm_shm_hw_params,
hw_free: snd_pcm_shm_hw_free,
sw_params: snd_pcm_shm_sw_params,
channel_info: snd_pcm_shm_channel_info,
dump: snd_pcm_shm_dump,
nonblock: snd_pcm_shm_nonblock,
async: snd_pcm_shm_async,
mmap: snd_pcm_shm_mmap,
munmap: snd_pcm_shm_munmap,
.close = snd_pcm_shm_close,
.info = snd_pcm_shm_info,
.hw_refine = snd_pcm_shm_hw_refine,
.hw_params = snd_pcm_shm_hw_params,
.hw_free = snd_pcm_shm_hw_free,
.sw_params = snd_pcm_shm_sw_params,
.channel_info = snd_pcm_shm_channel_info,
.dump = snd_pcm_shm_dump,
.nonblock = snd_pcm_shm_nonblock,
.async = snd_pcm_shm_async,
.mmap = snd_pcm_shm_mmap,
.munmap = snd_pcm_shm_munmap,
};
static snd_pcm_fast_ops_t snd_pcm_shm_fast_ops = {
status: snd_pcm_shm_status,
state: snd_pcm_shm_state,
hwsync: snd_pcm_shm_hwsync,
delay: snd_pcm_shm_delay,
prepare: snd_pcm_shm_prepare,
reset: snd_pcm_shm_reset,
start: snd_pcm_shm_start,
drop: snd_pcm_shm_drop,
drain: snd_pcm_shm_drain,
pause: snd_pcm_shm_pause,
rewind: snd_pcm_shm_rewind,
forward: snd_pcm_shm_forward,
resume: snd_pcm_shm_resume,
writei: snd_pcm_mmap_writei,
writen: snd_pcm_mmap_writen,
readi: snd_pcm_mmap_readi,
readn: snd_pcm_mmap_readn,
avail_update: snd_pcm_shm_avail_update,
mmap_commit: snd_pcm_shm_mmap_commit,
.status = snd_pcm_shm_status,
.state = snd_pcm_shm_state,
.hwsync = snd_pcm_shm_hwsync,
.delay = snd_pcm_shm_delay,
.prepare = snd_pcm_shm_prepare,
.reset = snd_pcm_shm_reset,
.start = snd_pcm_shm_start,
.drop = snd_pcm_shm_drop,
.drain = snd_pcm_shm_drain,
.pause = snd_pcm_shm_pause,
.rewind = snd_pcm_shm_rewind,
.forward = snd_pcm_shm_forward,
.resume = snd_pcm_shm_resume,
.writei = snd_pcm_mmap_writei,
.writen = snd_pcm_mmap_writen,
.readi = snd_pcm_mmap_readi,
.readn = snd_pcm_mmap_readn,
.avail_update = snd_pcm_shm_avail_update,
.mmap_commit = snd_pcm_shm_mmap_commit,
};
static int make_local_socket(const char *filename)

View file

@ -170,13 +170,13 @@ static void level_reset(snd_pcm_scope_t *scope)
}
snd_pcm_scope_ops_t level_ops = {
enable: level_enable,
disable: level_disable,
close: level_close,
start: level_start,
stop: level_stop,
update: level_update,
reset: level_reset,
.enable = level_enable,
.disable = level_disable,
.close = level_close,
.start = level_start,
.stop = level_stop,
.update = level_update,
.reset = level_reset,
};
int snd_pcm_scope_level_open(snd_pcm_t *pcm, const char *name,