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
92396e78
Commit
92396e78
authored
Sep 27, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/ab8500' into asoc-linus
parents
448c3f68
d63733ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
sound/soc/codecs/ab8500-codec.c
sound/soc/codecs/ab8500-codec.c
+6
-1
No files found.
sound/soc/codecs/ab8500-codec.c
View file @
92396e78
...
@@ -1225,13 +1225,18 @@ static int anc_status_control_put(struct snd_kcontrol *kcontrol,
...
@@ -1225,13 +1225,18 @@ static int anc_status_control_put(struct snd_kcontrol *kcontrol,
struct
ab8500_codec_drvdata
*
drvdata
=
dev_get_drvdata
(
codec
->
dev
);
struct
ab8500_codec_drvdata
*
drvdata
=
dev_get_drvdata
(
codec
->
dev
);
struct
device
*
dev
=
codec
->
dev
;
struct
device
*
dev
=
codec
->
dev
;
bool
apply_fir
,
apply_iir
;
bool
apply_fir
,
apply_iir
;
int
req
,
status
;
unsigned
int
req
;
int
status
;
dev_dbg
(
dev
,
"%s: Enter.
\n
"
,
__func__
);
dev_dbg
(
dev
,
"%s: Enter.
\n
"
,
__func__
);
mutex_lock
(
&
drvdata
->
anc_lock
);
mutex_lock
(
&
drvdata
->
anc_lock
);
req
=
ucontrol
->
value
.
integer
.
value
[
0
];
req
=
ucontrol
->
value
.
integer
.
value
[
0
];
if
(
req
>=
ARRAY_SIZE
(
enum_anc_state
))
{
status
=
-
EINVAL
;
goto
cleanup
;
}
if
(
req
!=
ANC_APPLY_FIR_IIR
&&
req
!=
ANC_APPLY_FIR
&&
if
(
req
!=
ANC_APPLY_FIR_IIR
&&
req
!=
ANC_APPLY_FIR
&&
req
!=
ANC_APPLY_IIR
)
{
req
!=
ANC_APPLY_IIR
)
{
dev_err
(
dev
,
"%s: ERROR: Unsupported status to set '%s'!
\n
"
,
dev_err
(
dev
,
"%s: ERROR: Unsupported status to set '%s'!
\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