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
ae14dbfa
Commit
ae14dbfa
authored
May 27, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/twl6040' into asoc-next
parents
94eaec45
1135ef11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
sound/soc/codecs/twl6040.c
sound/soc/codecs/twl6040.c
+8
-4
No files found.
sound/soc/codecs/twl6040.c
View file @
ae14dbfa
...
...
@@ -824,7 +824,7 @@ static int twl6040_set_bias_level(struct snd_soc_codec *codec,
{
struct
twl6040
*
twl6040
=
codec
->
control_data
;
struct
twl6040_data
*
priv
=
snd_soc_codec_get_drvdata
(
codec
);
int
ret
;
int
ret
=
0
;
switch
(
level
)
{
case
SND_SOC_BIAS_ON
:
...
...
@@ -832,12 +832,16 @@ static int twl6040_set_bias_level(struct snd_soc_codec *codec,
case
SND_SOC_BIAS_PREPARE
:
break
;
case
SND_SOC_BIAS_STANDBY
:
if
(
priv
->
codec_powered
)
if
(
priv
->
codec_powered
)
{
/* Select low power PLL in standby */
ret
=
twl6040_set_pll
(
twl6040
,
TWL6040_SYSCLK_SEL_LPPLL
,
32768
,
19200000
);
break
;
}
ret
=
twl6040_power
(
twl6040
,
1
);
if
(
ret
)
return
ret
;
break
;
priv
->
codec_powered
=
1
;
...
...
@@ -853,7 +857,7 @@ static int twl6040_set_bias_level(struct snd_soc_codec *codec,
break
;
}
return
0
;
return
ret
;
}
static
int
twl6040_startup
(
struct
snd_pcm_substream
*
substream
,
...
...
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