diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-05-02 05:29:30 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-02 05:29:30 -0400 |
commit | 031024eea8d4b2a11331a7c269216e067a46625e (patch) | |
tree | 00cf53c376592b09ed7cb05154ebd2cba15427ca /sound | |
parent | a3ea8e8f2474c35b4c3e22262991afddb93c4c0e (diff) |
ALSA: hda - Constify some API function arguments
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 5 | ||||
-rw-r--r-- | sound/pci/hda/hda_local.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 2c40e415852b..d1a2351aabfa 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -3872,7 +3872,8 @@ EXPORT_SYMBOL_HDA(snd_hda_check_board_codec_sid_config); | |||
3872 | * | 3872 | * |
3873 | * Returns 0 if successful, or a negative error code. | 3873 | * Returns 0 if successful, or a negative error code. |
3874 | */ | 3874 | */ |
3875 | int snd_hda_add_new_ctls(struct hda_codec *codec, struct snd_kcontrol_new *knew) | 3875 | int snd_hda_add_new_ctls(struct hda_codec *codec, |
3876 | const struct snd_kcontrol_new *knew) | ||
3876 | { | 3877 | { |
3877 | int err; | 3878 | int err; |
3878 | 3879 | ||
@@ -4015,7 +4016,7 @@ int snd_hda_check_amp_list_power(struct hda_codec *codec, | |||
4015 | struct hda_loopback_check *check, | 4016 | struct hda_loopback_check *check, |
4016 | hda_nid_t nid) | 4017 | hda_nid_t nid) |
4017 | { | 4018 | { |
4018 | struct hda_amp_list *p; | 4019 | const struct hda_amp_list *p; |
4019 | int ch, v; | 4020 | int ch, v; |
4020 | 4021 | ||
4021 | if (!check->amplist) | 4022 | if (!check->amplist) |
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index ff5e2ac2239a..f36af375abbf 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -347,7 +347,7 @@ int snd_hda_check_board_codec_sid_config(struct hda_codec *codec, | |||
347 | int num_configs, const char * const *models, | 347 | int num_configs, const char * const *models, |
348 | const struct snd_pci_quirk *tbl); | 348 | const struct snd_pci_quirk *tbl); |
349 | int snd_hda_add_new_ctls(struct hda_codec *codec, | 349 | int snd_hda_add_new_ctls(struct hda_codec *codec, |
350 | struct snd_kcontrol_new *knew); | 350 | const struct snd_kcontrol_new *knew); |
351 | 351 | ||
352 | /* | 352 | /* |
353 | * unsolicited event handler | 353 | * unsolicited event handler |
@@ -567,7 +567,7 @@ struct hda_amp_list { | |||
567 | }; | 567 | }; |
568 | 568 | ||
569 | struct hda_loopback_check { | 569 | struct hda_loopback_check { |
570 | struct hda_amp_list *amplist; | 570 | const struct hda_amp_list *amplist; |
571 | int power_on; | 571 | int power_on; |
572 | }; | 572 | }; |
573 | 573 | ||