[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>
This commit is contained in:
committed by
Jaroslav Kysela
parent
517400cbc7
commit
0cb29ea0d4
@@ -185,7 +185,7 @@ struct ad1848_mix_elem {
|
||||
int index;
|
||||
int type;
|
||||
unsigned long private_value;
|
||||
unsigned int *tlv;
|
||||
const unsigned int *tlv;
|
||||
};
|
||||
|
||||
#define AD1848_SINGLE(xname, xindex, reg, shift, mask, invert) \
|
||||
|
@@ -49,7 +49,7 @@ struct snd_kcontrol_new {
|
||||
snd_kcontrol_put_t *put;
|
||||
union {
|
||||
snd_kcontrol_tlv_rw_t *c;
|
||||
unsigned int *p;
|
||||
const unsigned int *p;
|
||||
} tlv;
|
||||
unsigned long private_value;
|
||||
};
|
||||
@@ -69,7 +69,7 @@ struct snd_kcontrol {
|
||||
snd_kcontrol_put_t *put;
|
||||
union {
|
||||
snd_kcontrol_tlv_rw_t *c;
|
||||
unsigned int *p;
|
||||
const unsigned int *p;
|
||||
} tlv;
|
||||
unsigned long private_value;
|
||||
void *private_data;
|
||||
|
@@ -1903,7 +1903,7 @@ struct snd_emu10k1_fx8010_control_gpr {
|
||||
unsigned int min; /* minimum range */
|
||||
unsigned int max; /* maximum range */
|
||||
unsigned int translation; /* translation type (EMU10K1_GPR_TRANSLATION*) */
|
||||
unsigned int *tlv;
|
||||
const unsigned int *tlv;
|
||||
};
|
||||
|
||||
/* old ABI without TLV support */
|
||||
|
@@ -128,7 +128,7 @@ struct snd_vx_hardware {
|
||||
unsigned int num_ins;
|
||||
unsigned int num_outs;
|
||||
unsigned int output_level_max;
|
||||
unsigned int *output_level_db_scale;
|
||||
const unsigned int *output_level_db_scale;
|
||||
};
|
||||
|
||||
/* hwdep id string */
|
||||
|
Reference in New Issue
Block a user