Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
af9370e9
Commit
af9370e9
authored
Mar 23, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DTV: add Linux-specific high LNB voltage support
parent
798372cd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
modules/access/dtv/access.c
modules/access/dtv/access.c
+9
-3
modules/access/dtv/linux.c
modules/access/dtv/linux.c
+5
-0
No files found.
modules/access/dtv/access.c
View file @
af9370e9
...
...
@@ -149,6 +149,12 @@ static const char *const polarization_user[] = { N_("Unspecified (0V)"),
N_
(
"Vertical (13V)"
),
N_
(
"Horizontal (18V)"
),
N_
(
"Circular Right Hand (13V)"
),
N_
(
"Circular Left Hand (18V)"
)
};
#define HIGH_VOLTAGE_TEXT N_("High LNB voltage")
#define HIGH_VOLTAGE_LONGTEXT N_( \
"If the cables between the satellilte low noise block-downconverter and " \
"the receiver are long, higher voltage may be required.\n" \
"Not all receivers support this.")
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
...
@@ -240,14 +246,14 @@ vlc_module_begin ()
change_integer_range
(
0
,
18
)
change_private
()
change_safe
()
#if
0 //
def __linux__
#ifdef __linux__
add_bool
(
"dvb-high-voltage"
,
false
,
HIGH_VOLTAGE_TEXT
,
HIGH_VOLTAGE_LONGTEXT
,
false
)
#endif
#if 0
add_integer ("dvb-tone", -1, TONE_TEXT, TONE_LONGTEXT, true)
change_integer_list (tone_vlc, auto_off_on)
change_safe ()
#endif
#if 0
add_integer ("dvb-lnb-lof1", 0, LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, true)
change_integer_range (0, 0x7fffffff)
change_safe ()
...
...
modules/access/dtv/linux.c
View file @
af9370e9
...
...
@@ -550,6 +550,11 @@ static unsigned dvb_parse_polarization (char pol)
int
dvb_set_sec
(
dvb_device_t
*
d
,
char
pol
)
{
/* Always try to configure high voltage, but only warn on enable failure */
int
val
=
var_InheritBool
(
d
->
obj
,
"dvb-high-voltage"
);
if
(
ioctl
(
d
->
frontend
,
FE_ENABLE_HIGH_LNB_VOLTAGE
,
&
val
)
<
0
&&
val
)
msg_Err
(
d
->
obj
,
"cannot enable high LNB voltage: %m"
);
unsigned
voltage
=
dvb_parse_polarization
(
pol
);
return
dvb_set_prop
(
d
,
DTV_VOLTAGE
,
voltage
);
...
...
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