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
442b3a71
Commit
442b3a71
authored
Mar 28, 2006
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge source.mvista.com:/home/git/linux-omap-2.6
parents
ddb984bc
6bc09656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
arch/arm/mach-omap1/board-nokia770.c
arch/arm/mach-omap1/board-nokia770.c
+11
-12
No files found.
arch/arm/mach-omap1/board-nokia770.c
View file @
442b3a71
...
...
@@ -194,6 +194,7 @@ static void codec_delayed_power_down(void *arg)
down
(
&
audio_pwr_sem
);
if
(
audio_pwr_state
==
-
1
)
tlv320aic23_power_down
();
clk_disable
(
dspxor_ck
);
up
(
&
audio_pwr_sem
);
}
...
...
@@ -201,8 +202,6 @@ static DECLARE_WORK(codec_power_down_work, codec_delayed_power_down, NULL);
static
void
nokia770_audio_pwr_down
(
void
)
{
clk_disable
(
dspxor_ck
);
/* Turn off amplifier */
omap_set_gpio_dataout
(
AMPLIFIER_CTRL_GPIO
,
0
);
...
...
@@ -224,16 +223,16 @@ void nokia770_audio_pwr_down_request(int stage)
{
down
(
&
audio_pwr_sem
);
switch
(
stage
)
{
case
1
:
if
(
audio_pwr_state
==
0
)
audio_pwr_state
=
1
;
break
;
case
2
:
if
(
audio_pwr_state
==
1
)
{
nokia770_audio_pwr_down
();
audio_pwr_state
=
-
1
;
}
break
;
case
1
:
if
(
audio_pwr_state
==
0
)
audio_pwr_state
=
1
;
break
;
case
2
:
if
(
audio_pwr_state
==
1
)
{
nokia770_audio_pwr_down
();
audio_pwr_state
=
-
1
;
}
break
;
}
up
(
&
audio_pwr_sem
);
}
...
...
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