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
d6abe0d5
Commit
d6abe0d5
authored
Aug 22, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/sgtl5000' into asoc-next
parents
c41788c0
e06e4c2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
sound/soc/codecs/sgtl5000.c
sound/soc/codecs/sgtl5000.c
+7
-3
No files found.
sound/soc/codecs/sgtl5000.c
View file @
d6abe0d5
...
...
@@ -654,16 +654,19 @@ static int sgtl5000_set_clock(struct snd_soc_codec *codec, int frame_rate)
snd_soc_update_bits
(
codec
,
SGTL5000_CHIP_ANA_POWER
,
SGTL5000_PLL_POWERUP
|
SGTL5000_VCOAMP_POWERUP
,
SGTL5000_PLL_POWERUP
|
SGTL5000_VCOAMP_POWERUP
);
/* if using pll, clk_ctrl must be set after pll power up */
snd_soc_write
(
codec
,
SGTL5000_CHIP_CLK_CTRL
,
clk_ctl
);
}
else
{
/* otherwise, clk_ctrl must be set before pll power down */
snd_soc_write
(
codec
,
SGTL5000_CHIP_CLK_CTRL
,
clk_ctl
);
/* power down pll */
snd_soc_update_bits
(
codec
,
SGTL5000_CHIP_ANA_POWER
,
SGTL5000_PLL_POWERUP
|
SGTL5000_VCOAMP_POWERUP
,
0
);
}
/* if using pll, clk_ctrl must be set after pll power up */
snd_soc_write
(
codec
,
SGTL5000_CHIP_CLK_CTRL
,
clk_ctl
);
return
0
;
}
...
...
@@ -1480,6 +1483,7 @@ static struct snd_soc_codec_driver sgtl5000_driver = {
static
const
struct
regmap_config
sgtl5000_regmap
=
{
.
reg_bits
=
16
,
.
val_bits
=
16
,
.
reg_stride
=
2
,
.
max_register
=
SGTL5000_MAX_REG_OFFSET
,
.
volatile_reg
=
sgtl5000_volatile
,
...
...
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