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
a435869c
Commit
a435869c
authored
Jan 23, 2009
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Configure SSP port PLL for Zylonite
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
f6fca2e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
sound/soc/pxa/zylonite.c
sound/soc/pxa/zylonite.c
+8
-0
No files found.
sound/soc/pxa/zylonite.c
View file @
a435869c
...
...
@@ -95,6 +95,7 @@ static int zylonite_voice_hw_params(struct snd_pcm_substream *substream,
struct
snd_soc_pcm_runtime
*
rtd
=
substream
->
private_data
;
struct
snd_soc_dai
*
codec_dai
=
rtd
->
dai
->
codec_dai
;
struct
snd_soc_dai
*
cpu_dai
=
rtd
->
dai
->
cpu_dai
;
unsigned
int
pll_out
=
0
;
unsigned
int
acds
=
0
;
unsigned
int
wm9713_div
=
0
;
int
ret
=
0
;
...
...
@@ -102,13 +103,16 @@ static int zylonite_voice_hw_params(struct snd_pcm_substream *substream,
switch
(
params_rate
(
params
))
{
case
8000
:
wm9713_div
=
12
;
pll_out
=
2048000
;
break
;
case
16000
:
wm9713_div
=
6
;
pll_out
=
4096000
;
break
;
case
48000
:
default:
wm9713_div
=
2
;
pll_out
=
12288000
;
acds
=
1
;
break
;
}
...
...
@@ -129,6 +133,10 @@ static int zylonite_voice_hw_params(struct snd_pcm_substream *substream,
if
(
ret
<
0
)
return
ret
;
ret
=
snd_soc_dai_set_pll
(
cpu_dai
,
0
,
0
,
pll_out
);
if
(
ret
<
0
)
return
ret
;
ret
=
snd_soc_dai_set_clkdiv
(
cpu_dai
,
PXA_SSP_AUDIO_DIV_ACDS
,
acds
);
if
(
ret
<
0
)
return
ret
;
...
...
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