Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
linux-seco-imx
Commits
b30ead5f
Commit
b30ead5f
authored
14 years ago
by
Mark Brown
Browse files
Options
Downloads
Patches
Plain Diff
ASoC: Hook up DC servo completion IRQ for WM8994 and WM8958
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
d96ca3cd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sound/soc/codecs/wm8994.c
+11
-0
11 additions, 0 deletions
sound/soc/codecs/wm8994.c
with
11 additions
and
0 deletions
sound/soc/codecs/wm8994.c
+
11
−
0
View file @
b30ead5f
...
@@ -2932,6 +2932,12 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
...
@@ -2932,6 +2932,12 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
break
;
break
;
}
}
ret
=
wm8994_request_irq
(
codec
->
control_data
,
WM8994_IRQ_DCS_DONE
,
wm_hubs_dcs_done
,
"DC servo done"
,
&
wm8994
->
hubs
);
if
(
ret
==
0
)
wm8994
->
hubs
.
dcs_done_irq
=
true
;
switch
(
control
->
type
)
{
switch
(
control
->
type
)
{
case
WM8994
:
case
WM8994
:
if
(
wm8994
->
micdet_irq
)
{
if
(
wm8994
->
micdet_irq
)
{
...
@@ -3173,6 +3179,8 @@ err_irq:
...
@@ -3173,6 +3179,8 @@ err_irq:
wm8994_free_irq
(
codec
->
control_data
,
WM8994_IRQ_MIC1_SHRT
,
wm8994
);
wm8994_free_irq
(
codec
->
control_data
,
WM8994_IRQ_MIC1_SHRT
,
wm8994
);
if
(
wm8994
->
micdet_irq
)
if
(
wm8994
->
micdet_irq
)
free_irq
(
wm8994
->
micdet_irq
,
wm8994
);
free_irq
(
wm8994
->
micdet_irq
,
wm8994
);
wm8994_free_irq
(
codec
->
control_data
,
WM8994_IRQ_DCS_DONE
,
&
wm8994
->
hubs
);
err:
err:
kfree
(
wm8994
);
kfree
(
wm8994
);
return
ret
;
return
ret
;
...
@@ -3187,6 +3195,9 @@ static int wm8994_codec_remove(struct snd_soc_codec *codec)
...
@@ -3187,6 +3195,9 @@ static int wm8994_codec_remove(struct snd_soc_codec *codec)
pm_runtime_disable
(
codec
->
dev
);
pm_runtime_disable
(
codec
->
dev
);
wm8994_free_irq
(
codec
->
control_data
,
WM8994_IRQ_DCS_DONE
,
&
wm8994
->
hubs
);
switch
(
control
->
type
)
{
switch
(
control
->
type
)
{
case
WM8994
:
case
WM8994
:
if
(
wm8994
->
micdet_irq
)
if
(
wm8994
->
micdet_irq
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment