Home
last modified time | relevance | path

Searched refs:radio (Results 1 – 25 of 168) sorted by relevance

1234567

/Linux-v4.19/drivers/media/radio/si470x/
Dradio-si470x-usb.c207 static int si470x_get_report(struct si470x_device *radio, void *buf, int size) in si470x_get_report() argument
212 retval = usb_control_msg(radio->usbdev, in si470x_get_report()
213 usb_rcvctrlpipe(radio->usbdev, 0), in si470x_get_report()
220 dev_warn(&radio->intf->dev, in si470x_get_report()
230 static int si470x_set_report(struct si470x_device *radio, void *buf, int size) in si470x_set_report() argument
235 retval = usb_control_msg(radio->usbdev, in si470x_set_report()
236 usb_sndctrlpipe(radio->usbdev, 0), in si470x_set_report()
243 dev_warn(&radio->intf->dev, in si470x_set_report()
253 static int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument
257 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_get_register()
[all …]
Dradio-si470x-common.c188 static int si470x_set_band(struct si470x_device *radio, int band) in si470x_set_band() argument
190 if (radio->band == band) in si470x_set_band()
193 radio->band = band; in si470x_set_band()
194 radio->registers[SYSCONFIG2] &= ~SYSCONFIG2_BAND; in si470x_set_band()
195 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band()
196 return radio->set_register(radio, SYSCONFIG2); in si470x_set_band()
202 static int si470x_set_chan(struct si470x_device *radio, unsigned short chan) in si470x_set_chan() argument
208 retval = radio->get_register(radio, POWERCFG); in si470x_set_chan()
212 if ((radio->registers[POWERCFG] & (POWERCFG_ENABLE|POWERCFG_DMUTE)) in si470x_set_chan()
218 radio->registers[CHANNEL] &= ~CHANNEL_CHAN; in si470x_set_chan()
[all …]
Dradio-si470x-i2c.c92 static int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument
97 .addr = radio->client->addr, in si470x_get_register()
104 if (i2c_transfer(radio->client->adapter, msgs, 1) != 1) in si470x_get_register()
107 radio->registers[regnr] = __be16_to_cpu(buf[READ_INDEX(regnr)]); in si470x_get_register()
116 static int si470x_set_register(struct si470x_device *radio, int regnr) in si470x_set_register() argument
122 .addr = radio->client->addr, in si470x_set_register()
129 buf[i] = __cpu_to_be16(radio->registers[WRITE_INDEX(i)]); in si470x_set_register()
131 if (i2c_transfer(radio->client->adapter, msgs, 1) != 1) in si470x_set_register()
146 static int si470x_get_all_registers(struct si470x_device *radio) in si470x_get_all_registers() argument
152 .addr = radio->client->addr, in si470x_get_all_registers()
[all …]
Dradio-si470x.h166 int (*get_register)(struct si470x_device *radio, int regnr);
167 int (*set_register)(struct si470x_device *radio, int regnr);
225 int si470x_disconnect_check(struct si470x_device *radio);
226 int si470x_set_freq(struct si470x_device *radio, unsigned int freq);
227 int si470x_start(struct si470x_device *radio);
228 int si470x_stop(struct si470x_device *radio);
DKconfig8 Say Y here if you want to connect this type of radio to your
13 module will be called radio-si470x-common.
31 to redirect the audio stream from the radio to your sound device:
34 Say Y here if you want to connect this type of radio to your
38 module will be called radio-usb-si470x.
47 Say Y here if you want to connect this type of radio to your
51 module will be called radio-i2c-si470x.
DMakefile5 obj-$(CONFIG_RADIO_SI470X) += radio-si470x-common.o
6 obj-$(CONFIG_USB_SI470X) += radio-si470x-usb.o
7 obj-$(CONFIG_I2C_SI470X) += radio-si470x-i2c.o
/Linux-v4.19/drivers/media/radio/
Dradio-mr800.c144 static int amradio_send_cmd(struct amradio_device *radio, u8 cmd, u8 arg, in amradio_send_cmd() argument
150 radio->buffer[0] = 0x00; in amradio_send_cmd()
151 radio->buffer[1] = 0x55; in amradio_send_cmd()
152 radio->buffer[2] = 0xaa; in amradio_send_cmd()
153 radio->buffer[3] = extralen; in amradio_send_cmd()
154 radio->buffer[4] = cmd; in amradio_send_cmd()
155 radio->buffer[5] = arg; in amradio_send_cmd()
156 radio->buffer[6] = 0x00; in amradio_send_cmd()
157 radio->buffer[7] = extra || reply ? 8 : 0; in amradio_send_cmd()
159 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2), in amradio_send_cmd()
[all …]
Dradio-keene.c79 static int keene_cmd_main(struct keene_device *radio, unsigned freq, bool play) in keene_cmd_main() argument
84 radio->buffer[0] = 0x00; in keene_cmd_main()
85 radio->buffer[1] = 0x50; in keene_cmd_main()
86 radio->buffer[2] = (freq_send >> 8) & 0xff; in keene_cmd_main()
87 radio->buffer[3] = freq_send & 0xff; in keene_cmd_main()
88 radio->buffer[4] = radio->pa; in keene_cmd_main()
94 radio->buffer[5] = (radio->muted ? 4 : 8) | (play ? 1 : 2) | in keene_cmd_main()
96 radio->buffer[6] = 0x00; in keene_cmd_main()
97 radio->buffer[7] = 0x00; in keene_cmd_main()
99 ret = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in keene_cmd_main()
[all …]
Dradio-ma901.c102 static int ma901radio_set_freq(struct ma901radio_device *radio, int freq) in ma901radio_set_freq() argument
107 radio->buffer[0] = 0x0a; in ma901radio_set_freq()
108 radio->buffer[1] = MA901_RADIO_SET_FREQ; in ma901radio_set_freq()
109 radio->buffer[2] = ((freq_send >> 8) & 0xff) + 0x80; in ma901radio_set_freq()
110 radio->buffer[3] = freq_send & 0xff; in ma901radio_set_freq()
111 radio->buffer[4] = 0x00; in ma901radio_set_freq()
112 radio->buffer[5] = 0x00; in ma901radio_set_freq()
113 radio->buffer[6] = 0x00; in ma901radio_set_freq()
114 radio->buffer[7] = 0x00; in ma901radio_set_freq()
116 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901radio_set_freq()
[all …]
Ddsbr100.c90 static int dsbr100_setfreq(struct dsbr100_device *radio, unsigned freq) in dsbr100_setfreq() argument
95 if (!radio->muted) { in dsbr100_setfreq()
96 retval = usb_control_msg(radio->usbdev, in dsbr100_setfreq()
97 usb_rcvctrlpipe(radio->usbdev, 0), in dsbr100_setfreq()
101 radio->transfer_buffer, 8, 300); in dsbr100_setfreq()
107 radio->curfreq = freq; in dsbr100_setfreq()
110 dev_err(&radio->usbdev->dev, in dsbr100_setfreq()
117 static int dsbr100_start(struct dsbr100_device *radio) in dsbr100_start() argument
119 int retval = usb_control_msg(radio->usbdev, in dsbr100_start()
120 usb_rcvctrlpipe(radio->usbdev, 0), in dsbr100_start()
[all …]
Dradio-wl1273.c139 static int wl1273_fm_rds(struct wl1273_device *radio) in wl1273_fm_rds() argument
141 struct wl1273_core *core = radio->core; in wl1273_fm_rds()
178 dev_err(radio->dev, WL1273_FM_DRIVER_NAME in wl1273_fm_rds()
202 memcpy(&radio->buffer[radio->wr_index], &rds, RDS_BLOCK_SIZE); in wl1273_fm_rds()
203 radio->wr_index += 3; in wl1273_fm_rds()
206 if (radio->wr_index >= radio->buf_size) in wl1273_fm_rds()
207 radio->wr_index = 0; in wl1273_fm_rds()
210 if (radio->wr_index == radio->rd_index) { in wl1273_fm_rds()
211 dev_dbg(radio->dev, "RDS OVERFLOW"); in wl1273_fm_rds()
213 radio->rd_index = 0; in wl1273_fm_rds()
[all …]
Dradio-si476x.c341 struct si476x_radio *radio = video_drvdata(file); in si476x_radio_querycap() local
343 strlcpy(capability->driver, radio->v4l2dev.name, in si476x_radio_querycap()
347 "platform:%s", radio->v4l2dev.name); in si476x_radio_querycap()
353 si476x_core_lock(radio->core); in si476x_radio_querycap()
354 if (!si476x_core_is_a_secondary_tuner(radio->core)) in si476x_radio_querycap()
357 si476x_core_unlock(radio->core); in si476x_radio_querycap()
368 struct si476x_radio *radio = video_drvdata(file); in si476x_radio_enum_freq_bands() local
373 switch (radio->core->chip_id) { in si476x_radio_enum_freq_bands()
406 struct si476x_radio *radio = video_drvdata(file); in si476x_radio_g_tuner() local
428 si476x_core_lock(radio->core); in si476x_radio_g_tuner()
[all …]
Dradio-raremono.c122 static int raremono_cmd_main(struct raremono_device *radio, unsigned band, unsigned freq) in raremono_cmd_main() argument
139 radio->buffer[0] = 0x04 + band_offset; in raremono_cmd_main()
140 radio->buffer[1] = freq >> 8; in raremono_cmd_main()
141 radio->buffer[2] = freq & 0xff; in raremono_cmd_main()
143 ret = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in raremono_cmd_main()
146 0x0300 + radio->buffer[0], 2, in raremono_cmd_main()
147 radio->buffer, 3, USB_TIMEOUT); in raremono_cmd_main()
150 dev_warn(radio->v4l2_dev.dev, "%s failed (%d)\n", __func__, ret); in raremono_cmd_main()
153 radio->curfreq = (band == BAND_FM) ? freq * 10 : freq; in raremono_cmd_main()
164 struct raremono_device *radio = to_raremono_dev(usb_get_intfdata(intf)); in usb_raremono_disconnect() local
[all …]
Dradio-tea5764.c149 static int tea5764_i2c_read(struct tea5764_device *radio) in tea5764_i2c_read() argument
152 u16 *p = (u16 *) &radio->regs; in tea5764_i2c_read()
155 { .addr = radio->i2c_client->addr, in tea5764_i2c_read()
157 .len = sizeof(radio->regs), in tea5764_i2c_read()
158 .buf = (void *)&radio->regs in tea5764_i2c_read()
161 if (i2c_transfer(radio->i2c_client->adapter, msgs, 1) != 1) in tea5764_i2c_read()
169 static int tea5764_i2c_write(struct tea5764_device *radio) in tea5764_i2c_write() argument
172 struct tea5764_regs *r = &radio->regs; in tea5764_i2c_write()
175 .addr = radio->i2c_client->addr, in tea5764_i2c_write()
186 if (i2c_transfer(radio->i2c_client->adapter, msgs, 1) != 1) in tea5764_i2c_write()
[all …]
DMakefile6 obj-$(CONFIG_RADIO_ISA) += radio-isa.o
7 obj-$(CONFIG_RADIO_AZTECH) += radio-aztech.o
8 obj-$(CONFIG_RADIO_RTRACK2) += radio-rtrack2.o
9 obj-$(CONFIG_RADIO_SF16FMI) += radio-sf16fmi.o
10 obj-$(CONFIG_RADIO_SF16FMR2) += radio-sf16fmr2.o
11 obj-$(CONFIG_RADIO_CADET) += radio-cadet.o
12 obj-$(CONFIG_RADIO_TYPHOON) += radio-typhoon.o
13 obj-$(CONFIG_RADIO_TERRATEC) += radio-terratec.o
14 obj-$(CONFIG_RADIO_MAXIRADIO) += radio-maxiradio.o
15 obj-$(CONFIG_RADIO_SHARK) += radio-shark.o
[all …]
DKconfig11 Say Y here to enable selecting AM/FM radio adapters.
18 source "drivers/media/radio/si470x/Kconfig"
24 source "drivers/media/radio/si4713/Kconfig"
33 Choose Y here if you have this FM radio chip.
35 In order to control your radio card, you will need to use programs
41 module will be called radio-si476x.
44 tristate "AverMedia MR 800 USB FM radio support"
47 Say Y here if you want to connect this type of radio to your
53 module will be called radio-mr800.
56 tristate "D-Link/GemTek USB FM radio support"
[all …]
/Linux-v4.19/drivers/media/radio/si4713/
Dradio-usb-si4713.c68 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_querycap() local
72 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info)); in vidioc_querycap()
82 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_g_modulator() local
84 return v4l2_subdev_call(radio->v4l2_subdev, tuner, g_modulator, vm); in vidioc_g_modulator()
90 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_s_modulator() local
92 return v4l2_subdev_call(radio->v4l2_subdev, tuner, s_modulator, vm); in vidioc_s_modulator()
98 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_s_frequency() local
100 return v4l2_subdev_call(radio->v4l2_subdev, tuner, s_frequency, vf); in vidioc_s_frequency()
106 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_g_frequency() local
108 return v4l2_subdev_call(radio->v4l2_subdev, tuner, g_frequency, vf); in vidioc_g_frequency()
[all …]
/Linux-v4.19/drivers/media/usb/usbvision/
Dusbvision-cards.c37 .radio = 0,
51 .radio = 0,
67 .radio = 0,
81 .radio = 0,
97 .radio = 0,
113 .radio = 0,
127 .radio = 0,
143 .radio = 0,
157 .radio = 0,
173 .radio = 0,
[all …]
/Linux-v4.19/Documentation/media/v4l-drivers/
Dsi470x.rst12 Silicon Laboratories is the manufacturer of the radio ICs, that nowadays are the
13 most often used radio receivers in cell phones. Usually they are connected with
15 together with a small microcontroller C8051F321, to form a USB radio.
16 Part of this reference design is also a radio application in binary and source
28 - Si4700: FM radio receiver
29 - Si4701: FM radio receiver, RDS Support
30 - Si4702: FM radio receiver
31 - Si4703: FM radio receiver, RDS Support
32 - Si4704: FM radio receiver, no external antenna required
33 - Si4705: FM radio receiver, no external antenna required, RDS support, Dig I/O
[all …]
Dradiotrack.rst1 The Radiotrack radio driver
28 value, I wanted to see if the tuner could be tuned beyond the usual FM radio
40 The RadioTrack card is an ISA 8-bit FM radio card. The radio frequency (RF)
57 (or blocks) of the radio card. This way, many functions can be changed in
128 radio enable, tuner adjust disable)
131 radio disable, tuner adjust disable)
137 radio enable, tuner adjust disable)
142 radio enable, tuner adjust disable)
147 radio enable, tuner adjust disable)
158 BASE <-- 0x01 (audio mute, no stereo detect, radio
[all …]
/Linux-v4.19/drivers/media/i2c/
Dvp27smpx.c38 int radio; member
76 state->radio = 1; in vp27smpx_s_radio()
84 state->radio = 0; in vp27smpx_s_std()
92 if (!state->radio) in vp27smpx_s_tuner()
101 if (state->radio) in vp27smpx_g_tuner()
115 state->radio ? " (Radio)" : ""); in vp27smpx_log_status()
/Linux-v4.19/Documentation/media/uapi/v4l/
Ddev-radio.rst9 This interface is intended for AM and FM (analog) radio receivers and
12 Conventionally V4L2 radio devices are accessed through character device
13 special files named ``/dev/radio`` and ``/dev/radio0`` to
20 Devices supporting the radio interface set the ``V4L2_CAP_RADIO`` and
45 Further all radio devices have one tuner or modulator (these are
46 discussed in :ref:`tuner`) with index number zero to select the radio
/Linux-v4.19/drivers/media/pci/saa7134/
Dsaa7134-cards.c101 .radio = {
142 .radio = {
184 .radio = {
259 .radio = {
307 .radio = {
341 .radio = {
370 .radio = {
404 .radio = {
445 .radio = {
476 .radio = {
[all …]
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-class-uwb_rc7 Platform (UWB) radio controllers.
26 An individual UWB radio controller.
41 radio controller's supported band groups.
44 the radio controller is not beaconing.
81 radio controller. A write will change the radio
91 Controller PAL using this radio controller.
99 as part of a scan or is a member of the radio
107 The time (using the radio controllers internal 1 ms
159 measure of the radio link quality.
/Linux-v4.19/net/ax25/
DKconfig9 If you want to connect your Linux box to an amateur radio, answer Y
16 the questions about amateur radio.
26 radio. It is either used by itself for point-to-point links, or to
28 that connects your Linux box to your amateur radio. You can either
30 modem connecting your computer's serial port to your radio's
39 radio as well as information about how to configure an AX.25 port is
43 kernel source. More information about digital amateur radio in
86 A comprehensive listing of all the software for Linux amateur radio
91 digital amateur radio in general is on the WWW at
102 connections in general and amateur radio AX.25 connections in
[all …]

1234567