]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ALSA: hda - Constify some API function arguments
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 May 2011 09:29:30 +0000 (11:29 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 May 2011 09:29:30 +0000 (11:29 +0200)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_local.h

index 2c40e415852b1248946650122e16f1f0f85efc97..d1a2351aabfa75a75a00cb4f60a1cf5e0f52384b 100644 (file)
@@ -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)
index ff5e2ac2239ae210cb673326f4f1db42dce93c11..f36af375abbf3a8f26052396be9e804b11992310 100644 (file)
@@ -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;
 };