Make all the PCM plugins ops structure constant.

This ensures they are emitted in .data.rel.ro rather than .data.rel,
which should make a nice difference when using prelink.

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
This commit is contained in:
Diego E. 'Flameeyes' Pettenò 2008-11-21 20:38:09 +01:00
parent 1f734e3058
commit 8b14625cc3
30 changed files with 49 additions and 49 deletions

View file

@ -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,