summaryrefslogtreecommitdiffstats
path: root/mix/pcm_vdownmix.c
diff options
context:
space:
mode:
authorDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 02:11:44 +0100
committerDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 13:07:03 +0100
commit9d65155c28d4a47022a4de7e604187b8b2ad2137 (patch)
treee36aa03bed80065259ca8bfcde0662116c1dc26f /mix/pcm_vdownmix.c
parente4ce5402202d983a84d01555445eeb23e5a9268f (diff)
Make some static tables and strings constants.
By doing this we move them from the .data section to .rodata setion, or from .data.rel to .data.rel.ro. The .rodata section is mapped directly from the on-disk file, which is always a save, while .data.rel.ro is mapped directly when using prelink, which is a save in a lot of cases. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Diffstat (limited to 'mix/pcm_vdownmix.c')
-rw-r--r--mix/pcm_vdownmix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mix/pcm_vdownmix.c b/mix/pcm_vdownmix.c
index d5648cf..85eafad 100644
--- a/mix/pcm_vdownmix.c
+++ b/mix/pcm_vdownmix.c
@@ -49,7 +49,7 @@ typedef struct {
short rbuf[RINGBUF_SIZE][5];
} snd_pcm_vdownmix_t;
-static struct vdownmix_filter tap_filters[5] = {
+static const struct vdownmix_filter tap_filters[5] = {
{
#ifdef I_AM_POWERFUL
18,
@@ -183,7 +183,7 @@ static struct vdownmix_filter tap_filters[5] = {
},
};
-static int tap_index[5][2] = {
+static const int tap_index[5][2] = {
/* left */
{ 0, 1 },
/* right */
@@ -277,7 +277,7 @@ static int vdownmix_init(snd_pcm_extplug_t *ext)
return 0;
}
-static snd_pcm_extplug_callback_t vdownmix_callback = {
+static const snd_pcm_extplug_callback_t vdownmix_callback = {
.transfer = vdownmix_transfer,
.init = vdownmix_init,
/* .dump = filr_dump, */