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
aaae5272
Commit
aaae5272
authored
Aug 15, 2010
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/asoc' into for-linus
parents
18c5ef38
a532f97c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
MAINTAINERS
MAINTAINERS
+4
-3
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.c
+15
-8
No files found.
MAINTAINERS
View file @
aaae5272
...
...
@@ -6325,8 +6325,9 @@ S: Supported
F: drivers/input/touchscreen/*wm97*
F: include/linux/wm97xx.h
WOLFSON MICROELECTRONICS
PMIC
DRIVERS
WOLFSON MICROELECTRONICS DRIVERS
M: Mark Brown <broonie@opensource.wolfsonmicro.com>
M: Ian Lartey <ian@opensource.wolfsonmicro.com>
T: git git://opensource.wolfsonmicro.com/linux-2.6-audioplus
W: http://opensource.wolfsonmicro.com/node/8
S: Supported
...
...
@@ -6341,8 +6342,8 @@ F: drivers/watchdog/wm83*_wdt.c
F: include/linux/mfd/wm831x/
F: include/linux/mfd/wm8350/
F: include/linux/mfd/wm8400*
F:
sound/soc/codecs/wm8350.*
F: sound/soc/codecs/wm
8400.
*
F:
include/sound/wm????.h
F: sound/soc/codecs/wm*
X.25 NETWORK LAYER
M: Andrew Hendry <andrew.hendry@gmail.com>
...
...
sound/soc/codecs/wm8994.c
View file @
aaae5272
...
...
@@ -95,6 +95,7 @@ struct wm8994_priv {
struct
wm8994_micdet
micdet
[
2
];
int
revision
;
struct
wm8994_pdata
*
pdata
;
};
...
...
@@ -3070,6 +3071,8 @@ static int wm8994_set_dai_sysclk(struct snd_soc_dai *dai,
static
int
wm8994_set_bias_level
(
struct
snd_soc_codec
*
codec
,
enum
snd_soc_bias_level
level
)
{
struct
wm8994_priv
*
wm8994
=
snd_soc_codec_get_drvdata
(
codec
);
switch
(
level
)
{
case
SND_SOC_BIAS_ON
:
break
;
...
...
@@ -3082,11 +3085,16 @@ static int wm8994_set_bias_level(struct snd_soc_codec *codec,
case
SND_SOC_BIAS_STANDBY
:
if
(
codec
->
bias_level
==
SND_SOC_BIAS_OFF
)
{
/* Tweak DC servo configuration for improved
* performance. */
snd_soc_write
(
codec
,
0x102
,
0x3
);
snd_soc_write
(
codec
,
0x56
,
0x3
);
snd_soc_write
(
codec
,
0x102
,
0
);
/* Tweak DC servo and DSP configuration for
* improved performance. */
if
(
wm8994
->
revision
<
4
)
{
/* Tweak DC servo and DSP configuration for
* improved performance. */
snd_soc_write
(
codec
,
0x102
,
0x3
);
snd_soc_write
(
codec
,
0x56
,
0x3
);
snd_soc_write
(
codec
,
0x817
,
0
);
snd_soc_write
(
codec
,
0x102
,
0
);
}
/* Discharge LINEOUT1 & 2 */
snd_soc_update_bits
(
codec
,
WM8994_ANTIPOP_1
,
...
...
@@ -3919,7 +3927,6 @@ static int wm8994_codec_probe(struct platform_device *pdev)
struct
wm8994_priv
*
wm8994
;
struct
snd_soc_codec
*
codec
;
int
i
;
u16
rev
;
if
(
wm8994_codec
)
{
dev_err
(
&
pdev
->
dev
,
"Another WM8994 is registered
\n
"
);
...
...
@@ -3973,8 +3980,8 @@ static int wm8994_codec_probe(struct platform_device *pdev)
wm8994
->
reg_cache
[
i
]
=
0
;
/* Set revision-specific configuration */
rev
=
snd_soc_read
(
codec
,
WM8994_CHIP_REVISION
);
switch
(
rev
)
{
wm8994
->
revision
=
snd_soc_read
(
codec
,
WM8994_CHIP_REVISION
);
switch
(
wm8994
->
revision
)
{
case
2
:
case
3
:
wm8994
->
hubs
.
dcs_codes
=
-
5
;
...
...
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