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
9d22fd3c
Commit
9d22fd3c
authored
Mar 04, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/fsl-ssi' into asoc-linus
parents
ed87e297
541b03ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
sound/soc/fsl/fsl_ssi.c
sound/soc/fsl/fsl_ssi.c
+7
-4
No files found.
sound/soc/fsl/fsl_ssi.c
View file @
9d22fd3c
...
...
@@ -603,10 +603,6 @@ static int fsl_ssi_set_bclk(struct snd_pcm_substream *substream,
factor
=
(
div2
+
1
)
*
(
7
*
psr
+
1
)
*
2
;
for
(
i
=
0
;
i
<
255
;
i
++
)
{
/* The bclk rate must be smaller than 1/5 sysclk rate */
if
(
factor
*
(
i
+
1
)
<
5
)
continue
;
tmprate
=
freq
*
factor
*
(
i
+
2
);
if
(
baudclk_is_used
)
...
...
@@ -614,6 +610,13 @@ static int fsl_ssi_set_bclk(struct snd_pcm_substream *substream,
else
clkrate
=
clk_round_rate
(
ssi_private
->
baudclk
,
tmprate
);
/*
* Hardware limitation: The bclk rate must be
* never greater than 1/5 IPG clock rate
*/
if
(
clkrate
*
5
>
clk_get_rate
(
ssi_private
->
clk
))
continue
;
clkrate
/=
factor
;
afreq
=
clkrate
/
(
i
+
1
);
...
...
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