Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5d7ee529
Commit
5d7ee529
authored
Apr 09, 2003
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Apr 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: remove unnecessary setting of configuration from audio
audio should not mess with configurations.
parent
071b11b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
drivers/usb/class/audio.c
drivers/usb/class/audio.c
+2
-4
No files found.
drivers/usb/class/audio.c
View file @
5d7ee529
...
@@ -99,6 +99,8 @@
...
@@ -99,6 +99,8 @@
* for abs. Bug report by Andrew Morton <andrewm@uow.edu.au>
* for abs. Bug report by Andrew Morton <andrewm@uow.edu.au>
* 2001-06-16: Bryce Nesbitt <bryce@obviously.com>
* 2001-06-16: Bryce Nesbitt <bryce@obviously.com>
* Fix SNDCTL_DSP_STEREO API violation
* Fix SNDCTL_DSP_STEREO API violation
* 2003-04-08: Oliver Neukum (oliver@neukum.name):
* Setting a configuration is done by usbcore and must not be overridden
*/
*/
/*
/*
...
@@ -3790,10 +3792,6 @@ static int usb_audio_probe(struct usb_interface *intf,
...
@@ -3790,10 +3792,6 @@ static int usb_audio_probe(struct usb_interface *intf,
*/
*/
i
=
dev
->
actconfig
-
config
;
i
=
dev
->
actconfig
-
config
;
if
(
usb_set_configuration
(
dev
,
config
->
desc
.
bConfigurationValue
)
<
0
)
{
printk
(
KERN_ERR
"usbaudio: set_configuration failed (ConfigValue 0x%x)
\n
"
,
config
->
desc
.
bConfigurationValue
);
return
-
EIO
;
}
ret
=
usb_get_descriptor
(
dev
,
USB_DT_CONFIG
,
i
,
buf
,
8
);
ret
=
usb_get_descriptor
(
dev
,
USB_DT_CONFIG
,
i
,
buf
,
8
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
printk
(
KERN_ERR
"usbaudio: cannot get first 8 bytes of config descriptor %d of device %d (error %d)
\n
"
,
i
,
dev
->
devnum
,
ret
);
printk
(
KERN_ERR
"usbaudio: cannot get first 8 bytes of config descriptor %d of device %d (error %d)
\n
"
,
i
,
dev
->
devnum
,
ret
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment