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
e60b2e5d
Commit
e60b2e5d
authored
Jul 03, 2017
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/intel' into asoc-linus
parents
6f7da290
fd0f2375
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
sound/soc/intel/boards/bxt_da7219_max98357a.c
sound/soc/intel/boards/bxt_da7219_max98357a.c
+9
-5
No files found.
sound/soc/intel/boards/bxt_da7219_max98357a.c
View file @
e60b2e5d
...
@@ -89,11 +89,6 @@ static int platform_clock_control(struct snd_soc_dapm_widget *w,
...
@@ -89,11 +89,6 @@ static int platform_clock_control(struct snd_soc_dapm_widget *w,
if
(
ret
)
if
(
ret
)
dev_err
(
card
->
dev
,
"failed to stop PLL: %d
\n
"
,
ret
);
dev_err
(
card
->
dev
,
"failed to stop PLL: %d
\n
"
,
ret
);
}
else
if
(
SND_SOC_DAPM_EVENT_ON
(
event
))
{
}
else
if
(
SND_SOC_DAPM_EVENT_ON
(
event
))
{
ret
=
snd_soc_dai_set_sysclk
(
codec_dai
,
DA7219_CLKSRC_MCLK
,
19200000
,
SND_SOC_CLOCK_IN
);
if
(
ret
)
dev_err
(
card
->
dev
,
"can't set codec sysclk configuration
\n
"
);
ret
=
snd_soc_dai_set_pll
(
codec_dai
,
0
,
ret
=
snd_soc_dai_set_pll
(
codec_dai
,
0
,
DA7219_SYSCLK_PLL_SRM
,
0
,
DA7219_PLL_FREQ_OUT_98304
);
DA7219_SYSCLK_PLL_SRM
,
0
,
DA7219_PLL_FREQ_OUT_98304
);
if
(
ret
)
if
(
ret
)
...
@@ -187,8 +182,17 @@ static int broxton_ssp_fixup(struct snd_soc_pcm_runtime *rtd,
...
@@ -187,8 +182,17 @@ static int broxton_ssp_fixup(struct snd_soc_pcm_runtime *rtd,
static
int
broxton_da7219_codec_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
static
int
broxton_da7219_codec_init
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
{
int
ret
;
int
ret
;
struct
snd_soc_dai
*
codec_dai
=
rtd
->
codec_dai
;
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
/* Configure sysclk for codec */
ret
=
snd_soc_dai_set_sysclk
(
codec_dai
,
DA7219_CLKSRC_MCLK
,
19200000
,
SND_SOC_CLOCK_IN
);
if
(
ret
)
{
dev_err
(
rtd
->
dev
,
"can't set codec sysclk configuration
\n
"
);
return
ret
;
}
/*
/*
* Headset buttons map to the google Reference headset.
* Headset buttons map to the google Reference headset.
* These can be configured by userspace.
* These can be configured by userspace.
...
...
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