Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
8056d9bb
Commit
8056d9bb
authored
Jan 23, 2009
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Improve WM9713 voice DAC shutdown procedure
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
93e051d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sound/soc/codecs/wm9713.c
sound/soc/codecs/wm9713.c
+4
-3
No files found.
sound/soc/codecs/wm9713.c
View file @
8056d9bb
...
@@ -940,13 +940,14 @@ static void wm9713_voiceshutdown(struct snd_pcm_substream *substream,
...
@@ -940,13 +940,14 @@ static void wm9713_voiceshutdown(struct snd_pcm_substream *substream,
struct
snd_soc_dai
*
dai
)
struct
snd_soc_dai
*
dai
)
{
{
struct
snd_soc_codec
*
codec
=
dai
->
codec
;
struct
snd_soc_codec
*
codec
=
dai
->
codec
;
u16
status
;
u16
status
,
rate
;
/* Gracefully shut down the voice interface. */
/* Gracefully shut down the voice interface. */
status
=
ac97_read
(
codec
,
AC97_EXTENDED_STATUS
)
|
0x1000
;
status
=
ac97_read
(
codec
,
AC97_EXTENDED_STATUS
)
|
0x1000
;
ac97_write
(
codec
,
AC97_HANDSET_RATE
,
0x0280
);
rate
=
ac97_read
(
codec
,
AC97_HANDSET_RATE
)
&
0xF0FF
;
ac97_write
(
codec
,
AC97_HANDSET_RATE
,
rate
|
0x0200
);
schedule_timeout_interruptible
(
msecs_to_jiffies
(
1
));
schedule_timeout_interruptible
(
msecs_to_jiffies
(
1
));
ac97_write
(
codec
,
AC97_HANDSET_RATE
,
0x0F8
0
);
ac97_write
(
codec
,
AC97_HANDSET_RATE
,
rate
|
0x0F0
0
);
ac97_write
(
codec
,
AC97_EXTENDED_MID
,
status
);
ac97_write
(
codec
,
AC97_EXTENDED_MID
,
status
);
}
}
...
...
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