[pvrusb2] wrong default values
Martin Dauskardt
martin.dauskardt at gmx.de
Mon Mar 30 02:11:20 CDT 2009
When I check v4l2-ctl --list-ctrls-menu after loading pvrusb2 I get a lot of
negative values (see attachment)
Tested with the v4l-dvb hg from today, but the problem exists longer.
For the pvrinput vdr-plugin, we are currently detecting the default value by
using struct v4l2_queryctrl . Unless the user does not set other values,
those detected values are used for initialising the card. Now we
get "Numerical result out of range" errors.
I think it is not a cx2341x problem, because the ivtv driver delivers the
right default values.
Mike, can you fix it?
-------------- next part --------------
linvdr:~# v4l2-ctl --list-ctrls-menu
brightness (int) : min=0 max=255 step=1 default=128 value=128
contrast (int) : min=0 max=127 step=1 default=68 value=68
saturation (int) : min=0 max=127 step=1 default=64 value=64
hue (int) : min=-128 max=127 step=1 default=0 value=0
volume (int) : min=0 max=65535 step=1 default=62000 value=62000
balance (int) : min=-32768 max=32767 step=1 default=0 value=0
bass (int) : min=-32768 max=32767 step=1 default=0 value=0
treble (int) : min=-32768 max=32767 step=1 default=0 value=0
mute (bool) : default=-1074277104 value=0
stream_type (menu) : min=0 max=5 default=-1074277104 value=0 flags=update
0: MPEG-2 Program Stream
1:
2: MPEG-1 System Stream
3: MPEG-2 DVD-compatible Stream
4: MPEG-1 VCD-compatible Stream
5: MPEG-2 SVCD-compatible Stream
audio_sampling_frequency (menu) : min=0 max=2 default=-1074277104 value=1
0: 44.1 kHz
1: 48 kHz
2: 32 kHz
audio_encoding (menu) : min=0 max=4 default=-1074277104 value=1 flags=update
0: MPEG-1/2 Layer I
1: MPEG-1/2 Layer II
2: MPEG-1/2 Layer III
3: MPEG-2/4 AAC
4: AC-3
audio_layer_ii_bitrate (menu) : min=0 max=13 default=-1074277104 value=10
0: 32 kbps
1: 48 kbps
2: 56 kbps
3: 64 kbps
4: 80 kbps
5: 96 kbps
6: 112 kbps
7: 128 kbps
8: 160 kbps
9: 192 kbps
10: 224 kbps
11: 256 kbps
12: 320 kbps
13: 384 kbps
audio_stereo_mode (menu) : min=0 max=3 default=-1074277104 value=0 flags=update
0: Stereo
1: Joint Stereo
2: Dual
3: Mono
audio_stereo_mode_extension (menu) : min=0 max=3 default=-1074277104 value=0 flags=inactive
0: Bound 4
1: Bound 8
2: Bound 12
3: Bound 16
audio_emphasis (menu) : min=0 max=2 default=-1074277104 value=0
0: No Emphasis
1: 50/15 us
2: CCITT J17
audio_crc (menu) : min=0 max=1 default=-1074277104 value=0
0: No CRC
1: 16-bit CRC
video_aspect (menu) : min=0 max=3 default=-1074277104 value=1
0: 1x1
1: 4x3
2: 16x9
3: 2.21x1
video_b_frames (int) : min=0 max=33 step=1 default=2 value=2 flags=update
video_gop_size (int) : min=1 max=34 step=1 default=15 value=12
video_gop_closure (bool) : default=-1074277104 value=1
video_bitrate_mode (menu) : min=0 max=1 default=-1074277104 value=0 flags=update
0: Variable Bitrate
1: Constant Bitrate
video_bitrate (int) : min=0 max=27000000 step=1 default=6000000 value=6000000
video_peak_bitrate (int) : min=0 max=27000000 step=1 default=8000000 value=8000000
video_temporal_decimation (int) : min=0 max=255 step=1 default=0 value=0
spatial_filter_mode (menu) : min=0 max=1 default=-1074277104 value=0 flags=update
0: Manual
1: Auto
spatial_filter (int) : min=0 max=15 step=1 default=0 value=0 flags=slider
spatial_luma_filter_type (menu) : min=0 max=4 default=-1074277104 value=1
0: Off
1: 1D Horizontal
2: 1D Vertical
3: 2D H/V Separable
4: 2D Symmetric non-separable
spatial_chroma_filter_type (menu) : min=0 max=1 default=-1074277104 value=1
0: Off
1: 1D Horizontal
temporal_filter_mode (menu) : min=0 max=1 default=-1074277104 value=0 flags=update
0: Manual
1: Auto
temporal_filter (int) : min=0 max=31 step=1 default=8 value=8 flags=slider
median_filter_type (menu) : min=0 max=4 default=-1074277104 value=0 flags=update
0: Off
1: Horizontal
2: Vertical
3: Horizontal/Vertical
4: Diagonal
median_luma_filter_minimum (int) : min=0 max=255 step=1 default=0 value=0 flags=inactive slider
median_luma_filter_maximum (int) : min=0 max=255 step=1 default=255 value=255 flags=inactive slider
median_chroma_filter_minimum (int) : min=0 max=255 step=1 default=0 value=0 flags=inactive slider
median_chroma_filter_maximum (int) : min=0 max=255 step=1 default=255 value=255 flags=inactive slider
More information about the pvrusb2
mailing list