Home
last modified time | relevance | path

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

1234

/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 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.c190 static int si470x_set_band(struct si470x_device *radio, int band) in si470x_set_band() argument
192 if (radio->band == band) in si470x_set_band()
195 radio->band = band; in si470x_set_band()
196 radio->registers[SYSCONFIG2] &= ~SYSCONFIG2_BAND; in si470x_set_band()
197 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band()
198 return si470x_set_register(radio, SYSCONFIG2); in si470x_set_band()
204 static int si470x_set_chan(struct si470x_device *radio, unsigned short chan) in si470x_set_chan() argument
211 radio->registers[CHANNEL] &= ~CHANNEL_CHAN; in si470x_set_chan()
212 radio->registers[CHANNEL] |= CHANNEL_TUNE | chan; in si470x_set_chan()
213 retval = si470x_set_register(radio, CHANNEL); in si470x_set_chan()
[all …]
Dradio-si470x-i2c.c93 int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument
98 .addr = radio->client->addr, in si470x_get_register()
105 if (i2c_transfer(radio->client->adapter, msgs, 1) != 1) in si470x_get_register()
108 radio->registers[regnr] = __be16_to_cpu(buf[READ_INDEX(regnr)]); in si470x_get_register()
117 int si470x_set_register(struct si470x_device *radio, int regnr) in si470x_set_register() argument
123 .addr = radio->client->addr, in si470x_set_register()
130 buf[i] = __cpu_to_be16(radio->registers[WRITE_INDEX(i)]); in si470x_set_register()
132 if (i2c_transfer(radio->client->adapter, msgs, 1) != 1) in si470x_set_register()
147 static int si470x_get_all_registers(struct si470x_device *radio) in si470x_get_all_registers() argument
153 .addr = radio->client->addr, in si470x_get_all_registers()
[all …]
DMakefile5 radio-usb-si470x-objs := radio-si470x-usb.o radio-si470x-common.o
6 radio-i2c-si470x-objs := radio-si470x-i2c.o radio-si470x-common.o
8 obj-$(CONFIG_USB_SI470X) += radio-usb-si470x.o
9 obj-$(CONFIG_I2C_SI470X) += radio-i2c-si470x.o
Dradio-si470x.h214 int si470x_get_register(struct si470x_device *radio, int regnr);
215 int si470x_set_register(struct si470x_device *radio, int regnr);
216 int si470x_disconnect_check(struct si470x_device *radio);
217 int si470x_set_freq(struct si470x_device *radio, unsigned int freq);
218 int si470x_start(struct si470x_device *radio);
219 int si470x_stop(struct si470x_device *radio);
DKconfig17 to redirect the audio stream from the radio to your sound device:
20 Say Y here if you want to connect this type of radio to your
24 module will be called radio-usb-si470x.
33 Say Y here if you want to connect this type of radio to your
37 module will be called radio-i2c-si470x.
/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-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-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-si476x.c337 struct si476x_radio *radio = video_drvdata(file); in si476x_radio_querycap() local
339 strlcpy(capability->driver, radio->v4l2dev.name, in si476x_radio_querycap()
343 "platform:%s", radio->v4l2dev.name); in si476x_radio_querycap()
349 si476x_core_lock(radio->core); in si476x_radio_querycap()
350 if (!si476x_core_is_a_secondary_tuner(radio->core)) in si476x_radio_querycap()
353 si476x_core_unlock(radio->core); in si476x_radio_querycap()
364 struct si476x_radio *radio = video_drvdata(file); in si476x_radio_enum_freq_bands() local
369 switch (radio->core->chip_id) { in si476x_radio_enum_freq_bands()
402 struct si476x_radio *radio = video_drvdata(file); in si476x_radio_g_tuner() local
424 si476x_core_lock(radio->core); in si476x_radio_g_tuner()
[all …]
Dradio-raremono.c134 static int raremono_cmd_main(struct raremono_device *radio, unsigned band, unsigned freq) in raremono_cmd_main() argument
151 radio->buffer[0] = 0x04 + band_offset; in raremono_cmd_main()
152 radio->buffer[1] = freq >> 8; in raremono_cmd_main()
153 radio->buffer[2] = freq & 0xff; in raremono_cmd_main()
155 ret = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in raremono_cmd_main()
158 0x0300 + radio->buffer[0], 2, in raremono_cmd_main()
159 radio->buffer, 3, USB_TIMEOUT); in raremono_cmd_main()
162 dev_warn(radio->v4l2_dev.dev, "%s failed (%d)\n", __func__, ret); in raremono_cmd_main()
165 radio->curfreq = (band == BAND_FM) ? freq * 10 : freq; in raremono_cmd_main()
176 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.
22 source "drivers/media/radio/si470x/Kconfig"
28 source "drivers/media/radio/si4713/Kconfig"
37 Choose Y here if you have this FM radio chip.
39 In order to control your radio card, you will need to use programs
45 module will be called radio-si476x.
48 tristate "AverMedia MR 800 USB FM radio support"
51 Say Y here if you want to connect this type of radio to your
57 module will be called radio-mr800.
60 tristate "D-Link/GemTek USB FM radio support"
[all …]
/drivers/media/radio/si4713/
Dradio-usb-si4713.c80 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_querycap() local
84 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info)); in vidioc_querycap()
94 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_g_modulator() local
96 return v4l2_subdev_call(radio->v4l2_subdev, tuner, g_modulator, vm); in vidioc_g_modulator()
102 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_s_modulator() local
104 return v4l2_subdev_call(radio->v4l2_subdev, tuner, s_modulator, vm); in vidioc_s_modulator()
110 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_s_frequency() local
112 return v4l2_subdev_call(radio->v4l2_subdev, tuner, s_frequency, vf); in vidioc_s_frequency()
118 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_g_frequency() local
120 return v4l2_subdev_call(radio->v4l2_subdev, tuner, g_frequency, vf); in vidioc_g_frequency()
[all …]
DKconfig10 Say Y here if you want to connect this type of radio to your
14 module will be called radio-usb-si4713.
24 Say Y here if you want to connect this type of radio to your
28 module will be called radio-platform-si4713.
36 RDS and RBDS signals as well. This module is the v4l2 radio
/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 …]
/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 …]
/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()
/drivers/media/pci/cx88/
Dcx88-cards.c29 static unsigned int radio[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET }; variable
33 module_param_array(radio, int, NULL, 0444);
37 MODULE_PARM_DESC(radio, "radio tuner type");
105 .radio = {
141 .radio = {
196 .radio = {
224 .radio = {
257 .radio = {
294 .radio = {
326 .radio = {
[all …]
/drivers/net/hamradio/
DKconfig8 used for networking over AX.25 amateur radio connections; it
9 connects the computer's serial port with the radio's microphone
25 modem connecting your computer's serial port to your radio's
27 an alternative to KISS for networking over AX.25 amateur radio
42 radio. If you say Y here, you will be able to send and receive AX.25
45 amateur radio connection.
53 computer to an amateur radio modem (such as the WA4DSY 56kbps
54 modem), in order to send and receive AX.25 packet radio network
84 These cards are used to connect your Linux box to an amateur radio
119 This is one of two drivers for Baycom style simple amateur radio
[all …]
/drivers/uwb/
DKconfig9 UWB is a high-bandwidth, low-power, point-to-point radio
19 Say Y here if your computer has UWB radio controllers (USB or PCI)
20 based. You will need to enable the radio controllers
34 This driver enables the radio controller for HWA USB
46 This driver enables the radio controller for WHCI cards.
51 radio/host controllers connected via memory mapping (eg:
/drivers/media/
DKconfig60 bool "AM/FM radio receivers/transmitters support"
62 Enable AM/FM radio support.
67 Say Y when you have a board with radio support.
70 support radio reception. Disabling this option will
74 bool "Software defined radio support"
76 Enable software defined radio support.
78 Say Y when you have a software defined radio device.
115 # Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
178 source "drivers/media/radio/Kconfig"

1234