mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
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:
parent
1f734e3058
commit
8b14625cc3
30 changed files with 49 additions and 49 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue