diff options
Diffstat (limited to 'sound/oss/es1371.c')
-rw-r--r-- | sound/oss/es1371.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/oss/es1371.c b/sound/oss/es1371.c index cc282a0cd539..e1fbcca8e722 100644 --- a/sound/oss/es1371.c +++ b/sound/oss/es1371.c | |||
@@ -131,6 +131,7 @@ | |||
131 | #include <linux/dma-mapping.h> | 131 | #include <linux/dma-mapping.h> |
132 | #include <linux/mutex.h> | 132 | #include <linux/mutex.h> |
133 | #include <linux/mm.h> | 133 | #include <linux/mm.h> |
134 | #include <linux/kernel.h> | ||
134 | 135 | ||
135 | #include <asm/io.h> | 136 | #include <asm/io.h> |
136 | #include <asm/page.h> | 137 | #include <asm/page.h> |
@@ -2998,7 +2999,7 @@ static int __devinit es1371_probe(struct pci_dev *pcidev, const struct pci_devic | |||
2998 | set_fs(KERNEL_DS); | 2999 | set_fs(KERNEL_DS); |
2999 | val = SOUND_MASK_LINE; | 3000 | val = SOUND_MASK_LINE; |
3000 | mixdev_ioctl(s->codec, SOUND_MIXER_WRITE_RECSRC, (unsigned long)&val); | 3001 | mixdev_ioctl(s->codec, SOUND_MIXER_WRITE_RECSRC, (unsigned long)&val); |
3001 | for (i = 0; i < sizeof(initvol)/sizeof(initvol[0]); i++) { | 3002 | for (i = 0; i < ARRAY_SIZE(initvol); i++) { |
3002 | val = initvol[i].vol; | 3003 | val = initvol[i].vol; |
3003 | mixdev_ioctl(s->codec, initvol[i].mixch, (unsigned long)&val); | 3004 | mixdev_ioctl(s->codec, initvol[i].mixch, (unsigned long)&val); |
3004 | } | 3005 | } |