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
dfc956d8
Commit
dfc956d8
authored
Nov 25, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/arizona' into asoc-linus
parents
1ec21837
341604ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
sound/soc/codecs/arizona.c
sound/soc/codecs/arizona.c
+5
-11
No files found.
sound/soc/codecs/arizona.c
View file @
dfc956d8
...
...
@@ -1023,24 +1023,18 @@ void arizona_init_dvfs(struct arizona_priv *priv)
}
EXPORT_SYMBOL_GPL
(
arizona_init_dvfs
);
static
unsigned
int
arizona_
sysclk
_48k_rates
[]
=
{
static
unsigned
int
arizona_
opclk_ref
_48k_rates
[]
=
{
6144000
,
12288000
,
24576000
,
49152000
,
73728000
,
98304000
,
147456000
,
};
static
unsigned
int
arizona_
sysclk
_44k1_rates
[]
=
{
static
unsigned
int
arizona_
opclk_ref
_44k1_rates
[]
=
{
5644800
,
11289600
,
22579200
,
45158400
,
67737600
,
90316800
,
135475200
,
};
static
int
arizona_set_opclk
(
struct
snd_soc_codec
*
codec
,
unsigned
int
clk
,
...
...
@@ -1065,11 +1059,11 @@ static int arizona_set_opclk(struct snd_soc_codec *codec, unsigned int clk,
}
if
(
refclk
%
8000
)
rates
=
arizona_
sysclk
_44k1_rates
;
rates
=
arizona_
opclk_ref
_44k1_rates
;
else
rates
=
arizona_
sysclk
_48k_rates
;
rates
=
arizona_
opclk_ref
_48k_rates
;
for
(
ref
=
0
;
ref
<
ARRAY_SIZE
(
arizona_
sysclk
_48k_rates
)
&&
for
(
ref
=
0
;
ref
<
ARRAY_SIZE
(
arizona_
opclk_ref
_48k_rates
)
&&
rates
[
ref
]
<=
refclk
;
ref
++
)
{
div
=
1
;
while
(
rates
[
ref
]
/
div
>=
freq
&&
div
<
32
)
{
...
...
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