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
341e9489
Commit
341e9489
authored
Apr 30, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge mandrakesoft.com:/home/jgarzik/vanilla/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/misc-2.5
parents
afae6f7c
ef8ffa85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
sound/oss/ac97_codec.c
sound/oss/ac97_codec.c
+23
-1
No files found.
sound/oss/ac97_codec.c
View file @
341e9489
...
...
@@ -65,6 +65,7 @@ static int tritech_maestro_init(struct ac97_codec * codec);
static
int
sigmatel_9708_init
(
struct
ac97_codec
*
codec
);
static
int
sigmatel_9721_init
(
struct
ac97_codec
*
codec
);
static
int
sigmatel_9744_init
(
struct
ac97_codec
*
codec
);
static
int
ad1886_init
(
struct
ac97_codec
*
codec
);
static
int
eapd_control
(
struct
ac97_codec
*
codec
,
int
);
static
int
crystal_digital_control
(
struct
ac97_codec
*
codec
,
int
mode
);
...
...
@@ -94,6 +95,7 @@ static struct ac97_ops sigmatel_9708_ops = { sigmatel_9708_init, NULL, NULL };
static
struct
ac97_ops
sigmatel_9721_ops
=
{
sigmatel_9721_init
,
NULL
,
NULL
};
static
struct
ac97_ops
sigmatel_9744_ops
=
{
sigmatel_9744_init
,
NULL
,
NULL
};
static
struct
ac97_ops
crystal_digital_ops
=
{
NULL
,
eapd_control
,
crystal_digital_control
};
static
struct
ac97_ops
ad1886_ops
=
{
ad1886_init
,
eapd_control
,
NULL
};
/* sorted by vendor/device id */
static
const
struct
{
...
...
@@ -107,7 +109,7 @@ static const struct {
{
0x41445360
,
"Analog Devices AD1885"
,
&
default_ops
},
{
0x41445361
,
"Analog Devices AD1886"
,
&
default_ops
},
{
0x41445460
,
"Analog Devices AD1885"
,
&
default_ops
},
{
0x41445461
,
"Analog Devices AD1886"
,
&
default
_ops
},
{
0x41445461
,
"Analog Devices AD1886"
,
&
ad1886
_ops
},
{
0x414B4D00
,
"Asahi Kasei AK4540"
,
&
null_ops
},
{
0x414B4D01
,
"Asahi Kasei AK4542"
,
&
null_ops
},
{
0x414B4D02
,
"Asahi Kasei AK4543"
,
&
null_ops
},
...
...
@@ -873,6 +875,26 @@ static int tritech_maestro_init(struct ac97_codec * codec)
}
/*
* Presario700 workaround
* for Jack Sense/SPDIF Register misetting causing
* no audible output
* by Santiago Nullo 04/05/2002
*/
#define AC97_AD1886_JACK_SENSE 0x72
static
int
ad1886_init
(
struct
ac97_codec
*
codec
)
{
/* from AD1886 Specs */
codec
->
codec_write
(
codec
,
AC97_AD1886_JACK_SENSE
,
0x0010
);
return
0
;
}
/*
* This is basically standard AC97. It should work as a default for
* almost all modern codecs. Note that some cards wire EAPD *backwards*
...
...
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