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
95d7ff56
Commit
95d7ff56
authored
Mar 13, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/pcm3168a' into asoc-next
parents
19142ae6
e7a508f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
sound/soc/codecs/pcm3168a.c
sound/soc/codecs/pcm3168a.c
+6
-2
No files found.
sound/soc/codecs/pcm3168a.c
View file @
95d7ff56
...
...
@@ -299,10 +299,15 @@ static int pcm3168a_set_dai_sysclk(struct snd_soc_dai *dai,
int
clk_id
,
unsigned
int
freq
,
int
dir
)
{
struct
pcm3168a_priv
*
pcm3168a
=
snd_soc_codec_get_drvdata
(
dai
->
codec
);
int
ret
;
if
(
freq
>
PCM1368A_MAX_SYSCLK
)
return
-
EINVAL
;
ret
=
clk_set_rate
(
pcm3168a
->
scki
,
freq
);
if
(
ret
)
return
ret
;
pcm3168a
->
sysclk
=
freq
;
return
0
;
...
...
@@ -395,13 +400,12 @@ static int pcm3168a_hw_params(struct snd_pcm_substream *substream,
struct
pcm3168a_priv
*
pcm3168a
=
snd_soc_codec_get_drvdata
(
codec
);
bool
tx
,
master_mode
;
u32
val
,
mask
,
shift
,
reg
;
unsigned
int
rate
,
channels
,
fmt
,
ratio
,
max_ratio
;
unsigned
int
rate
,
fmt
,
ratio
,
max_ratio
;
int
i
,
min_frame_size
;
snd_pcm_format_t
format
;
rate
=
params_rate
(
params
);
format
=
params_format
(
params
);
channels
=
params_channels
(
params
);
ratio
=
pcm3168a
->
sysclk
/
rate
;
...
...
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