diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-12-14 22:19:36 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-19 04:34:41 -0500 |
commit | a67ff6a54095e27093ea501fb143fefe51a536c2 (patch) | |
tree | 48cb687a7569a8b6d4051bc9051f565b43803982 /sound/pci/hda/hda_intel.c | |
parent | 1bba160a0777046967707bbcdc9fb09d334ab2e5 (diff) |
ALSA: module_param: make bool parameters really bool
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 7d98240def0b..06fe2c546ee4 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -58,13 +58,13 @@ | |||
58 | 58 | ||
59 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 59 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
60 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 60 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
61 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 61 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
62 | static char *model[SNDRV_CARDS]; | 62 | static char *model[SNDRV_CARDS]; |
63 | static int position_fix[SNDRV_CARDS]; | 63 | static int position_fix[SNDRV_CARDS]; |
64 | static int bdl_pos_adj[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; | 64 | static int bdl_pos_adj[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; |
65 | static int probe_mask[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; | 65 | static int probe_mask[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; |
66 | static int probe_only[SNDRV_CARDS]; | 66 | static int probe_only[SNDRV_CARDS]; |
67 | static int single_cmd; | 67 | static bool single_cmd; |
68 | static int enable_msi = -1; | 68 | static int enable_msi = -1; |
69 | #ifdef CONFIG_SND_HDA_PATCH_LOADER | 69 | #ifdef CONFIG_SND_HDA_PATCH_LOADER |
70 | static char *patch[SNDRV_CARDS]; | 70 | static char *patch[SNDRV_CARDS]; |
@@ -116,12 +116,12 @@ MODULE_PARM_DESC(power_save, "Automatic power-saving timeout " | |||
116 | * this may give more power-saving, but will take longer time to | 116 | * this may give more power-saving, but will take longer time to |
117 | * wake up. | 117 | * wake up. |
118 | */ | 118 | */ |
119 | static int power_save_controller = 1; | 119 | static bool power_save_controller = 1; |
120 | module_param(power_save_controller, bool, 0644); | 120 | module_param(power_save_controller, bool, 0644); |
121 | MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode."); | 121 | MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode."); |
122 | #endif | 122 | #endif |
123 | 123 | ||
124 | static int align_buffer_size = 1; | 124 | static bool align_buffer_size = 1; |
125 | module_param(align_buffer_size, bool, 0644); | 125 | module_param(align_buffer_size, bool, 0644); |
126 | MODULE_PARM_DESC(align_buffer_size, | 126 | MODULE_PARM_DESC(align_buffer_size, |
127 | "Force buffer and period sizes to be multiple of 128 bytes."); | 127 | "Force buffer and period sizes to be multiple of 128 bytes."); |