Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 517400cb authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela
Browse files

[ALSA] Add some more 'const', but needs changes in i2c/other/ak4*



Make data passed to ak4xxx_create 'const'.
Signed-of-by: default avatarPhilipp Matthias Hahn <pmhahn@pmhahn.de>

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 32b47da0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ struct ak4114 {

int snd_ak4114_create(struct snd_card *card,
		      ak4114_read_t *read, ak4114_write_t *write,
		      unsigned char pgm[7], unsigned char txcsb[5],
		      const unsigned char pgm[7], const unsigned char txcsb[5],
		      void *private_data, struct ak4114 **r_ak4114);
void snd_ak4114_reg_write(struct ak4114 *ak4114, unsigned char reg, unsigned char mask, unsigned char val);
void snd_ak4114_reinit(struct ak4114 *ak4114);
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ struct ak4117 {
};

int snd_ak4117_create(struct snd_card *card, ak4117_read_t *read, ak4117_write_t *write,
		      unsigned char pgm[5], void *private_data, struct ak4117 **r_ak4117);
		      const unsigned char pgm[5], void *private_data, struct ak4117 **r_ak4117);
void snd_ak4117_reg_write(struct ak4117 *ak4117, unsigned char reg, unsigned char mask, unsigned char val);
void snd_ak4117_reinit(struct ak4117 *ak4117);
int snd_ak4117_build(struct ak4117 *ak4117, struct snd_pcm_substream *capture_substream);
+2 −2
Original line number Diff line number Diff line
@@ -71,8 +71,8 @@ struct snd_akm4xxx {
	} type;

	/* (array) information of combined codecs */
	struct snd_akm4xxx_dac_channel *dac_info;
	struct snd_akm4xxx_adc_channel *adc_info;
	const struct snd_akm4xxx_dac_channel *dac_info;
	const struct snd_akm4xxx_adc_channel *adc_info;

	struct snd_ak4xxx_ops ops;
};
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ static int snd_ak4114_dev_free(struct snd_device *device)

int snd_ak4114_create(struct snd_card *card,
		      ak4114_read_t *read, ak4114_write_t *write,
		      unsigned char pgm[7], unsigned char txcsb[5],
		      const unsigned char pgm[7], const unsigned char txcsb[5],
		      void *private_data, struct ak4114 **r_ak4114)
{
	struct ak4114 *chip;
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ static int snd_ak4117_dev_free(struct snd_device *device)
}

int snd_ak4117_create(struct snd_card *card, ak4117_read_t *read, ak4117_write_t *write,
		      unsigned char pgm[5], void *private_data, struct ak4117 **r_ak4117)
		      const unsigned char pgm[5], void *private_data, struct ak4117 **r_ak4117)
{
	struct ak4117 *chip;
	int err = 0;
Loading