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
fef24d92
Commit
fef24d92
authored
Aug 22, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-3.1' into for-3.2
parents
fbf04076
a4161945
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
9 deletions
+27
-9
sound/soc/codecs/wm8962.c
sound/soc/codecs/wm8962.c
+4
-0
sound/soc/codecs/wm8996.c
sound/soc/codecs/wm8996.c
+17
-9
sound/soc/samsung/speyside_wm8962.c
sound/soc/samsung/speyside_wm8962.c
+6
-0
No files found.
sound/soc/codecs/wm8962.c
View file @
fef24d92
...
@@ -2354,6 +2354,8 @@ static int sysclk_event(struct snd_soc_dapm_widget *w,
...
@@ -2354,6 +2354,8 @@ static int sysclk_event(struct snd_soc_dapm_widget *w,
switch
(
event
)
{
switch
(
event
)
{
case
SND_SOC_DAPM_PRE_PMU
:
case
SND_SOC_DAPM_PRE_PMU
:
if
(
fll
)
{
if
(
fll
)
{
try_wait_for_completion
(
&
wm8962
->
fll_lock
);
snd_soc_update_bits
(
codec
,
WM8962_FLL_CONTROL_1
,
snd_soc_update_bits
(
codec
,
WM8962_FLL_CONTROL_1
,
WM8962_FLL_ENA
,
WM8962_FLL_ENA
);
WM8962_FLL_ENA
,
WM8962_FLL_ENA
);
if
(
wm8962
->
irq
)
{
if
(
wm8962
->
irq
)
{
...
@@ -3449,6 +3451,8 @@ static int wm8962_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
...
@@ -3449,6 +3451,8 @@ static int wm8962_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
snd_soc_write
(
codec
,
WM8962_FLL_CONTROL_7
,
fll_div
.
lambda
);
snd_soc_write
(
codec
,
WM8962_FLL_CONTROL_7
,
fll_div
.
lambda
);
snd_soc_write
(
codec
,
WM8962_FLL_CONTROL_8
,
fll_div
.
n
);
snd_soc_write
(
codec
,
WM8962_FLL_CONTROL_8
,
fll_div
.
n
);
try_wait_for_completion
(
&
wm8962
->
fll_lock
);
snd_soc_update_bits
(
codec
,
WM8962_FLL_CONTROL_1
,
snd_soc_update_bits
(
codec
,
WM8962_FLL_CONTROL_1
,
WM8962_FLL_FRAC
|
WM8962_FLL_REFCLK_SRC_MASK
|
WM8962_FLL_FRAC
|
WM8962_FLL_REFCLK_SRC_MASK
|
WM8962_FLL_ENA
,
fll1
);
WM8962_FLL_ENA
,
fll1
);
...
...
sound/soc/codecs/wm8996.c
View file @
fef24d92
...
@@ -990,15 +990,10 @@ SND_SOC_DAPM_MICBIAS("MICB1", WM8996_POWER_MANAGEMENT_1, 8, 0),
...
@@ -990,15 +990,10 @@ SND_SOC_DAPM_MICBIAS("MICB1", WM8996_POWER_MANAGEMENT_1, 8, 0),
SND_SOC_DAPM_PGA
(
"IN1L PGA"
,
WM8996_POWER_MANAGEMENT_2
,
5
,
0
,
NULL
,
0
),
SND_SOC_DAPM_PGA
(
"IN1L PGA"
,
WM8996_POWER_MANAGEMENT_2
,
5
,
0
,
NULL
,
0
),
SND_SOC_DAPM_PGA
(
"IN1R PGA"
,
WM8996_POWER_MANAGEMENT_2
,
4
,
0
,
NULL
,
0
),
SND_SOC_DAPM_PGA
(
"IN1R PGA"
,
WM8996_POWER_MANAGEMENT_2
,
4
,
0
,
NULL
,
0
),
SND_SOC_DAPM_MUX
(
"IN1L Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
in1_mux
),
SND_SOC_DAPM_MUX
(
"IN1L Mux"
,
WM8996_POWER_MANAGEMENT_7
,
2
,
0
,
&
in1_mux
),
SND_SOC_DAPM_MUX
(
"IN1R Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
in1_mux
),
SND_SOC_DAPM_MUX
(
"IN1R Mux"
,
WM8996_POWER_MANAGEMENT_7
,
3
,
0
,
&
in1_mux
),
SND_SOC_DAPM_MUX
(
"IN2L Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
in2_mux
),
SND_SOC_DAPM_MUX
(
"IN2L Mux"
,
WM8996_POWER_MANAGEMENT_7
,
6
,
0
,
&
in2_mux
),
SND_SOC_DAPM_MUX
(
"IN2R Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
in2_mux
),
SND_SOC_DAPM_MUX
(
"IN2R Mux"
,
WM8996_POWER_MANAGEMENT_7
,
7
,
0
,
&
in2_mux
),
SND_SOC_DAPM_PGA
(
"IN1L"
,
WM8996_POWER_MANAGEMENT_7
,
2
,
0
,
NULL
,
0
),
SND_SOC_DAPM_PGA
(
"IN1R"
,
WM8996_POWER_MANAGEMENT_7
,
3
,
0
,
NULL
,
0
),
SND_SOC_DAPM_PGA
(
"IN2L"
,
WM8996_POWER_MANAGEMENT_7
,
6
,
0
,
NULL
,
0
),
SND_SOC_DAPM_PGA
(
"IN2R"
,
WM8996_POWER_MANAGEMENT_7
,
7
,
0
,
NULL
,
0
),
SND_SOC_DAPM_SUPPLY
(
"DMIC2"
,
WM8996_POWER_MANAGEMENT_7
,
9
,
0
,
NULL
,
0
),
SND_SOC_DAPM_SUPPLY
(
"DMIC2"
,
WM8996_POWER_MANAGEMENT_7
,
9
,
0
,
NULL
,
0
),
SND_SOC_DAPM_SUPPLY
(
"DMIC1"
,
WM8996_POWER_MANAGEMENT_7
,
8
,
0
,
NULL
,
0
),
SND_SOC_DAPM_SUPPLY
(
"DMIC1"
,
WM8996_POWER_MANAGEMENT_7
,
8
,
0
,
NULL
,
0
),
...
@@ -1217,6 +1212,16 @@ static const struct snd_soc_dapm_route wm8996_dapm_routes[] = {
...
@@ -1217,6 +1212,16 @@ static const struct snd_soc_dapm_route wm8996_dapm_routes[] = {
{
"AIF2RX0"
,
NULL
,
"AIFCLK"
},
{
"AIF2RX0"
,
NULL
,
"AIFCLK"
},
{
"AIF2RX1"
,
NULL
,
"AIFCLK"
},
{
"AIF2RX1"
,
NULL
,
"AIFCLK"
},
{
"AIF1TX0"
,
NULL
,
"AIFCLK"
},
{
"AIF1TX1"
,
NULL
,
"AIFCLK"
},
{
"AIF1TX2"
,
NULL
,
"AIFCLK"
},
{
"AIF1TX3"
,
NULL
,
"AIFCLK"
},
{
"AIF1TX4"
,
NULL
,
"AIFCLK"
},
{
"AIF1TX5"
,
NULL
,
"AIFCLK"
},
{
"AIF2TX0"
,
NULL
,
"AIFCLK"
},
{
"AIF2TX1"
,
NULL
,
"AIFCLK"
},
{
"DSP1RXL"
,
NULL
,
"SYSDSPCLK"
},
{
"DSP1RXL"
,
NULL
,
"SYSDSPCLK"
},
{
"DSP1RXR"
,
NULL
,
"SYSDSPCLK"
},
{
"DSP1RXR"
,
NULL
,
"SYSDSPCLK"
},
{
"DSP2RXL"
,
NULL
,
"SYSDSPCLK"
},
{
"DSP2RXL"
,
NULL
,
"SYSDSPCLK"
},
...
@@ -2110,6 +2115,9 @@ static int wm8996_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
...
@@ -2110,6 +2115,9 @@ static int wm8996_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
snd_soc_write
(
codec
,
WM8996_FLL_EFS_1
,
fll_div
.
lambda
);
snd_soc_write
(
codec
,
WM8996_FLL_EFS_1
,
fll_div
.
lambda
);
/* Clear any pending completions (eg, from failed startups) */
try_wait_for_completion
(
&
wm8996
->
fll_lock
);
snd_soc_update_bits
(
codec
,
WM8996_FLL_CONTROL_1
,
snd_soc_update_bits
(
codec
,
WM8996_FLL_CONTROL_1
,
WM8996_FLL_ENA
,
WM8996_FLL_ENA
);
WM8996_FLL_ENA
,
WM8996_FLL_ENA
);
...
...
sound/soc/samsung/speyside_wm8962.c
View file @
fef24d92
...
@@ -23,6 +23,9 @@ static int speyside_wm8962_set_bias_level(struct snd_soc_card *card,
...
@@ -23,6 +23,9 @@ static int speyside_wm8962_set_bias_level(struct snd_soc_card *card,
struct
snd_soc_dai
*
codec_dai
=
card
->
rtd
[
0
].
codec_dai
;
struct
snd_soc_dai
*
codec_dai
=
card
->
rtd
[
0
].
codec_dai
;
int
ret
;
int
ret
;
if
(
dapm
->
dev
!=
codec_dai
->
dev
)
return
0
;
switch
(
level
)
{
switch
(
level
)
{
case
SND_SOC_BIAS_PREPARE
:
case
SND_SOC_BIAS_PREPARE
:
if
(
dapm
->
bias_level
==
SND_SOC_BIAS_STANDBY
)
{
if
(
dapm
->
bias_level
==
SND_SOC_BIAS_STANDBY
)
{
...
@@ -57,6 +60,9 @@ static int speyside_wm8962_set_bias_level_post(struct snd_soc_card *card,
...
@@ -57,6 +60,9 @@ static int speyside_wm8962_set_bias_level_post(struct snd_soc_card *card,
struct
snd_soc_dai
*
codec_dai
=
card
->
rtd
[
0
].
codec_dai
;
struct
snd_soc_dai
*
codec_dai
=
card
->
rtd
[
0
].
codec_dai
;
int
ret
;
int
ret
;
if
(
dapm
->
dev
!=
codec_dai
->
dev
)
return
0
;
switch
(
level
)
{
switch
(
level
)
{
case
SND_SOC_BIAS_STANDBY
:
case
SND_SOC_BIAS_STANDBY
:
ret
=
snd_soc_dai_set_sysclk
(
codec_dai
,
WM8962_SYSCLK_MCLK
,
ret
=
snd_soc_dai_set_sysclk
(
codec_dai
,
WM8962_SYSCLK_MCLK
,
...
...
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