aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-12-14 22:19:36 -0500
committerTakashi Iwai <tiwai@suse.de>2011-12-19 04:34:41 -0500
commita67ff6a54095e27093ea501fb143fefe51a536c2 (patch)
tree48cb687a7569a8b6d4051bc9051f565b43803982 /sound/oss
parent1bba160a0777046967707bbcdc9fb09d334ab2e5 (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/oss')
-rw-r--r--sound/oss/ad1848.c8
-rw-r--r--sound/oss/msnd_pinnacle.c2
-rw-r--r--sound/oss/pas2_card.c12
-rw-r--r--sound/oss/pss.c10
-rw-r--r--sound/oss/trix.c2
5 files changed, 17 insertions, 17 deletions
diff --git a/sound/oss/ad1848.c b/sound/oss/ad1848.c
index 8a197fd3c57e..98d23bdcaf21 100644
--- a/sound/oss/ad1848.c
+++ b/sound/oss/ad1848.c
@@ -119,9 +119,9 @@ ad1848_port_info;
119static struct address_info cfg; 119static struct address_info cfg;
120static int nr_ad1848_devs; 120static int nr_ad1848_devs;
121 121
122static int deskpro_xl; 122static bool deskpro_xl;
123static int deskpro_m; 123static bool deskpro_m;
124static int soundpro; 124static bool soundpro;
125 125
126static volatile signed char irq2dev[17] = { 126static volatile signed char irq2dev[17] = {
127 -1, -1, -1, -1, -1, -1, -1, -1, 127 -1, -1, -1, -1, -1, -1, -1, -1,
@@ -177,7 +177,7 @@ static struct {
177#ifdef CONFIG_PNP 177#ifdef CONFIG_PNP
178static int isapnp = 1; 178static int isapnp = 1;
179static int isapnpjump; 179static int isapnpjump;
180static int reverse; 180static bool reverse;
181 181
182static int audio_activated; 182static int audio_activated;
183#else 183#else
diff --git a/sound/oss/msnd_pinnacle.c b/sound/oss/msnd_pinnacle.c
index 7b5c77b32a90..eba734560f6f 100644
--- a/sound/oss/msnd_pinnacle.c
+++ b/sound/oss/msnd_pinnacle.c
@@ -1701,7 +1701,7 @@ static int joystick_io __initdata = CONFIG_MSNDPIN_JOYSTICK_IO;
1701#ifndef CONFIG_MSNDPIN_DIGITAL 1701#ifndef CONFIG_MSNDPIN_DIGITAL
1702# define CONFIG_MSNDPIN_DIGITAL 0 1702# define CONFIG_MSNDPIN_DIGITAL 0
1703#endif 1703#endif
1704static int digital __initdata = CONFIG_MSNDPIN_DIGITAL; 1704static bool digital __initdata = CONFIG_MSNDPIN_DIGITAL;
1705 1705
1706#endif /* MSND_CLASSIC */ 1706#endif /* MSND_CLASSIC */
1707 1707
diff --git a/sound/oss/pas2_card.c b/sound/oss/pas2_card.c
index 7f377ec3486d..dabf8a871dcc 100644
--- a/sound/oss/pas2_card.c
+++ b/sound/oss/pas2_card.c
@@ -41,19 +41,19 @@ static int pas_irq;
41static int pas_sb_base; 41static int pas_sb_base;
42DEFINE_SPINLOCK(pas_lock); 42DEFINE_SPINLOCK(pas_lock);
43#ifndef CONFIG_PAS_JOYSTICK 43#ifndef CONFIG_PAS_JOYSTICK
44static int joystick; 44static bool joystick;
45#else 45#else
46static int joystick = 1; 46static bool joystick = 1;
47#endif 47#endif
48#ifdef SYMPHONY_PAS 48#ifdef SYMPHONY_PAS
49static int symphony = 1; 49static bool symphony = 1;
50#else 50#else
51static int symphony; 51static bool symphony;
52#endif 52#endif
53#ifdef BROKEN_BUS_CLOCK 53#ifdef BROKEN_BUS_CLOCK
54static int broken_bus_clock = 1; 54static bool broken_bus_clock = 1;
55#else 55#else
56static int broken_bus_clock; 56static bool broken_bus_clock;
57#endif 57#endif
58 58
59static struct address_info cfg; 59static struct address_info cfg;
diff --git a/sound/oss/pss.c b/sound/oss/pss.c
index 2fc0624024b5..0f32a561f15f 100644
--- a/sound/oss/pss.c
+++ b/sound/oss/pss.c
@@ -117,9 +117,9 @@
117 117
118/* If compiled into kernel, it enable or disable pss mixer */ 118/* If compiled into kernel, it enable or disable pss mixer */
119#ifdef CONFIG_PSS_MIXER 119#ifdef CONFIG_PSS_MIXER
120static int pss_mixer = 1; 120static bool pss_mixer = 1;
121#else 121#else
122static int pss_mixer; 122static bool pss_mixer;
123#endif 123#endif
124 124
125 125
@@ -147,7 +147,7 @@ static DEFINE_SPINLOCK(lock);
147static int pss_initialized; 147static int pss_initialized;
148static int nonstandard_microcode; 148static int nonstandard_microcode;
149static int pss_cdrom_port = -1; /* Parameter for the PSS cdrom port */ 149static int pss_cdrom_port = -1; /* Parameter for the PSS cdrom port */
150static int pss_enable_joystick; /* Parameter for enabling the joystick */ 150static bool pss_enable_joystick; /* Parameter for enabling the joystick */
151static coproc_operations pss_coproc_operations; 151static coproc_operations pss_coproc_operations;
152 152
153static void pss_write(pss_confdata *devc, int data) 153static void pss_write(pss_confdata *devc, int data)
@@ -1133,8 +1133,8 @@ static int mss_irq __initdata = -1;
1133static int mss_dma __initdata = -1; 1133static int mss_dma __initdata = -1;
1134static int mpu_io __initdata = -1; 1134static int mpu_io __initdata = -1;
1135static int mpu_irq __initdata = -1; 1135static int mpu_irq __initdata = -1;
1136static int pss_no_sound = 0; /* Just configure non-sound components */ 1136static bool pss_no_sound = 0; /* Just configure non-sound components */
1137static int pss_keep_settings = 1; /* Keep hardware settings at module exit */ 1137static bool pss_keep_settings = 1; /* Keep hardware settings at module exit */
1138static char *pss_firmware = "/etc/sound/pss_synth"; 1138static char *pss_firmware = "/etc/sound/pss_synth";
1139 1139
1140module_param(pss_io, int, 0); 1140module_param(pss_io, int, 0);
diff --git a/sound/oss/trix.c b/sound/oss/trix.c
index e04169e8e3f8..944e0c015485 100644
--- a/sound/oss/trix.c
+++ b/sound/oss/trix.c
@@ -31,7 +31,7 @@
31 31
32static int mpu; 32static int mpu;
33 33
34static int joystick; 34static bool joystick;
35 35
36static unsigned char trix_read(int addr) 36static unsigned char trix_read(int addr)
37{ 37{