annotate drivers/radeon/README @ 12281:e6f6dac5d77b

needed for a/v sync with compressed audio (e.g. raw .mp2 or .ac3 file)
author rfelker
date Mon, 26 Apr 2004 03:11:08 +0000
parents d30207dfe25a
children e31e2699d9c1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1921
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
1 framebuffer driver for ATI Radeon chipset video boards
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
2 ======================================================
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
3
1919
e9762fe502a8 initial howto
nick
parents:
diff changeset
4 These files are replacement for linux-2.4.x-ac.y drivers.
e9762fe502a8 initial howto
nick
parents:
diff changeset
5 To use this driver you should have at least linux-2.4.5-ac.1
e9762fe502a8 initial howto
nick
parents:
diff changeset
6 then simply replace linux/drivers/video/radeon* with files
e9762fe502a8 initial howto
nick
parents:
diff changeset
7 from this directory.
1968
dde27e9e34bf Driver location notes
nick
parents: 1921
diff changeset
8 Note: since linux-2.4.10 this driver was moved from -ac to
dde27e9e34bf Driver location notes
nick
parents: 1921
diff changeset
9 Linus distribution.
1919
e9762fe502a8 initial howto
nick
parents:
diff changeset
10
1921
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
11 Alternative way:
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
12 ~~~~~~~~~~~~~~~~
3244
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
13 Simply type two commands in this directory:
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
14 make
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
15 make install
1921
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
16
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
17 Anyway you should have 'Frame buffer support' compiled into linux-kernel
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
18 and at least '8bpp packed pixel support' compiled and installed as module.
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
19 (But if you plan to use this module with mplayer you also should have
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
20 16bpp, 24bpp and 32bpp pixel support compiled as modules).
3733b1430c60 building improvements
nick
parents: 1919
diff changeset
21
3164
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
22
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
23 Radeon video overlay
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
24 ====================
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
25
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
26 Was designed for mplayer and currently can be used only by mplayer.
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
27 It's RGB-YUV BES for radeon cards (althrough there is experimental
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
28 support for rage128 / rage128pro chips).
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
29
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
30 Installation:
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
31 ~~~~~~~~~~~~~
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
32
3244
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
33 Simply type two commands in this directory:
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
34 make
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
35 make install
3246
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
36 If you install it first time then type also:
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
37 make nodes
3164
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
38
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
39 Using with mplayer:
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
40 ~~~~~~~~~~~~~~~~~~~
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
41
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
42 Currently there is only way to use ATI's drivers:
3270
d5d87c2c9157 -vo mga notes
nick
parents: 3265
diff changeset
43 mplayer -vo vesa:lvo:/dev/radeon_vid -<your vesa's options> filename
3164
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
44 or
3270
d5d87c2c9157 -vo mga notes
nick
parents: 3265
diff changeset
45 mplayer -vo vesa:lvo:/dev/rage128_vid -<your vesa's options> filename
d5d87c2c9157 -vo mga notes
nick
parents: 3265
diff changeset
46
d5d87c2c9157 -vo mga notes
nick
parents: 3265
diff changeset
47 For YV12 formats you can use also:
d5d87c2c9157 -vo mga notes
nick
parents: 3265
diff changeset
48 mplayer -vo mga:/dev/radeon_vid -<your mga's option> filename
d5d87c2c9157 -vo mga notes
nick
parents: 3265
diff changeset
49
d5d87c2c9157 -vo mga notes
nick
parents: 3265
diff changeset
50 but in this case you should load at least radeonfb driver from
d5d87c2c9157 -vo mga notes
nick
parents: 3265
diff changeset
51 this package.
3164
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
52
3246
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
53 Configuring:
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
54 ~~~~~~~~~~~~
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
55
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
56 You can tune up some parameters with using following trick:
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
57 echo "parameter=value">/dev/radeon_vid
3251
acb2fcf45d9a More useful example
nick
parents: 3246
diff changeset
58 Example (disables adaptive deinterlacing):
acb2fcf45d9a More useful example
nick
parents: 3246
diff changeset
59 echo "deinterlace=off">/dev/radeon_vid
3246
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
60
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
61 To know more about these parameters - try read /dev/radeon_vid file ;)
3263
4ee5fc519e08 Fixed 'cat' problems
nick
parents: 3253
diff changeset
62 For example:
4ee5fc519e08 Fixed 'cat' problems
nick
parents: 3253
diff changeset
63 cat /dev/radeon_vid
3253
48899ffdc4de Minor improvements
nick
parents: 3251
diff changeset
64
48899ffdc4de Minor improvements
nick
parents: 3251
diff changeset
65 List of parameters:
48899ffdc4de Minor improvements
nick
parents: 3251
diff changeset
66 ~~~~~~~~~~~~~~~~~~~
3470
1a1669d42306 Tuned some registers
nick
parents: 3278
diff changeset
67 if you have rage128 chip:
3921
f6cd00725f6e Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents: 3470
diff changeset
68 brightness=decval (-64:+63) changes brightness
f6cd00725f6e Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents: 3470
diff changeset
69 saturation=decval (0:+31) changes saturation 0 == grayscaled mode
f6cd00725f6e Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents: 3470
diff changeset
70 else - if you have radeon:
f6cd00725f6e Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents: 3470
diff changeset
71 brightness=decval (-1000:+1000) -1000 == black screen
f6cd00725f6e Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents: 3470
diff changeset
72 saturation=decval (-1000:+1000) -1000 == grayscaled mode
f6cd00725f6e Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents: 3470
diff changeset
73 contrast=decval (-1000:+1000) -1000 == black screen
f6cd00725f6e Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents: 3470
diff changeset
74 hue=decval (-1000:+1000) -1000 == +1000 (full circle)
f6cd00725f6e Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents: 3470
diff changeset
75 all other values are within this range
f6cd00725f6e Added support of BRIGHTNESS, SATURATION, CONTRAST, HUE on Radeons
nick
parents: 3470
diff changeset
76 Note: 0 is default value for every parameter on radeons
3945
d30207dfe25a note for all users
nick
parents: 3944
diff changeset
77 WARNING: This driver violates rule: "no float in the kernel".
d30207dfe25a note for all users
nick
parents: 3944
diff changeset
78 So if you have problems then don't use color correction and
d30207dfe25a note for all users
nick
parents: 3944
diff changeset
79 tell me about these problems.
3470
1a1669d42306 Tuned some registers
nick
parents: 3278
diff changeset
80
3253
48899ffdc4de Minor improvements
nick
parents: 3251
diff changeset
81 double_buff=on/off enables/disables double buffering
48899ffdc4de Minor improvements
nick
parents: 3251
diff changeset
82 deinterlace=on/off enables/disables adaprive deinterlacing
48899ffdc4de Minor improvements
nick
parents: 3251
diff changeset
83 deinterlace_pattern=hexval defines deinterlacing pattern
3246
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
84
3265
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
85 Driver parameters:
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
86 ~~~~~~~~~~~~~~~~~~
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
87
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
88 You can use some additional parameters during module loading:
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
89 Example:
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
90 modprobe radeon_vid swap_fourcc=1
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
91
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
92 List of driver's parameters:
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
93 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
94 mtrr=1/0 configures MTRR (if available) default = 1
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
95 swap_fourcc=1/0 performs byte swapping of passed fourcc.
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
96 (It's required for compatibility with -vo mga)
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
97
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
98 To know more about driver's parameters execute:
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
99 modinfo radeon_vid
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
100 or
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
101 modinfo rage128_vid
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
102
3164
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
103 Note:
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
104 ~~~~~
3265
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
105 For command line of mplayer:
3164
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
106 You can pass only options with can be recognized by vo_vesa driver.
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
107 (Indeed radeon_vid and rage128_vid are stupid things and can create
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
108 video overlay only. But mode switching and other adjustement performs
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
109 vo_vesa driver. This mean that they use VESA BIOS as graphics server).
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
110
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
111 Conslusion:
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
112 ~~~~~~~~~~~
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
113 This stuff (radeon(rage128)_vid) currently doesn't support any standards.
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
114 So after implementing linux standards I'll fully rewrite this driver.
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 1968
diff changeset
115
3265
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
116 Full example:
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
117 ~~~~~~~~~~~~~
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
118 modprobe radeon_vid mtrr=1
3278
404cfc1a0942 Color key still causes some troubles
nick
parents: 3270
diff changeset
119 echo "deinterlace_pattern=F0055555">/dev/radeon_vid
3265
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
120 mplayer -vo vesa:lvo:/dev/radeon_vid -fs -zoom -bpp 32 filename
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
121
ec69d8238c84 Support for MTRR and 'swap_fourcc' flag
nick
parents: 3263
diff changeset
122 Enjoy!