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
1ab9ecc2
Commit
1ab9ecc2
authored
May 28, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/wm8994' into asoc-linus
parents
9f1b2556
7d6898be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.c
+11
-1
No files found.
sound/soc/codecs/wm8994.c
View file @
1ab9ecc2
...
@@ -383,6 +383,8 @@ static int wm8994_get_drc_enum(struct snd_kcontrol *kcontrol,
...
@@ -383,6 +383,8 @@ static int wm8994_get_drc_enum(struct snd_kcontrol *kcontrol,
struct
wm8994_priv
*
wm8994
=
snd_soc_codec_get_drvdata
(
codec
);
struct
wm8994_priv
*
wm8994
=
snd_soc_codec_get_drvdata
(
codec
);
int
drc
=
wm8994_get_drc
(
kcontrol
->
id
.
name
);
int
drc
=
wm8994_get_drc
(
kcontrol
->
id
.
name
);
if
(
drc
<
0
)
return
drc
;
ucontrol
->
value
.
enumerated
.
item
[
0
]
=
wm8994
->
drc_cfg
[
drc
];
ucontrol
->
value
.
enumerated
.
item
[
0
]
=
wm8994
->
drc_cfg
[
drc
];
return
0
;
return
0
;
...
@@ -488,6 +490,9 @@ static int wm8994_get_retune_mobile_enum(struct snd_kcontrol *kcontrol,
...
@@ -488,6 +490,9 @@ static int wm8994_get_retune_mobile_enum(struct snd_kcontrol *kcontrol,
struct
wm8994_priv
*
wm8994
=
snd_soc_codec_get_drvdata
(
codec
);
struct
wm8994_priv
*
wm8994
=
snd_soc_codec_get_drvdata
(
codec
);
int
block
=
wm8994_get_retune_mobile_block
(
kcontrol
->
id
.
name
);
int
block
=
wm8994_get_retune_mobile_block
(
kcontrol
->
id
.
name
);
if
(
block
<
0
)
return
block
;
ucontrol
->
value
.
enumerated
.
item
[
0
]
=
wm8994
->
retune_mobile_cfg
[
block
];
ucontrol
->
value
.
enumerated
.
item
[
0
]
=
wm8994
->
retune_mobile_cfg
[
block
];
return
0
;
return
0
;
...
@@ -1031,7 +1036,7 @@ static int aif1clk_ev(struct snd_soc_dapm_widget *w,
...
@@ -1031,7 +1036,7 @@ static int aif1clk_ev(struct snd_soc_dapm_widget *w,
{
{
struct
snd_soc_codec
*
codec
=
w
->
codec
;
struct
snd_soc_codec
*
codec
=
w
->
codec
;
struct
wm8994_priv
*
wm8994
=
snd_soc_codec_get_drvdata
(
codec
);
struct
wm8994_priv
*
wm8994
=
snd_soc_codec_get_drvdata
(
codec
);
struct
wm8994
*
control
=
codec
->
control_data
;
struct
wm8994
*
control
=
wm8994
->
wm8994
;
int
mask
=
WM8994_AIF1DAC1L_ENA
|
WM8994_AIF1DAC1R_ENA
;
int
mask
=
WM8994_AIF1DAC1L_ENA
|
WM8994_AIF1DAC1R_ENA
;
int
i
;
int
i
;
int
dac
;
int
dac
;
...
@@ -3833,6 +3838,11 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data)
...
@@ -3833,6 +3838,11 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data)
dev_dbg
(
codec
->
dev
,
"Ignoring removed jack
\n
"
);
dev_dbg
(
codec
->
dev
,
"Ignoring removed jack
\n
"
);
return
IRQ_HANDLED
;
return
IRQ_HANDLED
;
}
}
}
else
if
(
!
(
reg
&
WM8958_MICD_STS
))
{
snd_soc_jack_report
(
wm8994
->
micdet
[
0
].
jack
,
0
,
SND_JACK_MECHANICAL
|
SND_JACK_HEADSET
|
wm8994
->
btn_mask
);
goto
out
;
}
}
if
(
wm8994
->
mic_detecting
)
if
(
wm8994
->
mic_detecting
)
...
...
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