ALSA: usb-audio: replace /proc/bus/usb by /dev/bus/usb
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 17 Apr 2017 00:51:11 +0000 (21:51 -0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Apr 2017 08:23:55 +0000 (10:23 +0200)
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>
sound/usb/usx2y/us122l.c
sound/usb/usx2y/usX2Yhwdep.c
sound/usb/usx2y/usx2yhwdeppcm.c

index cf45bf1f7ee0b0a441f5a9258deaf203983f0f84..e118bdca983d435f323139ac4fa5b8fd9b47fae4 100644 (file)
@@ -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;
 }
index 605e1047c01dfbc2dd025b9033f133aaef5fc5f4..f4b3cda412fcc6d887b997d9e4cf8795900daffd 100644 (file)
@@ -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;
 }
 
index f95164b91152da9e137594698bb90ca657b0c08f..d51c7fd7835bb1b8e54a521fb6e9a668781bdb5e 100644 (file)
@@ -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) {