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
nexedi
linux
Commits
65c0e6a9
Commit
65c0e6a9
authored
Nov 26, 2003
by
Jaroslav Kysela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA CVS update - Takashi Iwai <tiwai@suse.de>
YMFPCI driver fixed the auto-detection of joystick port.
parent
02f63a5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
sound/pci/ymfpci/ymfpci.c
sound/pci/ymfpci/ymfpci.c
+9
-10
No files found.
sound/pci/ymfpci/ymfpci.c
View file @
65c0e6a9
...
...
@@ -194,17 +194,16 @@ static int __devinit snd_card_ymfpci_probe(struct pci_dev *pci,
}
if
(
joystick_res
)
joystick_port
[
dev
]
=
p
;
}
else
{
switch
(
joystick_port
[
dev
])
{
case
0x201
:
legacy_ctrl2
|=
0
<<
6
;
break
;
case
0x202
:
legacy_ctrl2
|=
1
<<
6
;
break
;
case
0x204
:
legacy_ctrl2
|=
2
<<
6
;
break
;
case
0x205
:
legacy_ctrl2
|=
3
<<
6
;
break
;
default:
joystick_port
[
dev
]
=
-
1
;
break
;
}
if
(
joystick_port
[
dev
]
>
0
)
joystick_res
=
request_region
(
joystick_port
[
dev
],
1
,
"YMFPCI gameport"
);
}
switch
(
joystick_port
[
dev
])
{
case
0x201
:
legacy_ctrl2
|=
0
<<
6
;
break
;
case
0x202
:
legacy_ctrl2
|=
1
<<
6
;
break
;
case
0x204
:
legacy_ctrl2
|=
2
<<
6
;
break
;
case
0x205
:
legacy_ctrl2
|=
3
<<
6
;
break
;
default:
joystick_port
[
dev
]
=
-
1
;
break
;
}
if
(
!
joystick_res
&&
joystick_port
[
dev
]
>
0
)
joystick_res
=
request_region
(
joystick_port
[
dev
],
1
,
"YMFPCI gameport"
);
if
(
joystick_res
)
{
legacy_ctrl
|=
YMFPCI_LEGACY_JPEN
;
}
else
{
...
...
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