forked from Minki/linux
ALSA: usb-audio: replace /proc/bus/usb by /dev/bus/usb
The /proc/bus/usb devices don't exist anymore, since when we got rid of usbfs. Those devices are now seen at /dev/bus/usb. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ae369e559f
commit
a5f8661df0
@ -472,7 +472,7 @@ static int usb_stream_hwdep_new(struct snd_card *card)
|
||||
hw->ops.mmap = usb_stream_hwdep_mmap;
|
||||
hw->ops.poll = usb_stream_hwdep_poll;
|
||||
|
||||
sprintf(hw->name, "/proc/bus/usb/%03d/%03d/hwdeppcm",
|
||||
sprintf(hw->name, "/dev/bus/usb/%03d/%03d/hwdeppcm",
|
||||
dev->bus->busnum, dev->devnum);
|
||||
return 0;
|
||||
}
|
||||
|
@ -258,7 +258,7 @@ int usX2Y_hwdep_new(struct snd_card *card, struct usb_device* device)
|
||||
hw->ops.mmap = snd_us428ctls_mmap;
|
||||
hw->ops.poll = snd_us428ctls_poll;
|
||||
hw->exclusive = 1;
|
||||
sprintf(hw->name, "/proc/bus/usb/%03d/%03d", device->bus->busnum, device->devnum);
|
||||
sprintf(hw->name, "/dev/bus/usb/%03d/%03d", device->bus->busnum, device->devnum);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -723,7 +723,7 @@ int usX2Y_hwdep_pcm_new(struct snd_card *card)
|
||||
hw->ops.release = snd_usX2Y_hwdep_pcm_release;
|
||||
hw->ops.mmap = snd_usX2Y_hwdep_pcm_mmap;
|
||||
hw->exclusive = 1;
|
||||
sprintf(hw->name, "/proc/bus/usb/%03d/%03d/hwdeppcm", dev->bus->busnum, dev->devnum);
|
||||
sprintf(hw->name, "/dev/bus/usb/%03d/%03d/hwdeppcm", dev->bus->busnum, dev->devnum);
|
||||
|
||||
err = snd_pcm_new(card, NAME_ALLCAPS" hwdep Audio", 2, 1, 1, &pcm);
|
||||
if (err < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user