diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-16 20:51:11 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-04-17 04:23:55 -0400 |
commit | a5f8661df0190f206ec73bd42b756d889c16150d (patch) | |
tree | 3dbdfd1f822cd20e9e63da66bfaf127e4afd974b | |
parent | ae369e559f16c5245d6b987c43799179af16e4d6 (diff) |
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>
-rw-r--r-- | sound/usb/usx2y/us122l.c | 2 | ||||
-rw-r--r-- | sound/usb/usx2y/usX2Yhwdep.c | 2 | ||||
-rw-r--r-- | sound/usb/usx2y/usx2yhwdeppcm.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sound/usb/usx2y/us122l.c b/sound/usb/usx2y/us122l.c index cf45bf1f7ee0..e118bdca983d 100644 --- a/sound/usb/usx2y/us122l.c +++ b/sound/usb/usx2y/us122l.c | |||
@@ -472,7 +472,7 @@ static int usb_stream_hwdep_new(struct snd_card *card) | |||
472 | hw->ops.mmap = usb_stream_hwdep_mmap; | 472 | hw->ops.mmap = usb_stream_hwdep_mmap; |
473 | hw->ops.poll = usb_stream_hwdep_poll; | 473 | hw->ops.poll = usb_stream_hwdep_poll; |
474 | 474 | ||
475 | sprintf(hw->name, "/proc/bus/usb/%03d/%03d/hwdeppcm", | 475 | sprintf(hw->name, "/dev/bus/usb/%03d/%03d/hwdeppcm", |
476 | dev->bus->busnum, dev->devnum); | 476 | dev->bus->busnum, dev->devnum); |
477 | return 0; | 477 | return 0; |
478 | } | 478 | } |
diff --git a/sound/usb/usx2y/usX2Yhwdep.c b/sound/usb/usx2y/usX2Yhwdep.c index 605e1047c01d..f4b3cda412fc 100644 --- a/sound/usb/usx2y/usX2Yhwdep.c +++ b/sound/usb/usx2y/usX2Yhwdep.c | |||
@@ -258,7 +258,7 @@ int usX2Y_hwdep_new(struct snd_card *card, struct usb_device* device) | |||
258 | hw->ops.mmap = snd_us428ctls_mmap; | 258 | hw->ops.mmap = snd_us428ctls_mmap; |
259 | hw->ops.poll = snd_us428ctls_poll; | 259 | hw->ops.poll = snd_us428ctls_poll; |
260 | hw->exclusive = 1; | 260 | hw->exclusive = 1; |
261 | sprintf(hw->name, "/proc/bus/usb/%03d/%03d", device->bus->busnum, device->devnum); | 261 | sprintf(hw->name, "/dev/bus/usb/%03d/%03d", device->bus->busnum, device->devnum); |
262 | return 0; | 262 | return 0; |
263 | } | 263 | } |
264 | 264 | ||
diff --git a/sound/usb/usx2y/usx2yhwdeppcm.c b/sound/usb/usx2y/usx2yhwdeppcm.c index f95164b91152..d51c7fd7835b 100644 --- a/sound/usb/usx2y/usx2yhwdeppcm.c +++ b/sound/usb/usx2y/usx2yhwdeppcm.c | |||
@@ -723,7 +723,7 @@ int usX2Y_hwdep_pcm_new(struct snd_card *card) | |||
723 | hw->ops.release = snd_usX2Y_hwdep_pcm_release; | 723 | hw->ops.release = snd_usX2Y_hwdep_pcm_release; |
724 | hw->ops.mmap = snd_usX2Y_hwdep_pcm_mmap; | 724 | hw->ops.mmap = snd_usX2Y_hwdep_pcm_mmap; |
725 | hw->exclusive = 1; | 725 | hw->exclusive = 1; |
726 | sprintf(hw->name, "/proc/bus/usb/%03d/%03d/hwdeppcm", dev->bus->busnum, dev->devnum); | 726 | sprintf(hw->name, "/dev/bus/usb/%03d/%03d/hwdeppcm", dev->bus->busnum, dev->devnum); |
727 | 727 | ||
728 | err = snd_pcm_new(card, NAME_ALLCAPS" hwdep Audio", 2, 1, 1, &pcm); | 728 | err = snd_pcm_new(card, NAME_ALLCAPS" hwdep Audio", 2, 1, 1, &pcm); |
729 | if (err < 0) { | 729 | if (err < 0) { |