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
dbb91092
Commit
dbb91092
authored
Oct 07, 2003
by
Michael Hunold
Committed by
Linus Torvalds
Oct 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] usual c99 initializer fixes
- the usual c99 initialization fixes all over the DVB place
parent
8966f893
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
9 deletions
+50
-9
drivers/media/dvb/ttpci/av7110.c
drivers/media/dvb/ttpci/av7110.c
+50
-9
No files found.
drivers/media/dvb/ttpci/av7110.c
View file @
dbb91092
...
@@ -2606,8 +2606,23 @@ void p_to_t(u8 const *buf, long int length, u16 pid, u8 *counter,
...
@@ -2606,8 +2606,23 @@ void p_to_t(u8 const *buf, long int length, u16 pid, u8 *counter,
****************************************************************************/
****************************************************************************/
static
struct
v4l2_input
inputs
[
2
]
=
{
static
struct
v4l2_input
inputs
[
2
]
=
{
{
0
,
"DVB"
,
V4L2_INPUT_TYPE_CAMERA
,
1
,
0
,
V4L2_STD_PAL_BG
|
V4L2_STD_NTSC_M
,
0
},
{
{
1
,
"ANALOG"
,
V4L2_INPUT_TYPE_TUNER
,
2
,
1
,
V4L2_STD_PAL_BG
|
V4L2_STD_NTSC_M
,
0
},
.
index
=
0
,
.
name
=
"DVB"
,
.
type
=
V4L2_INPUT_TYPE_CAMERA
,
.
audioset
=
1
,
.
tuner
=
0
,
/* ignored */
.
std
=
V4L2_STD_PAL_BG
|
V4L2_STD_NTSC_M
,
.
status
=
0
,
},
{
.
index
=
1
,
.
name
=
"ANALOG"
,
.
type
=
V4L2_INPUT_TYPE_TUNER
,
.
audioset
=
2
,
.
tuner
=
0
,
.
std
=
V4L2_STD_PAL_BG
|
V4L2_STD_NTSC_M
,
.
status
=
0
,
}
};
};
/* taken from ves1820.c */
/* taken from ves1820.c */
...
@@ -4627,19 +4642,45 @@ static void av7110_irq(struct saa7146_dev* dev, u32 *isr)
...
@@ -4627,19 +4642,45 @@ static void av7110_irq(struct saa7146_dev* dev, u32 *isr)
/* FIXME: these values are experimental values that look better than the
/* FIXME: these values are experimental values that look better than the
values from the latest "official" driver -- at least for me... (MiHu) */
values from the latest "official" driver -- at least for me... (MiHu) */
static
struct
saa7146_standard
standard
[]
=
{
static
struct
saa7146_standard
standard
[]
=
{
{
"PAL"
,
V4L2_STD_PAL
,
0x15
,
288
,
576
,
0x4a
,
708
,
709
,
576
,
768
},
{
// { "PAL", V4L2_STD_PAL, 0x15, 288, 576, 0x3a, 720, 721, 576, 768 },
.
name
=
"PAL"
,
.
id
=
V4L2_STD_PAL_BG
,
{
"NTSC"
,
V4L2_STD_NTSC
,
0x10
,
244
,
480
,
0x40
,
708
,
709
,
480
,
640
},
.
v_offset
=
0x15
,
.
v_field
=
288
,
.
v_calc
=
576
,
.
h_offset
=
0x4a
,
.
h_pixels
=
708
,
.
h_calc
=
709
,
.
v_max_out
=
576
,
.
h_max_out
=
768
,
},
{
.
name
=
"NTSC"
,
.
id
=
V4L2_STD_NTSC
,
.
v_offset
=
0x10
,
.
v_field
=
244
,
.
v_calc
=
480
,
.
h_offset
=
0x40
,
.
h_pixels
=
708
,
.
h_calc
=
709
,
.
v_max_out
=
480
,
.
h_max_out
=
640
,
}
};
};
static
struct
saa7146_standard
analog_standard
[]
=
{
static
struct
saa7146_standard
analog_standard
[]
=
{
{
"PAL"
,
V4L2_STD_PAL
,
0x18
,
288
,
576
,
0x08
,
708
,
709
,
576
,
768
},
{
{
"NTSC"
,
V4L2_STD_NTSC
,
0x10
,
244
,
480
,
0x40
,
708
,
709
,
480
,
640
},
.
name
=
"PAL"
,
.
id
=
V4L2_STD_PAL_BG
,
.
v_offset
=
0x18
,
.
v_field
=
288
,
.
v_calc
=
576
,
.
h_offset
=
0x08
,
.
h_pixels
=
708
,
.
h_calc
=
709
,
.
v_max_out
=
576
,
.
h_max_out
=
768
,
},
{
.
name
=
"NTSC"
,
.
id
=
V4L2_STD_NTSC
,
.
v_offset
=
0x10
,
.
v_field
=
244
,
.
v_calc
=
480
,
.
h_offset
=
0x40
,
.
h_pixels
=
708
,
.
h_calc
=
709
,
.
v_max_out
=
480
,
.
h_max_out
=
640
,
}
};
};
static
struct
saa7146_standard
dvb_standard
[]
=
{
static
struct
saa7146_standard
dvb_standard
[]
=
{
{
"PAL"
,
V4L2_STD_PAL
,
0x14
,
288
,
576
,
0x4a
,
708
,
709
,
576
,
768
},
{
{
"NTSC"
,
V4L2_STD_NTSC
,
0x10
,
244
,
480
,
0x40
,
708
,
709
,
480
,
640
},
.
name
=
"PAL"
,
.
id
=
V4L2_STD_PAL_BG
,
.
v_offset
=
0x14
,
.
v_field
=
288
,
.
v_calc
=
576
,
.
h_offset
=
0x4a
,
.
h_pixels
=
708
,
.
h_calc
=
709
,
.
v_max_out
=
576
,
.
h_max_out
=
768
,
},
{
.
name
=
"NTSC"
,
.
id
=
V4L2_STD_NTSC
,
.
v_offset
=
0x10
,
.
v_field
=
244
,
.
v_calc
=
480
,
.
h_offset
=
0x40
,
.
h_pixels
=
708
,
.
h_calc
=
709
,
.
v_max_out
=
480
,
.
h_max_out
=
640
,
}
};
};
static
struct
saa7146_extension
av7110_extension
;
static
struct
saa7146_extension
av7110_extension
;
...
...
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