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
6c93b71e
Commit
6c93b71e
authored
Apr 07, 2003
by
Alan Cox
Committed by
Linus Torvalds
Apr 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ics2101 needs to match the gus_lock name too
parent
a50ac258
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sound/oss/ics2101.c
sound/oss/ics2101.c
+7
-7
No files found.
sound/oss/ics2101.c
View file @
6c93b71e
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
extern
int
*
gus_osp
;
extern
int
*
gus_osp
;
extern
int
gus_base
;
extern
int
gus_base
;
extern
spinlock_t
lock
;
extern
spinlock_t
gus_
lock
;
static
int
volumes
[
ICS_MIXDEVS
];
static
int
volumes
[
ICS_MIXDEVS
];
static
int
left_fix
[
ICS_MIXDEVS
]
=
static
int
left_fix
[
ICS_MIXDEVS
]
=
{
1
,
1
,
1
,
2
,
1
,
2
};
{
1
,
1
,
1
,
2
,
1
,
2
};
...
@@ -87,12 +87,12 @@ static void write_mix(int dev, int chn, int vol)
...
@@ -87,12 +87,12 @@ static void write_mix(int dev, int chn, int vol)
attn_addr
|=
0x03
;
attn_addr
|=
0x03
;
}
}
spin_lock_irqsave
(
&
lock
,
flags
);
spin_lock_irqsave
(
&
gus_
lock
,
flags
);
outb
((
ctrl_addr
),
u_MixSelect
);
outb
((
ctrl_addr
),
u_MixSelect
);
outb
((
selector
[
dev
]),
u_MixData
);
outb
((
selector
[
dev
]),
u_MixData
);
outb
((
attn_addr
),
u_MixSelect
);
outb
((
attn_addr
),
u_MixSelect
);
outb
(((
unsigned
char
)
vol
),
u_MixData
);
outb
(((
unsigned
char
)
vol
),
u_MixData
);
spin_unlock_irqrestore
(
&
lock
,
flags
);
spin_unlock_irqrestore
(
&
gus_
lock
,
flags
);
}
}
static
int
set_volumes
(
int
dev
,
int
vol
)
static
int
set_volumes
(
int
dev
,
int
vol
)
...
@@ -209,10 +209,10 @@ static int ics2101_mixer_ioctl(int dev, unsigned int cmd, caddr_t arg)
...
@@ -209,10 +209,10 @@ static int ics2101_mixer_ioctl(int dev, unsigned int cmd, caddr_t arg)
static
struct
mixer_operations
ics2101_mixer_operations
=
static
struct
mixer_operations
ics2101_mixer_operations
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
id:
"ICS2101"
,
.
id
=
"ICS2101"
,
name:
"ICS2101 Multimedia Mixer"
,
.
name
=
"ICS2101 Multimedia Mixer"
,
ioctl:
ics2101_mixer_ioctl
.
ioctl
=
ics2101_mixer_ioctl
};
};
int
__init
ics2101_mixer_init
(
void
)
int
__init
ics2101_mixer_init
(
void
)
...
...
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