aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1/emufx.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-01-29 09:33:49 -0500
committerJaroslav Kysela <perex@suse.cz>2007-02-09 03:03:19 -0500
commit0cb29ea0d449d7c0ecc9649a08ab63476389701d (patch)
tree64e007b7a767c8e63f32b346c1069804e8e2df80 /sound/pci/emu10k1/emufx.c
parent517400cbc75d0604bc34c1866dff7e55ca1be2b4 (diff)
[ALSA] Add even more 'const' to everything related to TLV
Mark TLV data as 'const' Signed-of-by: Philipp Matthias Hahn <pmhahn@pmhahn.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/emu10k1/emufx.c')
-rw-r--r--sound/pci/emu10k1/emufx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c
index 7b173c496953..c02012cccd8e 100644
--- a/sound/pci/emu10k1/emufx.c
+++ b/sound/pci/emu10k1/emufx.c
@@ -296,7 +296,7 @@ static const u32 db_table[101] = {
296}; 296};
297 297
298/* EMU10k1/EMU10k2 DSP control db gain */ 298/* EMU10k1/EMU10k2 DSP control db gain */
299static DECLARE_TLV_DB_SCALE(snd_emu10k1_db_scale1, -4000, 40, 1); 299static const DECLARE_TLV_DB_SCALE(snd_emu10k1_db_scale1, -4000, 40, 1);
300 300
301static const u32 onoff_table[2] = { 301static const u32 onoff_table[2] = {
302 0x00000000, 0x00000001 302 0x00000000, 0x00000001
@@ -657,7 +657,7 @@ snd_emu10k1_look_for_ctl(struct snd_emu10k1 *emu, struct snd_ctl_elem_id *id)
657 657
658#define MAX_TLV_SIZE 256 658#define MAX_TLV_SIZE 256
659 659
660static unsigned int *copy_tlv(unsigned int __user *_tlv) 660static unsigned int *copy_tlv(const unsigned int __user *_tlv)
661{ 661{
662 unsigned int data[2]; 662 unsigned int data[2];
663 unsigned int *tlv; 663 unsigned int *tlv;