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
6385723a
Commit
6385723a
authored
Jun 17, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/wm8994' into asoc-linus
parents
6b0e233a
b3831417
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.c
+3
-6
No files found.
sound/soc/codecs/wm8994.c
View file @
6385723a
...
@@ -3505,6 +3505,7 @@ static irqreturn_t wm8994_mic_irq(int irq, void *data)
...
@@ -3505,6 +3505,7 @@ static irqreturn_t wm8994_mic_irq(int irq, void *data)
return
IRQ_HANDLED
;
return
IRQ_HANDLED
;
}
}
/* Should be called with accdet_lock held */
static
void
wm1811_micd_stop
(
struct
snd_soc_codec
*
codec
)
static
void
wm1811_micd_stop
(
struct
snd_soc_codec
*
codec
)
{
{
struct
wm8994_priv
*
wm8994
=
snd_soc_codec_get_drvdata
(
codec
);
struct
wm8994_priv
*
wm8994
=
snd_soc_codec_get_drvdata
(
codec
);
...
@@ -3512,14 +3513,10 @@ static void wm1811_micd_stop(struct snd_soc_codec *codec)
...
@@ -3512,14 +3513,10 @@ static void wm1811_micd_stop(struct snd_soc_codec *codec)
if
(
!
wm8994
->
jackdet
)
if
(
!
wm8994
->
jackdet
)
return
;
return
;
mutex_lock
(
&
wm8994
->
accdet_lock
);
snd_soc_update_bits
(
codec
,
WM8958_MIC_DETECT_1
,
WM8958_MICD_ENA
,
0
);
snd_soc_update_bits
(
codec
,
WM8958_MIC_DETECT_1
,
WM8958_MICD_ENA
,
0
);
wm1811_jackdet_set_mode
(
codec
,
WM1811_JACKDET_MODE_JACK
);
wm1811_jackdet_set_mode
(
codec
,
WM1811_JACKDET_MODE_JACK
);
mutex_unlock
(
&
wm8994
->
accdet_lock
);
if
(
wm8994
->
wm8994
->
pdata
.
jd_ext_cap
)
if
(
wm8994
->
wm8994
->
pdata
.
jd_ext_cap
)
snd_soc_dapm_disable_pin
(
&
codec
->
dapm
,
snd_soc_dapm_disable_pin
(
&
codec
->
dapm
,
"MICBIAS2"
);
"MICBIAS2"
);
...
@@ -3560,10 +3557,10 @@ static void wm8958_open_circuit_work(struct work_struct *work)
...
@@ -3560,10 +3557,10 @@ static void wm8958_open_circuit_work(struct work_struct *work)
open_circuit_work
.
work
);
open_circuit_work
.
work
);
struct
device
*
dev
=
wm8994
->
wm8994
->
dev
;
struct
device
*
dev
=
wm8994
->
wm8994
->
dev
;
wm1811_micd_stop
(
wm8994
->
hubs
.
codec
);
mutex_lock
(
&
wm8994
->
accdet_lock
);
mutex_lock
(
&
wm8994
->
accdet_lock
);
wm1811_micd_stop
(
wm8994
->
hubs
.
codec
);
dev_dbg
(
dev
,
"Reporting open circuit
\n
"
);
dev_dbg
(
dev
,
"Reporting open circuit
\n
"
);
wm8994
->
jack_mic
=
false
;
wm8994
->
jack_mic
=
false
;
...
...
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