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
e951f7e8
Commit
e951f7e8
authored
Feb 12, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/wm8994' into asoc-next
parents
6be1cbfb
8afd0ef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.c
+5
-5
No files found.
sound/soc/codecs/wm8994.c
View file @
e951f7e8
...
...
@@ -3737,7 +3737,7 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data)
{
struct
wm8994_priv
*
wm8994
=
data
;
struct
snd_soc_codec
*
codec
=
wm8994
->
hubs
.
codec
;
int
reg
,
count
;
int
reg
,
count
,
ret
;
/*
* Jack detection may have detected a removal simulataneously
...
...
@@ -3783,11 +3783,11 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data)
/* Avoid a transient report when the accessory is being removed */
if
(
wm8994
->
jackdet
)
{
re
g
=
snd_soc_read
(
codec
,
WM1811_JACKDET_CTRL
);
if
(
re
g
<
0
)
{
re
t
=
snd_soc_read
(
codec
,
WM1811_JACKDET_CTRL
);
if
(
re
t
<
0
)
{
dev_err
(
codec
->
dev
,
"Failed to read jack status: %d
\n
"
,
re
g
);
}
else
if
(
!
(
re
g
&
WM1811_JACKDET_LVL
))
{
re
t
);
}
else
if
(
!
(
re
t
&
WM1811_JACKDET_LVL
))
{
dev_dbg
(
codec
->
dev
,
"Ignoring removed jack
\n
"
);
return
IRQ_HANDLED
;
}
...
...
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