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
3fef7f79
Commit
3fef7f79
authored
Jul 31, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/wm0010' into asoc-linus
parents
08d0a975
4f8b1914
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
sound/soc/codecs/wm0010.c
sound/soc/codecs/wm0010.c
+12
-12
No files found.
sound/soc/codecs/wm0010.c
View file @
3fef7f79
...
@@ -410,6 +410,16 @@ static int wm0010_firmware_load(const char *name, struct snd_soc_codec *codec)
...
@@ -410,6 +410,16 @@ static int wm0010_firmware_load(const char *name, struct snd_soc_codec *codec)
rec
->
command
,
rec
->
length
);
rec
->
command
,
rec
->
length
);
len
=
rec
->
length
+
8
;
len
=
rec
->
length
+
8
;
xfer
=
kzalloc
(
sizeof
(
*
xfer
),
GFP_KERNEL
);
if
(
!
xfer
)
{
dev_err
(
codec
->
dev
,
"Failed to allocate xfer
\n
"
);
ret
=
-
ENOMEM
;
goto
abort
;
}
xfer
->
codec
=
codec
;
list_add_tail
(
&
xfer
->
list
,
&
xfer_list
);
out
=
kzalloc
(
len
,
GFP_KERNEL
);
out
=
kzalloc
(
len
,
GFP_KERNEL
);
if
(
!
out
)
{
if
(
!
out
)
{
dev_err
(
codec
->
dev
,
dev_err
(
codec
->
dev
,
...
@@ -417,6 +427,7 @@ static int wm0010_firmware_load(const char *name, struct snd_soc_codec *codec)
...
@@ -417,6 +427,7 @@ static int wm0010_firmware_load(const char *name, struct snd_soc_codec *codec)
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
abort1
;
goto
abort1
;
}
}
xfer
->
t
.
rx_buf
=
out
;
img
=
kzalloc
(
len
,
GFP_KERNEL
);
img
=
kzalloc
(
len
,
GFP_KERNEL
);
if
(
!
img
)
{
if
(
!
img
)
{
...
@@ -425,24 +436,13 @@ static int wm0010_firmware_load(const char *name, struct snd_soc_codec *codec)
...
@@ -425,24 +436,13 @@ static int wm0010_firmware_load(const char *name, struct snd_soc_codec *codec)
ret
=
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
abort1
;
goto
abort1
;
}
}
xfer
->
t
.
tx_buf
=
img
;
byte_swap_64
((
u64
*
)
&
rec
->
command
,
img
,
len
);
byte_swap_64
((
u64
*
)
&
rec
->
command
,
img
,
len
);
xfer
=
kzalloc
(
sizeof
(
*
xfer
),
GFP_KERNEL
);
if
(
!
xfer
)
{
dev_err
(
codec
->
dev
,
"Failed to allocate xfer
\n
"
);
ret
=
-
ENOMEM
;
goto
abort1
;
}
xfer
->
codec
=
codec
;
list_add_tail
(
&
xfer
->
list
,
&
xfer_list
);
spi_message_init
(
&
xfer
->
m
);
spi_message_init
(
&
xfer
->
m
);
xfer
->
m
.
complete
=
wm0010_boot_xfer_complete
;
xfer
->
m
.
complete
=
wm0010_boot_xfer_complete
;
xfer
->
m
.
context
=
xfer
;
xfer
->
m
.
context
=
xfer
;
xfer
->
t
.
tx_buf
=
img
;
xfer
->
t
.
rx_buf
=
out
;
xfer
->
t
.
len
=
len
;
xfer
->
t
.
len
=
len
;
xfer
->
t
.
bits_per_word
=
8
;
xfer
->
t
.
bits_per_word
=
8
;
...
...
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