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
baba2e0d
Commit
baba2e0d
authored
Apr 24, 2012
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: usb-audio: Add missing error checks in snd_ebox44_create_mixer()
Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
d34bf148
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
9 deletions
+29
-9
sound/usb/mixer_quirks.c
sound/usb/mixer_quirks.c
+29
-9
No files found.
sound/usb/mixer_quirks.c
View file @
baba2e0d
...
...
@@ -935,26 +935,46 @@ static int snd_ftu_create_mixer(struct usb_mixer_interface *mixer)
static
int
snd_ebox44_create_mixer
(
struct
usb_mixer_interface
*
mixer
)
{
snd_create_std_mono_ctl
(
mixer
,
4
,
1
,
0x0
,
USB_MIXER_INV_BOOLEAN
,
int
err
;
err
=
snd_create_std_mono_ctl
(
mixer
,
4
,
1
,
0x0
,
USB_MIXER_INV_BOOLEAN
,
"Headphone Playback Switch"
,
NULL
);
snd_create_std_mono_ctl
(
mixer
,
4
,
2
,
0x1
,
USB_MIXER_S16
,
if
(
err
<
0
)
return
err
;
err
=
snd_create_std_mono_ctl
(
mixer
,
4
,
2
,
0x1
,
USB_MIXER_S16
,
"Headphone A Mix Playback Volume"
,
NULL
);
snd_create_std_mono_ctl
(
mixer
,
4
,
2
,
0x2
,
USB_MIXER_S16
,
if
(
err
<
0
)
return
err
;
err
=
snd_create_std_mono_ctl
(
mixer
,
4
,
2
,
0x2
,
USB_MIXER_S16
,
"Headphone B Mix Playback Volume"
,
NULL
);
if
(
err
<
0
)
return
err
;
snd_create_std_mono_ctl
(
mixer
,
7
,
1
,
0x0
,
USB_MIXER_INV_BOOLEAN
,
err
=
snd_create_std_mono_ctl
(
mixer
,
7
,
1
,
0x0
,
USB_MIXER_INV_BOOLEAN
,
"Output Playback Switch"
,
NULL
);
snd_create_std_mono_ctl
(
mixer
,
7
,
2
,
0x1
,
USB_MIXER_S16
,
if
(
err
<
0
)
return
err
;
err
=
snd_create_std_mono_ctl
(
mixer
,
7
,
2
,
0x1
,
USB_MIXER_S16
,
"Output A Playback Volume"
,
NULL
);
snd_create_std_mono_ctl
(
mixer
,
7
,
2
,
0x2
,
USB_MIXER_S16
,
if
(
err
<
0
)
return
err
;
err
=
snd_create_std_mono_ctl
(
mixer
,
7
,
2
,
0x2
,
USB_MIXER_S16
,
"Output B Playback Volume"
,
NULL
);
if
(
err
<
0
)
return
err
;
snd_create_std_mono_ctl
(
mixer
,
10
,
1
,
0x0
,
USB_MIXER_INV_BOOLEAN
,
err
=
snd_create_std_mono_ctl
(
mixer
,
10
,
1
,
0x0
,
USB_MIXER_INV_BOOLEAN
,
"Input Capture Switch"
,
NULL
);
snd_create_std_mono_ctl
(
mixer
,
10
,
2
,
0x1
,
USB_MIXER_S16
,
if
(
err
<
0
)
return
err
;
err
=
snd_create_std_mono_ctl
(
mixer
,
10
,
2
,
0x1
,
USB_MIXER_S16
,
"Input A Capture Volume"
,
NULL
);
snd_create_std_mono_ctl
(
mixer
,
10
,
2
,
0x2
,
USB_MIXER_S16
,
if
(
err
<
0
)
return
err
;
err
=
snd_create_std_mono_ctl
(
mixer
,
10
,
2
,
0x2
,
USB_MIXER_S16
,
"Input B Capture Volume"
,
NULL
);
if
(
err
<
0
)
return
err
;
return
0
;
}
...
...
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