aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss
diff options
context:
space:
mode:
Diffstat (limited to 'sound/oss')
-rw-r--r--sound/oss/au1550_ac97.c4
-rw-r--r--sound/oss/nec_vrc5477.c4
-rw-r--r--sound/oss/swarm_cs4297a.c3
3 files changed, 6 insertions, 5 deletions
diff --git a/sound/oss/au1550_ac97.c b/sound/oss/au1550_ac97.c
index 219795171c71..a339f0c0d512 100644
--- a/sound/oss/au1550_ac97.c
+++ b/sound/oss/au1550_ac97.c
@@ -1354,11 +1354,11 @@ au1550_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
1354 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); 1354 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped);
1355 1355
1356#ifdef DEBUG 1356#ifdef DEBUG
1357 for (count=0; count<sizeof(ioctl_str)/sizeof(ioctl_str[0]); count++) { 1357 for (count = 0; count < ARRAY_SIZE(ioctl_str); count++) {
1358 if (ioctl_str[count].cmd == cmd) 1358 if (ioctl_str[count].cmd == cmd)
1359 break; 1359 break;
1360 } 1360 }
1361 if (count < sizeof(ioctl_str) / sizeof(ioctl_str[0])) 1361 if (count < ARRAY_SIZE(ioctl_str))
1362 pr_debug("ioctl %s, arg=0x%lxn", ioctl_str[count].str, arg); 1362 pr_debug("ioctl %s, arg=0x%lxn", ioctl_str[count].str, arg);
1363 else 1363 else
1364 pr_debug("ioctl 0x%x unknown, arg=0x%lx\n", cmd, arg); 1364 pr_debug("ioctl 0x%x unknown, arg=0x%lx\n", cmd, arg);
diff --git a/sound/oss/nec_vrc5477.c b/sound/oss/nec_vrc5477.c
index da9728e17727..d459bdb14154 100644
--- a/sound/oss/nec_vrc5477.c
+++ b/sound/oss/nec_vrc5477.c
@@ -1381,11 +1381,11 @@ static int vrc5477_ac97_ioctl(struct inode *inode, struct file *file,
1381 int val, ret; 1381 int val, ret;
1382 1382
1383#ifdef VRC5477_AC97_DEBUG 1383#ifdef VRC5477_AC97_DEBUG
1384 for (count=0; count<sizeof(ioctl_str)/sizeof(ioctl_str[0]); count++) { 1384 for (count = 0; count < ARRAY_SIZE(ioctl_str); count++) {
1385 if (ioctl_str[count].cmd == cmd) 1385 if (ioctl_str[count].cmd == cmd)
1386 break; 1386 break;
1387 } 1387 }
1388 if (count < sizeof(ioctl_str)/sizeof(ioctl_str[0])) 1388 if (count < ARRAY_SIZE(ioctl_str))
1389 printk(KERN_INFO PFX "ioctl %s\n", ioctl_str[count].str); 1389 printk(KERN_INFO PFX "ioctl %s\n", ioctl_str[count].str);
1390 else 1390 else
1391 printk(KERN_INFO PFX "ioctl unknown, 0x%x\n", cmd); 1391 printk(KERN_INFO PFX "ioctl unknown, 0x%x\n", cmd);
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 }