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
3f341f74
Commit
3f341f74
authored
Mar 08, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: arizona: Provide defines for the clock rates
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
86cd684f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
sound/soc/codecs/arizona.c
sound/soc/codecs/arizona.c
+6
-6
sound/soc/codecs/arizona.h
sound/soc/codecs/arizona.h
+8
-0
No files found.
sound/soc/codecs/arizona.c
View file @
3f341f74
...
...
@@ -504,27 +504,27 @@ int arizona_set_sysclk(struct snd_soc_codec *codec, int clk_id,
break
;
case
11289600
:
case
12288000
:
val
|=
1
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
val
|=
ARIZONA_CLK_12MHZ
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
break
;
case
22579200
:
case
24576000
:
val
|=
2
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
val
|=
ARIZONA_CLK_24MHZ
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
break
;
case
45158400
:
case
49152000
:
val
|=
3
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
val
|=
ARIZONA_CLK_49MHZ
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
break
;
case
67737600
:
case
73728000
:
val
|=
4
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
val
|=
ARIZONA_CLK_73MHZ
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
break
;
case
90316800
:
case
98304000
:
val
|=
5
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
val
|=
ARIZONA_CLK_98MHZ
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
break
;
case
135475200
:
case
147456000
:
val
|=
6
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
val
|=
ARIZONA_CLK_147MHZ
<<
ARIZONA_SYSCLK_FREQ_SHIFT
;
break
;
case
0
:
dev_dbg
(
arizona
->
dev
,
"%s cleared
\n
"
,
name
);
...
...
sound/soc/codecs/arizona.h
View file @
3f341f74
...
...
@@ -49,6 +49,14 @@
#define ARIZONA_MIXER_VOL_SHIFT 1
#define ARIZONA_MIXER_VOL_WIDTH 7
#define ARIZONA_CLK_6MHZ 0
#define ARIZONA_CLK_12MHZ 1
#define ARIZONA_CLK_24MHZ 2
#define ARIZONA_CLK_49MHZ 3
#define ARIZONA_CLK_73MHZ 4
#define ARIZONA_CLK_98MHZ 5
#define ARIZONA_CLK_147MHZ 6
#define ARIZONA_MAX_DAI 4
#define ARIZONA_MAX_ADSP 4
...
...
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