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
e61249bb
Commit
e61249bb
authored
May 27, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/omap' into asoc-next
parents
aaa36d3a
989ff775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
sound/soc/omap/mcbsp.c
sound/soc/omap/mcbsp.c
+8
-0
sound/soc/omap/omap-pcm.c
sound/soc/omap/omap-pcm.c
+2
-0
No files found.
sound/soc/omap/mcbsp.c
View file @
e61249bb
...
...
@@ -260,6 +260,10 @@ static void omap_st_on(struct omap_mcbsp *mcbsp)
if
(
mcbsp
->
pdata
->
enable_st_clock
)
mcbsp
->
pdata
->
enable_st_clock
(
mcbsp
->
id
,
1
);
/* Disable Sidetone clock auto-gating for normal operation */
w
=
MCBSP_ST_READ
(
mcbsp
,
SYSCONFIG
);
MCBSP_ST_WRITE
(
mcbsp
,
SYSCONFIG
,
w
&
~
(
ST_AUTOIDLE
));
/* Enable McBSP Sidetone */
w
=
MCBSP_READ
(
mcbsp
,
SSELCR
);
MCBSP_WRITE
(
mcbsp
,
SSELCR
,
w
|
SIDETONEEN
);
...
...
@@ -279,6 +283,10 @@ static void omap_st_off(struct omap_mcbsp *mcbsp)
w
=
MCBSP_READ
(
mcbsp
,
SSELCR
);
MCBSP_WRITE
(
mcbsp
,
SSELCR
,
w
&
~
(
SIDETONEEN
));
/* Enable Sidetone clock auto-gating to reduce power consumption */
w
=
MCBSP_ST_READ
(
mcbsp
,
SYSCONFIG
);
MCBSP_ST_WRITE
(
mcbsp
,
SYSCONFIG
,
w
|
ST_AUTOIDLE
);
if
(
mcbsp
->
pdata
->
enable_st_clock
)
mcbsp
->
pdata
->
enable_st_clock
(
mcbsp
->
id
,
0
);
}
...
...
sound/soc/omap/omap-pcm.c
View file @
e61249bb
...
...
@@ -82,6 +82,8 @@ static int omap_pcm_hw_params(struct snd_pcm_substream *substream,
struct
dma_chan
*
chan
;
int
err
=
0
;
memset
(
&
config
,
0x00
,
sizeof
(
config
));
dma_data
=
snd_soc_dai_get_dma_data
(
rtd
->
cpu_dai
,
substream
);
/* return if this is a bufferless transfer e.g.
...
...
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