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
81019525
Commit
81019525
authored
Feb 11, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/arizona' into asoc-next
parents
4d631a0b
9092a6ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
sound/soc/codecs/arizona.c
sound/soc/codecs/arizona.c
+12
-3
No files found.
sound/soc/codecs/arizona.c
View file @
81019525
...
@@ -56,14 +56,14 @@
...
@@ -56,14 +56,14 @@
#define arizona_fll_warn(_fll, fmt, ...) \
#define arizona_fll_warn(_fll, fmt, ...) \
dev_warn(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
dev_warn(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
#define arizona_fll_dbg(_fll, fmt, ...) \
#define arizona_fll_dbg(_fll, fmt, ...) \
dev_
err
(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
dev_
dbg
(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
#define arizona_aif_err(_dai, fmt, ...) \
#define arizona_aif_err(_dai, fmt, ...) \
dev_err(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
dev_err(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
#define arizona_aif_warn(_dai, fmt, ...) \
#define arizona_aif_warn(_dai, fmt, ...) \
dev_warn(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
dev_warn(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
#define arizona_aif_dbg(_dai, fmt, ...) \
#define arizona_aif_dbg(_dai, fmt, ...) \
dev_
err
(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
dev_
dbg
(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
const
char
*
arizona_mixer_texts
[
ARIZONA_NUM_MIXER_INPUTS
]
=
{
const
char
*
arizona_mixer_texts
[
ARIZONA_NUM_MIXER_INPUTS
]
=
{
"None"
,
"None"
,
...
@@ -910,7 +910,7 @@ static int arizona_calc_fll(struct arizona_fll *fll,
...
@@ -910,7 +910,7 @@ static int arizona_calc_fll(struct arizona_fll *fll,
cfg
->
n
=
target
/
(
ratio
*
Fref
);
cfg
->
n
=
target
/
(
ratio
*
Fref
);
if
(
target
%
Fref
)
{
if
(
target
%
(
ratio
*
Fref
)
)
{
gcd_fll
=
gcd
(
target
,
ratio
*
Fref
);
gcd_fll
=
gcd
(
target
,
ratio
*
Fref
);
arizona_fll_dbg
(
fll
,
"GCD=%u
\n
"
,
gcd_fll
);
arizona_fll_dbg
(
fll
,
"GCD=%u
\n
"
,
gcd_fll
);
...
@@ -922,6 +922,15 @@ static int arizona_calc_fll(struct arizona_fll *fll,
...
@@ -922,6 +922,15 @@ static int arizona_calc_fll(struct arizona_fll *fll,
cfg
->
lambda
=
0
;
cfg
->
lambda
=
0
;
}
}
/* Round down to 16bit range with cost of accuracy lost.
* Denominator must be bigger than numerator so we only
* take care of it.
*/
while
(
cfg
->
lambda
>=
(
1
<<
16
))
{
cfg
->
theta
>>=
1
;
cfg
->
lambda
>>=
1
;
}
arizona_fll_dbg
(
fll
,
"N=%x THETA=%x LAMBDA=%x
\n
"
,
arizona_fll_dbg
(
fll
,
"N=%x THETA=%x LAMBDA=%x
\n
"
,
cfg
->
n
,
cfg
->
theta
,
cfg
->
lambda
);
cfg
->
n
,
cfg
->
theta
,
cfg
->
lambda
);
arizona_fll_dbg
(
fll
,
"FRATIO=%x(%d) OUTDIV=%x REFCLK_DIV=%x
\n
"
,
arizona_fll_dbg
(
fll
,
"FRATIO=%x(%d) OUTDIV=%x REFCLK_DIV=%x
\n
"
,
...
...
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