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
a315d71e
Commit
a315d71e
authored
Mar 29, 2004
by
Jaroslav Kysela
Committed by
Linus Torvalds
Mar 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
PPC PowerMac driver Remove global enable variable
parent
c163292a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
sound/ppc/powermac.c
sound/ppc/powermac.c
+6
-4
No files found.
sound/ppc/powermac.c
View file @
a315d71e
...
@@ -36,7 +36,7 @@ MODULE_LICENSE("GPL");
...
@@ -36,7 +36,7 @@ MODULE_LICENSE("GPL");
static
int
index
=
SNDRV_DEFAULT_IDX1
;
/* Index 0-MAX */
static
int
index
=
SNDRV_DEFAULT_IDX1
;
/* Index 0-MAX */
static
char
*
id
=
SNDRV_DEFAULT_STR1
;
/* ID for this card */
static
char
*
id
=
SNDRV_DEFAULT_STR1
;
/* ID for this card */
static
int
enable
=
1
;
/* static int enable = 1; */
#ifdef PMAC_SUPPORT_PCM_BEEP
#ifdef PMAC_SUPPORT_PCM_BEEP
static
int
enable_beep
=
1
;
static
int
enable_beep
=
1
;
#endif
#endif
...
@@ -47,9 +47,9 @@ MODULE_PARM_SYNTAX(index, SNDRV_INDEX_DESC);
...
@@ -47,9 +47,9 @@ MODULE_PARM_SYNTAX(index, SNDRV_INDEX_DESC);
MODULE_PARM
(
id
,
"s"
);
MODULE_PARM
(
id
,
"s"
);
MODULE_PARM_DESC
(
id
,
"ID string for "
CHIP_NAME
" soundchip."
);
MODULE_PARM_DESC
(
id
,
"ID string for "
CHIP_NAME
" soundchip."
);
MODULE_PARM_SYNTAX
(
id
,
SNDRV_ID_DESC
);
MODULE_PARM_SYNTAX
(
id
,
SNDRV_ID_DESC
);
MODULE_PARM
(
enable
,
"i"
);
/*
MODULE_PARM(enable, "i");
MODULE_PARM_DESC
(
enable
,
"Enable this soundchip."
);
MODULE_PARM_DESC(enable, "Enable this soundchip.");
MODULE_PARM_SYNTAX
(
enable
,
SNDRV_ENABLE_DESC
);
MODULE_PARM_SYNTAX(enable, SNDRV_ENABLE_DESC); */
#ifdef PMAC_SUPPORT_PCM_BEEP
#ifdef PMAC_SUPPORT_PCM_BEEP
MODULE_PARM
(
enable_beep
,
"i"
);
MODULE_PARM
(
enable_beep
,
"i"
);
MODULE_PARM_DESC
(
enable_beep
,
"Enable beep using PCM."
);
MODULE_PARM_DESC
(
enable_beep
,
"Enable beep using PCM."
);
...
@@ -183,6 +183,8 @@ module_exit(alsa_card_pmac_exit)
...
@@ -183,6 +183,8 @@ module_exit(alsa_card_pmac_exit)
static
int
__init
alsa_card_pmac_setup
(
char
*
str
)
static
int
__init
alsa_card_pmac_setup
(
char
*
str
)
{
{
int
__attribute__
((
__unused__
))
enable
=
1
;
(
void
)(
get_option
(
&
str
,
&
enable
)
==
2
&&
(
void
)(
get_option
(
&
str
,
&
enable
)
==
2
&&
get_option
(
&
str
,
&
index
)
==
2
&&
get_option
(
&
str
,
&
index
)
==
2
&&
get_id
(
&
str
,
&
id
)
==
2
get_id
(
&
str
,
&
id
)
==
2
...
...
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