diff options
-rw-r--r-- | src/pcm/pcm_adpcm.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_alaw.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_copy.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_dmix.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_dshare.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_dsnoop.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_extplug.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_file.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_hooks.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_hw.c | 10 | ||||
-rw-r--r-- | src/pcm/pcm_iec958.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_ioplug.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_ladspa.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_lfloat.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_linear.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_local.h | 4 | ||||
-rw-r--r-- | src/pcm/pcm_meter.c | 6 | ||||
-rw-r--r-- | src/pcm/pcm_mmap_emul.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_mulaw.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_multi.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_null.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_plug.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_plugin.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_plugin.h | 2 | ||||
-rw-r--r-- | src/pcm/pcm_rate.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_rate_linear.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_route.c | 2 | ||||
-rw-r--r-- | src/pcm/pcm_share.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_shm.c | 4 | ||||
-rw-r--r-- | src/pcm/pcm_softvol.c | 2 |
30 files changed, 49 insertions, 49 deletions
diff --git a/src/pcm/pcm_adpcm.c b/src/pcm/pcm_adpcm.c index 29599f3e..b68007f9 100644 --- a/src/pcm/pcm_adpcm.c +++ b/src/pcm/pcm_adpcm.c @@ -518,7 +518,7 @@ static void snd_pcm_adpcm_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(adpcm->plug.gen.slave, out); } -static snd_pcm_ops_t snd_pcm_adpcm_ops = { +static const snd_pcm_ops_t snd_pcm_adpcm_ops = { .close = snd_pcm_generic_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_adpcm_hw_refine, diff --git a/src/pcm/pcm_alaw.c b/src/pcm/pcm_alaw.c index 3814241a..09ad4819 100644 --- a/src/pcm/pcm_alaw.c +++ b/src/pcm/pcm_alaw.c @@ -391,7 +391,7 @@ static void snd_pcm_alaw_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(alaw->plug.gen.slave, out); } -static snd_pcm_ops_t snd_pcm_alaw_ops = { +static const snd_pcm_ops_t snd_pcm_alaw_ops = { .close = snd_pcm_generic_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_alaw_hw_refine, diff --git a/src/pcm/pcm_copy.c b/src/pcm/pcm_copy.c index 9d3eb385..072bb125 100644 --- a/src/pcm/pcm_copy.c +++ b/src/pcm/pcm_copy.c @@ -152,7 +152,7 @@ static void snd_pcm_copy_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(copy->plug.gen.slave, out); } -static snd_pcm_ops_t snd_pcm_copy_ops = { +static const snd_pcm_ops_t snd_pcm_copy_ops = { .close = snd_pcm_generic_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_copy_hw_refine, diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c index bb79ec61..5b967e86 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c @@ -869,7 +869,7 @@ static void snd_pcm_dmix_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(dmix->spcm, out); } -static snd_pcm_ops_t snd_pcm_dmix_ops = { +static const snd_pcm_ops_t snd_pcm_dmix_ops = { .close = snd_pcm_dmix_close, .info = snd_pcm_direct_info, .hw_refine = snd_pcm_direct_hw_refine, @@ -884,7 +884,7 @@ static snd_pcm_ops_t snd_pcm_dmix_ops = { .munmap = snd_pcm_direct_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_dmix_fast_ops = { +static const 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, diff --git a/src/pcm/pcm_dshare.c b/src/pcm/pcm_dshare.c index bfe66a8b..c91fa3b1 100644 --- a/src/pcm/pcm_dshare.c +++ b/src/pcm/pcm_dshare.c @@ -560,7 +560,7 @@ static void snd_pcm_dshare_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(dshare->spcm, out); } -static snd_pcm_ops_t snd_pcm_dshare_ops = { +static const snd_pcm_ops_t snd_pcm_dshare_ops = { .close = snd_pcm_dshare_close, .info = snd_pcm_direct_info, .hw_refine = snd_pcm_direct_hw_refine, @@ -575,7 +575,7 @@ static snd_pcm_ops_t snd_pcm_dshare_ops = { .munmap = snd_pcm_direct_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_dshare_fast_ops = { +static const 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, diff --git a/src/pcm/pcm_dsnoop.c b/src/pcm/pcm_dsnoop.c index 1f602c3f..9d42c123 100644 --- a/src/pcm/pcm_dsnoop.c +++ b/src/pcm/pcm_dsnoop.c @@ -455,7 +455,7 @@ static void snd_pcm_dsnoop_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(dsnoop->spcm, out); } -static snd_pcm_ops_t snd_pcm_dsnoop_ops = { +static const snd_pcm_ops_t snd_pcm_dsnoop_ops = { .close = snd_pcm_dsnoop_close, .info = snd_pcm_direct_info, .hw_refine = snd_pcm_direct_hw_refine, @@ -470,7 +470,7 @@ static snd_pcm_ops_t snd_pcm_dsnoop_ops = { .munmap = snd_pcm_direct_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_dsnoop_fast_ops = { +static const 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, diff --git a/src/pcm/pcm_extplug.c b/src/pcm/pcm_extplug.c index 31d8d946..a34706ff 100644 --- a/src/pcm/pcm_extplug.c +++ b/src/pcm/pcm_extplug.c @@ -425,7 +425,7 @@ static int snd_pcm_extplug_close(snd_pcm_t *pcm) return 0; } -static snd_pcm_ops_t snd_pcm_extplug_ops = { +static const snd_pcm_ops_t snd_pcm_extplug_ops = { .close = snd_pcm_extplug_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_extplug_hw_refine, diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c index 376dac0d..82823a04 100644 --- a/src/pcm/pcm_file.c +++ b/src/pcm/pcm_file.c @@ -460,7 +460,7 @@ static void snd_pcm_file_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(file->gen.slave, out); } -static snd_pcm_ops_t snd_pcm_file_ops = { +static const snd_pcm_ops_t snd_pcm_file_ops = { .close = snd_pcm_file_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_generic_hw_refine, @@ -475,7 +475,7 @@ static snd_pcm_ops_t snd_pcm_file_ops = { .munmap = snd_pcm_generic_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_file_fast_ops = { +static const snd_pcm_fast_ops_t snd_pcm_file_fast_ops = { .status = snd_pcm_generic_status, .state = snd_pcm_generic_state, .hwsync = snd_pcm_generic_hwsync, diff --git a/src/pcm/pcm_hooks.c b/src/pcm/pcm_hooks.c index 0abe8191..826685f8 100644 --- a/src/pcm/pcm_hooks.c +++ b/src/pcm/pcm_hooks.c @@ -121,7 +121,7 @@ static void snd_pcm_hooks_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(h->gen.slave, out); } -static snd_pcm_ops_t snd_pcm_hooks_ops = { +static const snd_pcm_ops_t snd_pcm_hooks_ops = { .close = snd_pcm_hooks_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_generic_hw_refine, @@ -136,7 +136,7 @@ static snd_pcm_ops_t snd_pcm_hooks_ops = { .munmap = snd_pcm_generic_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_hooks_fast_ops = { +static const snd_pcm_fast_ops_t snd_pcm_hooks_fast_ops = { .status = snd_pcm_generic_status, .state = snd_pcm_generic_state, .hwsync = snd_pcm_generic_hwsync, diff --git a/src/pcm/pcm_hw.c b/src/pcm/pcm_hw.c index c8d9a627..e9ce0927 100644 --- a/src/pcm/pcm_hw.c +++ b/src/pcm/pcm_hw.c @@ -80,8 +80,8 @@ struct sndrv_pcm_hw_params_old { static int use_old_hw_params_ioctl(int fd, unsigned int cmd, snd_pcm_hw_params_t *params); static snd_pcm_sframes_t snd_pcm_hw_avail_update(snd_pcm_t *pcm); -static snd_pcm_fast_ops_t snd_pcm_hw_fast_ops; -static snd_pcm_fast_ops_t snd_pcm_hw_fast_ops_timer; +static const snd_pcm_fast_ops_t snd_pcm_hw_fast_ops; +static const snd_pcm_fast_ops_t snd_pcm_hw_fast_ops_timer; /* * @@ -1040,7 +1040,7 @@ static void snd_pcm_hw_dump(snd_pcm_t *pcm, snd_output_t *out) } } -static snd_pcm_ops_t snd_pcm_hw_ops = { +static const 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, @@ -1055,7 +1055,7 @@ static snd_pcm_ops_t snd_pcm_hw_ops = { .munmap = snd_pcm_hw_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_hw_fast_ops = { +static const 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, @@ -1086,7 +1086,7 @@ static snd_pcm_fast_ops_t snd_pcm_hw_fast_ops = { .poll_revents = NULL, }; -static snd_pcm_fast_ops_t snd_pcm_hw_fast_ops_timer = { +static const snd_pcm_fast_ops_t snd_pcm_hw_fast_ops_timer = { .status = snd_pcm_hw_status, .state = snd_pcm_hw_state, .hwsync = snd_pcm_hw_hwsync, diff --git a/src/pcm/pcm_iec958.c b/src/pcm/pcm_iec958.c index 5e4858db..3d70ed0f 100644 --- a/src/pcm/pcm_iec958.c +++ b/src/pcm/pcm_iec958.c @@ -416,7 +416,7 @@ static void snd_pcm_iec958_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(iec->plug.gen.slave, out); } -static snd_pcm_ops_t snd_pcm_iec958_ops = { +static const snd_pcm_ops_t snd_pcm_iec958_ops = { .close = snd_pcm_generic_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_iec958_hw_refine, diff --git a/src/pcm/pcm_ioplug.c b/src/pcm/pcm_ioplug.c index 393dfa40..e43d3548 100644 --- a/src/pcm/pcm_ioplug.c +++ b/src/pcm/pcm_ioplug.c @@ -747,7 +747,7 @@ static int snd_pcm_ioplug_close(snd_pcm_t *pcm) return 0; } -static snd_pcm_ops_t snd_pcm_ioplug_ops = { +static const snd_pcm_ops_t snd_pcm_ioplug_ops = { .close = snd_pcm_ioplug_close, .nonblock = snd_pcm_ioplug_nonblock, .async = snd_pcm_ioplug_async, @@ -762,7 +762,7 @@ static snd_pcm_ops_t snd_pcm_ioplug_ops = { .munmap = snd_pcm_ioplug_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_ioplug_fast_ops = { +static const snd_pcm_fast_ops_t snd_pcm_ioplug_fast_ops = { .status = snd_pcm_ioplug_status, .prepare = snd_pcm_ioplug_prepare, .reset = snd_pcm_ioplug_reset, diff --git a/src/pcm/pcm_ladspa.c b/src/pcm/pcm_ladspa.c index 97bb9014..51618201 100644 --- a/src/pcm/pcm_ladspa.c +++ b/src/pcm/pcm_ladspa.c @@ -1061,7 +1061,7 @@ static void snd_pcm_ladspa_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(ladspa->plug.gen.slave, out); } -static snd_pcm_ops_t snd_pcm_ladspa_ops = { +static const snd_pcm_ops_t snd_pcm_ladspa_ops = { .close = snd_pcm_ladspa_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_ladspa_hw_refine, diff --git a/src/pcm/pcm_lfloat.c b/src/pcm/pcm_lfloat.c index 883fce96..62eb398e 100644 --- a/src/pcm/pcm_lfloat.c +++ b/src/pcm/pcm_lfloat.c @@ -350,7 +350,7 @@ static void snd_pcm_lfloat_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(lfloat->plug.gen.slave, out); } -static snd_pcm_ops_t snd_pcm_lfloat_ops = { +static const snd_pcm_ops_t snd_pcm_lfloat_ops = { .close = snd_pcm_generic_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_lfloat_hw_refine, diff --git a/src/pcm/pcm_linear.c b/src/pcm/pcm_linear.c index e3aeac15..12e2e7f0 100644 --- a/src/pcm/pcm_linear.c +++ b/src/pcm/pcm_linear.c @@ -407,7 +407,7 @@ static void snd_pcm_linear_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(linear->plug.gen.slave, out); } -static snd_pcm_ops_t snd_pcm_linear_ops = { +static const snd_pcm_ops_t snd_pcm_linear_ops = { .close = snd_pcm_generic_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_linear_hw_refine, diff --git a/src/pcm/pcm_local.h b/src/pcm/pcm_local.h index b118f4b2..9aa81e14 100644 --- a/src/pcm/pcm_local.h +++ b/src/pcm/pcm_local.h @@ -223,8 +223,8 @@ struct _snd_pcm { snd_pcm_channel_info_t *mmap_channels; snd_pcm_channel_area_t *running_areas; snd_pcm_channel_area_t *stopped_areas; - snd_pcm_ops_t *ops; - snd_pcm_fast_ops_t *fast_ops; + const snd_pcm_ops_t *ops; + const snd_pcm_fast_ops_t *fast_ops; snd_pcm_t *op_arg; snd_pcm_t *fast_op_arg; void *private_data; diff --git a/src/pcm/pcm_meter.c b/src/pcm/pcm_meter.c index 83d643a4..0357921b 100644 --- a/src/pcm/pcm_meter.c +++ b/src/pcm/pcm_meter.c @@ -501,7 +501,7 @@ static void snd_pcm_meter_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(meter->gen.slave, out); } -static snd_pcm_ops_t snd_pcm_meter_ops = { +static const snd_pcm_ops_t snd_pcm_meter_ops = { .close = snd_pcm_meter_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_meter_hw_refine, @@ -516,7 +516,7 @@ static snd_pcm_ops_t snd_pcm_meter_ops = { .munmap = snd_pcm_generic_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_meter_fast_ops = { +static const snd_pcm_fast_ops_t snd_pcm_meter_fast_ops = { .status = snd_pcm_generic_status, .state = snd_pcm_generic_state, .hwsync = snd_pcm_generic_hwsync, @@ -1143,7 +1143,7 @@ static void s16_reset(snd_pcm_scope_t *scope) s16->old = meter->now; } -snd_pcm_scope_ops_t s16_ops = { +static const snd_pcm_scope_ops_t s16_ops = { .enable = s16_enable, .disable = s16_disable, .close = s16_close, diff --git a/src/pcm/pcm_mmap_emul.c b/src/pcm/pcm_mmap_emul.c index 489aa773..0dc19736 100644 --- a/src/pcm/pcm_mmap_emul.c +++ b/src/pcm/pcm_mmap_emul.c @@ -329,7 +329,7 @@ static void snd_pcm_mmap_emul_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(map->gen.slave, out); } -static snd_pcm_ops_t snd_pcm_mmap_emul_ops = { +static const snd_pcm_ops_t snd_pcm_mmap_emul_ops = { .close = snd_pcm_generic_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_mmap_emul_hw_refine, @@ -344,7 +344,7 @@ static snd_pcm_ops_t snd_pcm_mmap_emul_ops = { .munmap = snd_pcm_generic_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_mmap_emul_fast_ops = { +static const snd_pcm_fast_ops_t snd_pcm_mmap_emul_fast_ops = { .status = snd_pcm_generic_status, .state = snd_pcm_generic_state, .hwsync = snd_pcm_generic_hwsync, diff --git a/src/pcm/pcm_mulaw.c b/src/pcm/pcm_mulaw.c index d696c968..22e7d969 100644 --- a/src/pcm/pcm_mulaw.c +++ b/src/pcm/pcm_mulaw.c @@ -406,7 +406,7 @@ static void snd_pcm_mulaw_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(mulaw->plug.gen.slave, out); } -static snd_pcm_ops_t snd_pcm_mulaw_ops = { +static const snd_pcm_ops_t snd_pcm_mulaw_ops = { .close = snd_pcm_generic_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_mulaw_hw_refine, diff --git a/src/pcm/pcm_multi.c b/src/pcm/pcm_multi.c index 9b8583ce..68f2d688 100644 --- a/src/pcm/pcm_multi.c +++ b/src/pcm/pcm_multi.c @@ -762,7 +762,7 @@ static void snd_pcm_multi_dump(snd_pcm_t *pcm, snd_output_t *out) } } -static snd_pcm_ops_t snd_pcm_multi_ops = { +static const 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, @@ -777,7 +777,7 @@ static snd_pcm_ops_t snd_pcm_multi_ops = { .munmap = snd_pcm_multi_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_multi_fast_ops = { +static const 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, diff --git a/src/pcm/pcm_null.c b/src/pcm/pcm_null.c index 0e84f8d4..692254ae 100644 --- a/src/pcm/pcm_null.c +++ b/src/pcm/pcm_null.c @@ -277,7 +277,7 @@ static void snd_pcm_null_dump(snd_pcm_t *pcm, snd_output_t *out) } } -static snd_pcm_ops_t snd_pcm_null_ops = { +static const 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, @@ -292,7 +292,7 @@ static snd_pcm_ops_t snd_pcm_null_ops = { .munmap = snd_pcm_generic_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_null_fast_ops = { +static const 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, diff --git a/src/pcm/pcm_plug.c b/src/pcm/pcm_plug.c index b90f6ecf..abd3d437 100644 --- a/src/pcm/pcm_plug.c +++ b/src/pcm/pcm_plug.c @@ -1051,7 +1051,7 @@ static void snd_pcm_plug_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(plug->gen.slave, out); } -static snd_pcm_ops_t snd_pcm_plug_ops = { +static const 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, diff --git a/src/pcm/pcm_plugin.c b/src/pcm/pcm_plugin.c index c4f5b4aa..0ef394a4 100644 --- a/src/pcm/pcm_plugin.c +++ b/src/pcm/pcm_plugin.c @@ -560,7 +560,7 @@ static int snd_pcm_plugin_status(snd_pcm_t *pcm, snd_pcm_status_t * status) return 0; } -snd_pcm_fast_ops_t snd_pcm_plugin_fast_ops = { +const snd_pcm_fast_ops_t snd_pcm_plugin_fast_ops = { .status = snd_pcm_plugin_status, .state = snd_pcm_generic_state, .hwsync = snd_pcm_generic_hwsync, diff --git a/src/pcm/pcm_plugin.h b/src/pcm/pcm_plugin.h index b427e134..dfcf6de2 100644 --- a/src/pcm/pcm_plugin.h +++ b/src/pcm/pcm_plugin.h @@ -63,7 +63,7 @@ typedef struct { void snd_pcm_plugin_init(snd_pcm_plugin_t *plugin); -extern snd_pcm_fast_ops_t snd_pcm_plugin_fast_ops; +extern const snd_pcm_fast_ops_t snd_pcm_plugin_fast_ops; snd_pcm_sframes_t snd_pcm_plugin_undo_read_generic (snd_pcm_t *pcm, diff --git a/src/pcm/pcm_rate.c b/src/pcm/pcm_rate.c index 9cf090a5..f7b7da08 100644 --- a/src/pcm/pcm_rate.c +++ b/src/pcm/pcm_rate.c @@ -1195,7 +1195,7 @@ static int snd_pcm_rate_close(snd_pcm_t *pcm) return snd_pcm_generic_close(pcm); } -static snd_pcm_fast_ops_t snd_pcm_rate_fast_ops = { +static const snd_pcm_fast_ops_t snd_pcm_rate_fast_ops = { .status = snd_pcm_rate_status, .state = snd_pcm_rate_state, .hwsync = snd_pcm_rate_hwsync, @@ -1221,7 +1221,7 @@ static snd_pcm_fast_ops_t snd_pcm_rate_fast_ops = { .poll_revents = snd_pcm_rate_poll_revents, }; -static snd_pcm_ops_t snd_pcm_rate_ops = { +static const snd_pcm_ops_t snd_pcm_rate_ops = { .close = snd_pcm_rate_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_rate_hw_refine, diff --git a/src/pcm/pcm_rate_linear.c b/src/pcm/pcm_rate_linear.c index a19fecbe..20e119be 100644 --- a/src/pcm/pcm_rate_linear.c +++ b/src/pcm/pcm_rate_linear.c @@ -405,7 +405,7 @@ static void linear_close(void *obj) free(obj); } -static snd_pcm_rate_ops_t linear_ops = { +static const snd_pcm_rate_ops_t linear_ops = { .close = linear_close, .init = linear_init, .free = linear_free, diff --git a/src/pcm/pcm_route.c b/src/pcm/pcm_route.c index 6991fb1b..34553909 100644 --- a/src/pcm/pcm_route.c +++ b/src/pcm/pcm_route.c @@ -747,7 +747,7 @@ static void snd_pcm_route_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(route->plug.gen.slave, out); } -static snd_pcm_ops_t snd_pcm_route_ops = { +static const snd_pcm_ops_t snd_pcm_route_ops = { .close = snd_pcm_route_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_route_hw_refine, diff --git a/src/pcm/pcm_share.c b/src/pcm/pcm_share.c index 3294c716..c8a2d204 100644 --- a/src/pcm/pcm_share.c +++ b/src/pcm/pcm_share.c @@ -1308,7 +1308,7 @@ static void snd_pcm_share_dump(snd_pcm_t *pcm, snd_output_t *out) snd_pcm_dump(slave->pcm, out); } -static snd_pcm_ops_t snd_pcm_share_ops = { +static const 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, @@ -1323,7 +1323,7 @@ static snd_pcm_ops_t snd_pcm_share_ops = { .munmap = snd_pcm_share_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_share_fast_ops = { +static const 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, diff --git a/src/pcm/pcm_shm.c b/src/pcm/pcm_shm.c index b0c0bb99..69d05240 100644 --- a/src/pcm/pcm_shm.c +++ b/src/pcm/pcm_shm.c @@ -591,7 +591,7 @@ static void snd_pcm_shm_dump(snd_pcm_t *pcm, snd_output_t *out) } } -static snd_pcm_ops_t snd_pcm_shm_ops = { +static const 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, @@ -606,7 +606,7 @@ static snd_pcm_ops_t snd_pcm_shm_ops = { .munmap = snd_pcm_shm_munmap, }; -static snd_pcm_fast_ops_t snd_pcm_shm_fast_ops = { +static const 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, diff --git a/src/pcm/pcm_softvol.c b/src/pcm/pcm_softvol.c index d06e01b0..4c5f0f7a 100644 --- a/src/pcm/pcm_softvol.c +++ b/src/pcm/pcm_softvol.c @@ -739,7 +739,7 @@ static int softvol_load_control(snd_pcm_t *pcm, snd_pcm_softvol_t *svol, return 0; } -static snd_pcm_ops_t snd_pcm_softvol_ops = { +static const snd_pcm_ops_t snd_pcm_softvol_ops = { .close = snd_pcm_softvol_close, .info = snd_pcm_generic_info, .hw_refine = snd_pcm_softvol_hw_refine, |