summaryrefslogtreecommitdiff
path: root/usr.bin/radioctl/radioctl.1
blob: 77a5c06bf1d51eaa0870de88ffd4bbb571b48ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
.\"	$OpenBSD: radioctl.1,v 1.10 2005/12/06 12:58:50 jmc Exp $
.\"
.\" Copyright (c) 2001 Vladimir Popov
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
.\" ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd September 16, 2001
.Dt RADIOCTL 1
.Os
.Sh NAME
.Nm radioctl
.Nd control radio tuners
.Sh SYNOPSIS
.Nm radioctl
.Op Fl f Ar file
.Op Fl nv
.Fl a
.Nm radioctl
.Op Fl f Ar file
.Op Fl nv
.Ar name
.Nm radioctl
.Op Fl f Ar file
.Op Fl n
.Ar name Ns Li = Ns Ar value
.Sh DESCRIPTION
The
.Nm
command displays or sets various variables that affect the radio tuner
behavior.
If a variable is present on the command line,
.Nm
prints the current value of this variable for the specified device.
By default,
.Nm
operates on the
.Pa /dev/radio
device.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl a
Print all device variables and their current values.
.It Fl f Ar file
Specify an alternative radio tuner device.
.It Fl n
Suppress printing of the variable name.
.It Fl v
Show the possible values of queries.
.It Ar name Ns Li = Ns Ar value
Attempt to set the specified variable
.Ar name
to
.Ar value .
.El
.Pp
Values may be specified in either absolute or relative forms.
The relative form is indicated by a prefix of
.Ql +
or
.Ql -
to denote an increase or decrease, respectively.
.Pp
The exact set of controls that can be manipulated depends on
the tuner.
The general format (in both getting and setting a value) is:
.Bd -filled -offset indent
.Ar name Ns Li = Ns Ar value
.Ed
.Pp
The
.Ar name
indicates what part of the tuner the control affects.
.Pp
Write only controls:
.Bl -tag -width Ds
.It Ar search
Only for cards that allow hardware search.
Can be
.Ql up
or
.Ql down .
.El
.Pp
Read-write controls:
.Bl -tag -width Ds
.It Ar channel
Integer value from 0 to 150.
.It Ar chnlset
Specifies the TV channel set currently being used
.Pf ( Dq weurope
being the default):
.Pp
.Bl -tag -width "australiaXX" -offset indent -compact
.It nabcst
U.S.A. Broadcast
.It cableirc
U.S.A. Cable IRC
.It cablehrc
U.S.A. Cable HRC
.It weurope
Western Europe
.It jpnbcst
Japan Broadcast
.It jpncable
Japan Cable
.It xussr
Former U.S.S.R. and C.I.S. countries
.It australia
Australia
.It france
France
.El
.It Ar frequency
Float value from 87.5 to 108.0.
.It Ar volume
Integer value from 0 to 255.
.It Ar mute
Mutes the card (volume is not affected),
.Ql on
or
.Ql off .
.It Ar mono
Forces card output to mono,
.Ql on
or
.Ql off .
Only for cards that allow forced mono.
.It Ar reference
Reference frequency.
Can be 25 kHz, 50 kHz and 100 kHz.
Not all cards allow the reference frequency to be changed.
.It Ar sensitivity
Station locking sensitivity.
Can be 5 mkV, 10 mkV, 30 mkV and 150 mkV.
Not all cards allow the station locking sensitivity to be changed.
.El
.Pp
All the remaining controls (signal, stereo and card capabilities) are read-only
and can be viewed using option
.Fl a .
.Sh ENVIRONMENT
The following environment variable affects the execution of
.Nm radioctl :
.Bl -tag -width RADIODEVICE
.It Ev RADIODEVICE
The radio tuner device to use.
.El
.Sh FILES
.Bl -tag -width /dev/radio
.It Pa /dev/radio
radio tuner device
.El
.Sh EXAMPLES
Print all device variables,
along with their current values:
.Bd -literal -offset indent
$ radioctl -a
volume=255
channel=0
chnlset=weurope
frequency=106.30MHz
mute=off
reference=50kHz
signal=on
stereo=on
card capabilities:
        manageable mono/stereo
.Ed
.Sh SEE ALSO
.Xr radio 4
.Sh HISTORY
.Nm
command first appeared in
.Ox 3.0 .