Changeset 98


Ignore:
Timestamp:
May 7, 2007, 1:23:04 AM (18 years ago)
Author:
Brendan Oakley
Message:

Re-merged sound.c to beta12 to fix some errors, added adriver.h from beta12

Location:
GPL/branches/alsa-resync1/alsa-kernel
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/alsa-resync1/alsa-kernel/core/sound.c

    r34 r98  
    2020 */
    2121
    22 #define SNDRV_MAIN_OBJECT_FILE
    2322#include <sound/driver.h>
     23#include <linux/init.h>
     24#include <linux/slab.h>
     25#include <linux/time.h>
     26#include <sound/core.h>
    2427#include <sound/minors.h>
    2528#include <sound/info.h>
     
    2730#include <sound/control.h>
    2831#include <sound/initval.h>
    29 #ifdef CONFIG_KMOD
    3032#include <linux/kmod.h>
    31 #endif
    3233#ifdef CONFIG_DEVFS_FS
    3334#include <linux/devfs_fs_kernel.h>
     
    126127static int snd_open(struct inode *inode, struct file *file)
    127128{
    128     int minor = MINOR(inode->i_rdev);
     129        int minor = minor(inode->i_rdev);
    129130    int card = SNDRV_MINOR_CARD(minor);
    130131    int dev = SNDRV_MINOR_DEVICE(minor);
     
    171172struct file_operations snd_fops =
    172173{
    173 #ifdef LINUX_2_3
     174#ifndef LINUX_2_2
    174175owner:          THIS_MODULE,
    175176#endif
Note: See TracChangeset for help on using the changeset viewer.