mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ALSA: Remove superfluous hwdep ops
Remove NOP hwdep ops in sound drivers. Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
e0d80648c0
commit
28b7e343ee
8 changed files with 1 additions and 108 deletions
|
|
@ -24,25 +24,6 @@
|
|||
#include <asm/uaccess.h>
|
||||
#include "emux_voice.h"
|
||||
|
||||
/*
|
||||
* open the hwdep device
|
||||
*/
|
||||
static int
|
||||
snd_emux_hwdep_open(struct snd_hwdep *hw, struct file *file)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* close the device
|
||||
*/
|
||||
static int
|
||||
snd_emux_hwdep_release(struct snd_hwdep *hw, struct file *file)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#define TMP_CLIENT_ID 0x1001
|
||||
|
||||
|
|
@ -146,8 +127,6 @@ snd_emux_init_hwdep(struct snd_emux *emu)
|
|||
emu->hwdep = hw;
|
||||
strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME);
|
||||
hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE;
|
||||
hw->ops.open = snd_emux_hwdep_open;
|
||||
hw->ops.release = snd_emux_hwdep_release;
|
||||
hw->ops.ioctl = snd_emux_hwdep_ioctl;
|
||||
hw->exclusive = 1;
|
||||
hw->private_data = emu;
|
||||
|
|
|
|||
Loading…
Reference in a new issue