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
477adb06
Commit
477adb06
authored
Jan 21, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2.6.38' into for-2.6.39
parents
c358e640
20a4e7fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
sound/soc/codecs/wm_hubs.c
sound/soc/codecs/wm_hubs.c
+7
-8
sound/soc/davinci/davinci-evm.c
sound/soc/davinci/davinci-evm.c
+1
-1
No files found.
sound/soc/codecs/wm_hubs.c
View file @
477adb06
...
@@ -91,6 +91,7 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec, unsigned int op)
...
@@ -91,6 +91,7 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec, unsigned int op)
static
void
calibrate_dc_servo
(
struct
snd_soc_codec
*
codec
)
static
void
calibrate_dc_servo
(
struct
snd_soc_codec
*
codec
)
{
{
struct
wm_hubs_data
*
hubs
=
snd_soc_codec_get_drvdata
(
codec
);
struct
wm_hubs_data
*
hubs
=
snd_soc_codec_get_drvdata
(
codec
);
s8
offset
;
u16
reg
,
reg_l
,
reg_r
,
dcs_cfg
;
u16
reg
,
reg_l
,
reg_r
,
dcs_cfg
;
/* If we're using a digital only path and have a previously
/* If we're using a digital only path and have a previously
...
@@ -149,16 +150,14 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec)
...
@@ -149,16 +150,14 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec)
hubs
->
dcs_codes
);
hubs
->
dcs_codes
);
/* HPOUT1L */
/* HPOUT1L */
if
(
reg_l
+
hubs
->
dcs_codes
>
0
&&
offset
=
reg_l
;
reg_l
+
hubs
->
dcs_codes
<
0xff
)
offset
+=
hubs
->
dcs_codes
;
reg_l
+=
hubs
->
dcs_codes
;
dcs_cfg
=
(
u8
)
offset
<<
WM8993_DCS_DAC_WR_VAL_1_SHIFT
;
dcs_cfg
=
reg_l
<<
WM8993_DCS_DAC_WR_VAL_1_SHIFT
;
/* HPOUT1R */
/* HPOUT1R */
if
(
reg_r
+
hubs
->
dcs_codes
>
0
&&
offset
=
reg_r
;
reg_r
+
hubs
->
dcs_codes
<
0xff
)
offset
+=
hubs
->
dcs_codes
;
reg_r
+=
hubs
->
dcs_codes
;
dcs_cfg
|=
(
u8
)
offset
;
dcs_cfg
|=
reg_r
;
dev_dbg
(
codec
->
dev
,
"DCS result: %x
\n
"
,
dcs_cfg
);
dev_dbg
(
codec
->
dev
,
"DCS result: %x
\n
"
,
dcs_cfg
);
...
...
sound/soc/davinci/davinci-evm.c
View file @
477adb06
...
@@ -223,7 +223,7 @@ static struct snd_soc_dai_link da8xx_evm_dai = {
...
@@ -223,7 +223,7 @@ static struct snd_soc_dai_link da8xx_evm_dai = {
.
stream_name
=
"AIC3X"
,
.
stream_name
=
"AIC3X"
,
.
cpu_dai_name
=
"davinci-mcasp.0"
,
.
cpu_dai_name
=
"davinci-mcasp.0"
,
.
codec_dai_name
=
"tlv320aic3x-hifi"
,
.
codec_dai_name
=
"tlv320aic3x-hifi"
,
.
codec_name
=
"tlv320aic3x-codec.
0-001a
"
,
.
codec_name
=
"tlv320aic3x-codec.
1-0018
"
,
.
platform_name
=
"davinci-pcm-audio"
,
.
platform_name
=
"davinci-pcm-audio"
,
.
init
=
evm_aic3x_init
,
.
init
=
evm_aic3x_init
,
.
ops
=
&
evm_ops
,
.
ops
=
&
evm_ops
,
...
...
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