diff options
Diffstat (limited to 'sound/oss/swarm_cs4297a.c')
-rw-r--r-- | sound/oss/swarm_cs4297a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/oss/swarm_cs4297a.c b/sound/oss/swarm_cs4297a.c index 471c274c5000..9f7e5f59ac82 100644 --- a/sound/oss/swarm_cs4297a.c +++ b/sound/oss/swarm_cs4297a.c | |||
@@ -77,6 +77,7 @@ | |||
77 | #include <linux/poll.h> | 77 | #include <linux/poll.h> |
78 | #include <linux/smp_lock.h> | 78 | #include <linux/smp_lock.h> |
79 | #include <linux/mutex.h> | 79 | #include <linux/mutex.h> |
80 | #include <linux/kernel.h> | ||
80 | 81 | ||
81 | #include <asm/byteorder.h> | 82 | #include <asm/byteorder.h> |
82 | #include <asm/dma.h> | 83 | #include <asm/dma.h> |
@@ -2676,7 +2677,7 @@ static int __init cs4297a_init(void) | |||
2676 | #if 0 | 2677 | #if 0 |
2677 | val = SOUND_MASK_LINE; | 2678 | val = SOUND_MASK_LINE; |
2678 | mixer_ioctl(s, SOUND_MIXER_WRITE_RECSRC, (unsigned long) &val); | 2679 | mixer_ioctl(s, SOUND_MIXER_WRITE_RECSRC, (unsigned long) &val); |
2679 | for (i = 0; i < sizeof(initvol) / sizeof(initvol[0]); i++) { | 2680 | for (i = 0; i < ARRAY_SIZE(initvol); i++) { |
2680 | val = initvol[i].vol; | 2681 | val = initvol[i].vol; |
2681 | mixer_ioctl(s, initvol[i].mixch, (unsigned long) &val); | 2682 | mixer_ioctl(s, initvol[i].mixch, (unsigned long) &val); |
2682 | } | 2683 | } |