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
Kirill Smelkov
linux
Commits
291186e0
Commit
291186e0
authored
Feb 16, 2010
by
Jaroslav Kysela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: usbmixer - use MAX_ID_ELEMS where possible
Signed-off-by:
Jaroslav Kysela
<
perex@perex.cz
>
parent
7affdc17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sound/usb/usbmixer.c
sound/usb/usbmixer.c
+3
-2
No files found.
sound/usb/usbmixer.c
View file @
291186e0
...
...
@@ -108,7 +108,7 @@ struct mixer_build {
struct
usb_mixer_interface
*
mixer
;
unsigned
char
*
buffer
;
unsigned
int
buflen
;
DECLARE_BITMAP
(
unitbitmap
,
256
);
DECLARE_BITMAP
(
unitbitmap
,
MAX_ID_ELEMS
);
struct
usb_audio_term
oterm
;
const
struct
usbmix_name_map
*
map
;
const
struct
usbmix_selector_map
*
selector_map
;
...
...
@@ -2265,7 +2265,8 @@ int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,
mixer
->
chip
=
chip
;
mixer
->
ctrlif
=
ctrlif
;
mixer
->
ignore_ctl_error
=
ignore_error
;
mixer
->
id_elems
=
kcalloc
(
256
,
sizeof
(
*
mixer
->
id_elems
),
GFP_KERNEL
);
mixer
->
id_elems
=
kcalloc
(
MAX_ID_ELEMS
,
sizeof
(
*
mixer
->
id_elems
),
GFP_KERNEL
);
if
(
!
mixer
->
id_elems
)
{
kfree
(
mixer
);
return
-
ENOMEM
;
...
...
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