Commit 031024ee authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Constify some API function arguments

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent a3ea8e8f
......@@ -3872,7 +3872,8 @@ EXPORT_SYMBOL_HDA(snd_hda_check_board_codec_sid_config);
*
* Returns 0 if successful, or a negative error code.
*/
int snd_hda_add_new_ctls(struct hda_codec *codec, struct snd_kcontrol_new *knew)
int snd_hda_add_new_ctls(struct hda_codec *codec,
const struct snd_kcontrol_new *knew)
{
int err;
......@@ -4015,7 +4016,7 @@ int snd_hda_check_amp_list_power(struct hda_codec *codec,
struct hda_loopback_check *check,
hda_nid_t nid)
{
struct hda_amp_list *p;
const struct hda_amp_list *p;
int ch, v;
if (!check->amplist)
......
......@@ -347,7 +347,7 @@ int snd_hda_check_board_codec_sid_config(struct hda_codec *codec,
int num_configs, const char * const *models,
const struct snd_pci_quirk *tbl);
int snd_hda_add_new_ctls(struct hda_codec *codec,
struct snd_kcontrol_new *knew);
const struct snd_kcontrol_new *knew);
/*
* unsolicited event handler
......@@ -567,7 +567,7 @@ struct hda_amp_list {
};
struct hda_loopback_check {
struct hda_amp_list *amplist;
const struct hda_amp_list *amplist;
int power_on;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment