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
34c3a64a
Commit
34c3a64a
authored
Nov 22, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-3.2' into for-3.3
parents
a5cf8060
380c8830
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
sound/soc/codecs/cs4270.c
sound/soc/codecs/cs4270.c
+1
-9
sound/soc/fsl/mpc8610_hpcd.c
sound/soc/fsl/mpc8610_hpcd.c
+16
-8
No files found.
sound/soc/codecs/cs4270.c
View file @
34c3a64a
...
@@ -601,7 +601,6 @@ static int cs4270_soc_suspend(struct snd_soc_codec *codec, pm_message_t mesg)
...
@@ -601,7 +601,6 @@ static int cs4270_soc_suspend(struct snd_soc_codec *codec, pm_message_t mesg)
static
int
cs4270_soc_resume
(
struct
snd_soc_codec
*
codec
)
static
int
cs4270_soc_resume
(
struct
snd_soc_codec
*
codec
)
{
{
struct
cs4270_private
*
cs4270
=
snd_soc_codec_get_drvdata
(
codec
);
struct
cs4270_private
*
cs4270
=
snd_soc_codec_get_drvdata
(
codec
);
struct
i2c_client
*
i2c_client
=
to_i2c_client
(
codec
->
dev
);
int
reg
;
int
reg
;
regulator_bulk_enable
(
ARRAY_SIZE
(
cs4270
->
supplies
),
regulator_bulk_enable
(
ARRAY_SIZE
(
cs4270
->
supplies
),
...
@@ -612,14 +611,7 @@ static int cs4270_soc_resume(struct snd_soc_codec *codec)
...
@@ -612,14 +611,7 @@ static int cs4270_soc_resume(struct snd_soc_codec *codec)
ndelay
(
500
);
ndelay
(
500
);
/* first restore the entire register cache ... */
/* first restore the entire register cache ... */
for
(
reg
=
CS4270_FIRSTREG
;
reg
<=
CS4270_LASTREG
;
reg
++
)
{
snd_soc_cache_sync
(
codec
);
u8
val
=
snd_soc_read
(
codec
,
reg
);
if
(
i2c_smbus_write_byte_data
(
i2c_client
,
reg
,
val
))
{
dev_err
(
codec
->
dev
,
"i2c write failed
\n
"
);
return
-
EIO
;
}
}
/* ... then disable the power-down bits */
/* ... then disable the power-down bits */
reg
=
snd_soc_read
(
codec
,
CS4270_PWRCTL
);
reg
=
snd_soc_read
(
codec
,
CS4270_PWRCTL
);
...
...
sound/soc/fsl/mpc8610_hpcd.c
View file @
34c3a64a
...
@@ -392,7 +392,8 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
...
@@ -392,7 +392,8 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
}
}
if
(
strcasecmp
(
sprop
,
"i2s-slave"
)
==
0
)
{
if
(
strcasecmp
(
sprop
,
"i2s-slave"
)
==
0
)
{
machine_data
->
dai_format
=
SND_SOC_DAIFMT_I2S
;
machine_data
->
dai_format
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_CBM_CFM
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_IN
;
...
@@ -409,31 +410,38 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
...
@@ -409,31 +410,38 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
}
}
machine_data
->
clk_frequency
=
be32_to_cpup
(
iprop
);
machine_data
->
clk_frequency
=
be32_to_cpup
(
iprop
);
}
else
if
(
strcasecmp
(
sprop
,
"i2s-master"
)
==
0
)
{
}
else
if
(
strcasecmp
(
sprop
,
"i2s-master"
)
==
0
)
{
machine_data
->
dai_format
=
SND_SOC_DAIFMT_I2S
;
machine_data
->
dai_format
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_CBS_CFS
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_OUT
;
}
else
if
(
strcasecmp
(
sprop
,
"lj-slave"
)
==
0
)
{
}
else
if
(
strcasecmp
(
sprop
,
"lj-slave"
)
==
0
)
{
machine_data
->
dai_format
=
SND_SOC_DAIFMT_LEFT_J
;
machine_data
->
dai_format
=
SND_SOC_DAIFMT_LEFT_J
|
SND_SOC_DAIFMT_CBM_CFM
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_IN
;
}
else
if
(
strcasecmp
(
sprop
,
"lj-master"
)
==
0
)
{
}
else
if
(
strcasecmp
(
sprop
,
"lj-master"
)
==
0
)
{
machine_data
->
dai_format
=
SND_SOC_DAIFMT_LEFT_J
;
machine_data
->
dai_format
=
SND_SOC_DAIFMT_LEFT_J
|
SND_SOC_DAIFMT_CBS_CFS
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_OUT
;
}
else
if
(
strcasecmp
(
sprop
,
"rj-slave"
)
==
0
)
{
}
else
if
(
strcasecmp
(
sprop
,
"rj-slave"
)
==
0
)
{
machine_data
->
dai_format
=
SND_SOC_DAIFMT_RIGHT_J
;
machine_data
->
dai_format
=
SND_SOC_DAIFMT_RIGHT_J
|
SND_SOC_DAIFMT_CBM_CFM
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_IN
;
}
else
if
(
strcasecmp
(
sprop
,
"rj-master"
)
==
0
)
{
}
else
if
(
strcasecmp
(
sprop
,
"rj-master"
)
==
0
)
{
machine_data
->
dai_format
=
SND_SOC_DAIFMT_RIGHT_J
;
machine_data
->
dai_format
=
SND_SOC_DAIFMT_RIGHT_J
|
SND_SOC_DAIFMT_CBS_CFS
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_OUT
;
}
else
if
(
strcasecmp
(
sprop
,
"ac97-slave"
)
==
0
)
{
}
else
if
(
strcasecmp
(
sprop
,
"ac97-slave"
)
==
0
)
{
machine_data
->
dai_format
=
SND_SOC_DAIFMT_AC97
;
machine_data
->
dai_format
=
SND_SOC_DAIFMT_AC97
|
SND_SOC_DAIFMT_CBM_CFM
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_IN
;
}
else
if
(
strcasecmp
(
sprop
,
"ac97-master"
)
==
0
)
{
}
else
if
(
strcasecmp
(
sprop
,
"ac97-master"
)
==
0
)
{
machine_data
->
dai_format
=
SND_SOC_DAIFMT_AC97
;
machine_data
->
dai_format
=
SND_SOC_DAIFMT_AC97
|
SND_SOC_DAIFMT_CBS_CFS
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
codec_clk_direction
=
SND_SOC_CLOCK_IN
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_OUT
;
machine_data
->
cpu_clk_direction
=
SND_SOC_CLOCK_OUT
;
}
else
{
}
else
{
...
...
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