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
e57542b0
Commit
e57542b0
authored
Aug 12, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rt/semaphore' into rt/base
parents
bda92634
87980853
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
drivers/mfd/ucb1x00-core.c
drivers/mfd/ucb1x00-core.c
+1
-0
sound/soc/s3c24xx/s3c2443-ac97.c
sound/soc/s3c24xx/s3c2443-ac97.c
+5
-5
No files found.
drivers/mfd/ucb1x00-core.c
View file @
e57542b0
...
...
@@ -24,6 +24,7 @@
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/semaphore.h>
#include <mach/dma.h>
#include <mach/hardware.h>
...
...
sound/soc/s3c24xx/s3c2443-ac97.c
View file @
e57542b0
...
...
@@ -47,7 +47,7 @@ static struct s3c24xx_ac97_info s3c24xx_ac97;
static
DECLARE_COMPLETION
(
ac97_completion
);
static
u32
codec_ready
;
static
DE
CLAR
E_MUTEX
(
ac97_mutex
);
static
DE
FIN
E_MUTEX
(
ac97_mutex
);
static
unsigned
short
s3c2443_ac97_read
(
struct
snd_ac97
*
ac97
,
unsigned
short
reg
)
...
...
@@ -56,7 +56,7 @@ static unsigned short s3c2443_ac97_read(struct snd_ac97 *ac97,
u32
ac_codec_cmd
;
u32
stat
,
addr
,
data
;
down
(
&
ac97_mutex
);
mutex_lock
(
&
ac97_mutex
);
codec_ready
=
S3C_AC97_GLBSTAT_CODECREADY
;
ac_codec_cmd
=
readl
(
s3c24xx_ac97
.
regs
+
S3C_AC97_CODEC_CMD
);
...
...
@@ -79,7 +79,7 @@ static unsigned short s3c2443_ac97_read(struct snd_ac97 *ac97,
printk
(
KERN_ERR
"s3c24xx-ac97: req addr = %02x,"
" rep addr = %02x
\n
"
,
reg
,
addr
);
up
(
&
ac97_mutex
);
mutex_unlock
(
&
ac97_mutex
);
return
(
unsigned
short
)
data
;
}
...
...
@@ -90,7 +90,7 @@ static void s3c2443_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
u32
ac_glbctrl
;
u32
ac_codec_cmd
;
down
(
&
ac97_mutex
);
mutex_lock
(
&
ac97_mutex
);
codec_ready
=
S3C_AC97_GLBSTAT_CODECREADY
;
ac_codec_cmd
=
readl
(
s3c24xx_ac97
.
regs
+
S3C_AC97_CODEC_CMD
);
...
...
@@ -109,7 +109,7 @@ static void s3c2443_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
ac_codec_cmd
|=
S3C_AC97_CODEC_CMD_READ
;
writel
(
ac_codec_cmd
,
s3c24xx_ac97
.
regs
+
S3C_AC97_CODEC_CMD
);
up
(
&
ac97_mutex
);
mutex_unlock
(
&
ac97_mutex
);
}
...
...
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