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
66229594
Commit
66229594
authored
Aug 22, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/wm0010' into asoc-next
parents
1518eb0a
d4780eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sound/soc/codecs/wm0010.c
sound/soc/codecs/wm0010.c
+6
-6
No files found.
sound/soc/codecs/wm0010.c
View file @
66229594
...
...
@@ -420,7 +420,7 @@ static int wm0010_firmware_load(const char *name, struct snd_soc_codec *codec)
xfer
->
codec
=
codec
;
list_add_tail
(
&
xfer
->
list
,
&
xfer_list
);
out
=
kzalloc
(
len
,
GFP_KERNEL
);
out
=
kzalloc
(
len
,
GFP_KERNEL
|
GFP_DMA
);
if
(
!
out
)
{
dev_err
(
codec
->
dev
,
"Failed to allocate RX buffer
\n
"
);
...
...
@@ -429,7 +429,7 @@ static int wm0010_firmware_load(const char *name, struct snd_soc_codec *codec)
}
xfer
->
t
.
rx_buf
=
out
;
img
=
kzalloc
(
len
,
GFP_KERNEL
);
img
=
kzalloc
(
len
,
GFP_KERNEL
|
GFP_DMA
);
if
(
!
img
)
{
dev_err
(
codec
->
dev
,
"Failed to allocate image buffer
\n
"
);
...
...
@@ -523,14 +523,14 @@ static int wm0010_stage2_load(struct snd_soc_codec *codec)
dev_dbg
(
codec
->
dev
,
"Downloading %zu byte stage 2 loader
\n
"
,
fw
->
size
);
/* Copy to local buffer first as vmalloc causes problems for dma */
img
=
kzalloc
(
fw
->
size
,
GFP_KERNEL
);
img
=
kzalloc
(
fw
->
size
,
GFP_KERNEL
|
GFP_DMA
);
if
(
!
img
)
{
dev_err
(
codec
->
dev
,
"Failed to allocate image buffer
\n
"
);
ret
=
-
ENOMEM
;
goto
abort2
;
}
out
=
kzalloc
(
fw
->
size
,
GFP_KERNEL
);
out
=
kzalloc
(
fw
->
size
,
GFP_KERNEL
|
GFP_DMA
);
if
(
!
out
)
{
dev_err
(
codec
->
dev
,
"Failed to allocate output buffer
\n
"
);
ret
=
-
ENOMEM
;
...
...
@@ -670,14 +670,14 @@ static int wm0010_boot(struct snd_soc_codec *codec)
ret
=
-
ENOMEM
;
len
=
pll_rec
.
length
+
8
;
out
=
kzalloc
(
len
,
GFP_KERNEL
);
out
=
kzalloc
(
len
,
GFP_KERNEL
|
GFP_DMA
);
if
(
!
out
)
{
dev_err
(
codec
->
dev
,
"Failed to allocate RX buffer
\n
"
);
goto
abort
;
}
img_swap
=
kzalloc
(
len
,
GFP_KERNEL
);
img_swap
=
kzalloc
(
len
,
GFP_KERNEL
|
GFP_DMA
);
if
(
!
img_swap
)
{
dev_err
(
codec
->
dev
,
"Failed to allocate image buffer
\n
"
);
...
...
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