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
e074c41c
Commit
e074c41c
authored
Aug 14, 2002
by
Petr Vandrovec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for MGA-TVO-B into matroxfb. By Mike Pieper.
parent
102d4858
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
drivers/video/matrox/matroxfb_base.c
drivers/video/matrox/matroxfb_base.c
+3
-0
drivers/video/matrox/matroxfb_maven.c
drivers/video/matrox/matroxfb_maven.c
+13
-5
No files found.
drivers/video/matrox/matroxfb_base.c
View file @
e074c41c
...
...
@@ -80,6 +80,9 @@
* "Denis Zaitsev" <zzz@cd-club.ru>
* Fixes
*
* "Mike Pieper" <mike@pieper-family.de>
* TVOut enhandcements.
*
* (following author is not in any relation with this code, but his code
* is included in this driver)
*
...
...
drivers/video/matrox/matroxfb_maven.c
View file @
e074c41c
...
...
@@ -215,6 +215,13 @@ static void DAC1064_calcclock(unsigned int freq, unsigned int fmax,
return
;
}
static
unsigned
char
maven_compute_deflicker
(
const
struct
maven_data
*
md
)
{
unsigned
char
df
;
df
=
(
md
->
version
==
MGATVO_B
?
0x40
:
0x00
);
return
df
;
}
static
void
maven_init_TVdata
(
const
struct
maven_data
*
md
,
struct
mavenregs
*
data
)
{
static
struct
mavenregs
palregs
=
{
{
0x2A
,
0x09
,
0x8A
,
0xCB
,
/* 00: chroma subcarrier */
...
...
@@ -321,13 +328,14 @@ static void maven_init_TVdata(const struct maven_data* md, struct mavenregs* dat
0x00
,
/* never written */
},
MATROXFB_OUTPUT_MODE_NTSC
,
525
,
60
};
MINFO_FROM
(
md
->
primary_head
);
if
(
ACCESS_FBINFO
(
outputs
[
1
]).
mode
==
MATROXFB_OUTPUT_MODE_PAL
)
*
data
=
palregs
;
else
*
data
=
ntscregs
;
data
->
regs
[
0x93
]
=
0xA2
;
/* Set deflicker */
data
->
regs
[
0x93
]
=
maven_compute_deflicker
(
md
);
/* gamma correction registers */
data
->
regs
[
0x83
]
=
0x00
;
...
...
@@ -468,7 +476,7 @@ static void maven_init_TV(struct i2c_client* c, const struct mavenregs* m) {
LR
(
0xC2
);
maven_get_reg
(
c
,
0x8D
);
maven_set_reg
(
c
,
0x8D
,
0x0
0
);
maven_set_reg
(
c
,
0x8D
,
0x0
4
);
LR
(
0x20
);
/* saturation #1 */
LR
(
0x22
);
/* saturation #2 */
...
...
@@ -493,7 +501,7 @@ static void maven_init_TV(struct i2c_client* c, const struct mavenregs* m) {
LR
(
0x8B
);
val
=
maven_get_reg
(
c
,
0x8D
);
val
&=
0x1
0
;
/* 0x10 or anything ored with it */
val
&=
0x1
4
;
/* 0x10 or anything ored with it */
maven_set_reg
(
c
,
0x8D
,
val
);
LR
(
0x33
);
...
...
@@ -800,7 +808,7 @@ static inline int maven_compute_timming(struct maven_data* md,
m
->
regs
[
0xB0
]
=
0x03
;
/* output: monitor */
m
->
regs
[
0xB1
]
=
0xA0
;
/* ??? */
m
->
regs
[
0x8C
]
=
0x20
;
/* must be set... */
m
->
regs
[
0x8D
]
=
0x0
0
;
/* defaults to 0x10: test signal */
m
->
regs
[
0x8D
]
=
0x0
4
;
/* defaults to 0x10: test signal */
m
->
regs
[
0xB9
]
=
0x1A
;
/* defaults to 0x2C: too bright */
m
->
regs
[
0xBF
]
=
0x22
;
/* makes picture stable */
...
...
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