/drivers/media/radio/si470x/ |
D | radio-si470x-usb.c | 198 static int si470x_get_report(struct si470x_device *radio, void *buf, int size) in si470x_get_report() argument 203 retval = usb_control_msg(radio->usbdev, in si470x_get_report() 204 usb_rcvctrlpipe(radio->usbdev, 0), in si470x_get_report() 211 dev_warn(&radio->intf->dev, in si470x_get_report() 221 static int si470x_set_report(struct si470x_device *radio, void *buf, int size) in si470x_set_report() argument 226 retval = usb_control_msg(radio->usbdev, in si470x_set_report() 227 usb_sndctrlpipe(radio->usbdev, 0), in si470x_set_report() 234 dev_warn(&radio->intf->dev, in si470x_set_report() 244 static int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument 248 radio->usb_buf[0] = REGISTER_REPORT(regnr); in si470x_get_register() [all …]
|
D | radio-si470x-i2c.c | 84 static int si470x_get_register(struct si470x_device *radio, int regnr) in si470x_get_register() argument 89 .addr = radio->client->addr, in si470x_get_register() 96 if (i2c_transfer(radio->client->adapter, msgs, 1) != 1) in si470x_get_register() 99 radio->registers[regnr] = __be16_to_cpu(buf[READ_INDEX(regnr)]); in si470x_get_register() 108 static int si470x_set_register(struct si470x_device *radio, int regnr) in si470x_set_register() argument 114 .addr = radio->client->addr, in si470x_set_register() 121 buf[i] = __cpu_to_be16(radio->registers[WRITE_INDEX(i)]); in si470x_set_register() 123 if (i2c_transfer(radio->client->adapter, msgs, 1) != 1) in si470x_set_register() 138 static int si470x_get_all_registers(struct si470x_device *radio) in si470x_get_all_registers() argument 144 .addr = radio->client->addr, in si470x_get_all_registers() [all …]
|
D | radio-si470x-common.c | 179 static int si470x_set_band(struct si470x_device *radio, int band) in si470x_set_band() argument 181 if (radio->band == band) in si470x_set_band() 184 radio->band = band; in si470x_set_band() 185 radio->registers[SYSCONFIG2] &= ~SYSCONFIG2_BAND; in si470x_set_band() 186 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band() 187 return radio->set_register(radio, SYSCONFIG2); in si470x_set_band() 193 static int si470x_set_chan(struct si470x_device *radio, unsigned short chan) in si470x_set_chan() argument 199 retval = radio->get_register(radio, POWERCFG); in si470x_set_chan() 203 if ((radio->registers[POWERCFG] & (POWERCFG_ENABLE|POWERCFG_DMUTE)) in si470x_set_chan() 209 radio->registers[CHANNEL] &= ~CHANNEL_CHAN; in si470x_set_chan() [all …]
|
D | radio-si470x.h | 157 int (*get_register)(struct si470x_device *radio, int regnr); 158 int (*set_register)(struct si470x_device *radio, int regnr); 217 int si470x_disconnect_check(struct si470x_device *radio); 218 int si470x_set_freq(struct si470x_device *radio, unsigned int freq); 219 int si470x_start(struct si470x_device *radio); 220 int si470x_stop(struct si470x_device *radio);
|
D | Kconfig | 9 Say Y here if you want to connect this type of radio to your 14 module will be called radio-si470x-common. 32 to redirect the audio stream from the radio to your sound device: 35 Say Y here if you want to connect this type of radio to your 39 module will be called radio-usb-si470x. 48 Say Y here if you want to connect this type of radio to your 52 module will be called radio-i2c-si470x.
|
D | Makefile | 6 obj-$(CONFIG_RADIO_SI470X) += radio-si470x-common.o 7 obj-$(CONFIG_USB_SI470X) += radio-si470x-usb.o 8 obj-$(CONFIG_I2C_SI470X) += radio-si470x-i2c.o
|
/drivers/media/radio/ |
D | radio-mr800.c | 135 static int amradio_send_cmd(struct amradio_device *radio, u8 cmd, u8 arg, in amradio_send_cmd() argument 141 radio->buffer[0] = 0x00; in amradio_send_cmd() 142 radio->buffer[1] = 0x55; in amradio_send_cmd() 143 radio->buffer[2] = 0xaa; in amradio_send_cmd() 144 radio->buffer[3] = extralen; in amradio_send_cmd() 145 radio->buffer[4] = cmd; in amradio_send_cmd() 146 radio->buffer[5] = arg; in amradio_send_cmd() 147 radio->buffer[6] = 0x00; in amradio_send_cmd() 148 radio->buffer[7] = extra || reply ? 8 : 0; in amradio_send_cmd() 150 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2), in amradio_send_cmd() [all …]
|
D | radio-keene.c | 70 static int keene_cmd_main(struct keene_device *radio, unsigned freq, bool play) in keene_cmd_main() argument 75 radio->buffer[0] = 0x00; in keene_cmd_main() 76 radio->buffer[1] = 0x50; in keene_cmd_main() 77 radio->buffer[2] = (freq_send >> 8) & 0xff; in keene_cmd_main() 78 radio->buffer[3] = freq_send & 0xff; in keene_cmd_main() 79 radio->buffer[4] = radio->pa; in keene_cmd_main() 85 radio->buffer[5] = (radio->muted ? 4 : 8) | (play ? 1 : 2) | in keene_cmd_main() 87 radio->buffer[6] = 0x00; in keene_cmd_main() 88 radio->buffer[7] = 0x00; in keene_cmd_main() 90 ret = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in keene_cmd_main() [all …]
|
D | radio-wl1273.c | 131 static int wl1273_fm_rds(struct wl1273_device *radio) in wl1273_fm_rds() argument 133 struct wl1273_core *core = radio->core; in wl1273_fm_rds() 170 dev_err(radio->dev, WL1273_FM_DRIVER_NAME in wl1273_fm_rds() 194 memcpy(&radio->buffer[radio->wr_index], &rds, RDS_BLOCK_SIZE); in wl1273_fm_rds() 195 radio->wr_index += 3; in wl1273_fm_rds() 198 if (radio->wr_index >= radio->buf_size) in wl1273_fm_rds() 199 radio->wr_index = 0; in wl1273_fm_rds() 202 if (radio->wr_index == radio->rd_index) { in wl1273_fm_rds() 203 dev_dbg(radio->dev, "RDS OVERFLOW"); in wl1273_fm_rds() 205 radio->rd_index = 0; in wl1273_fm_rds() [all …]
|
D | radio-ma901.c | 93 static int ma901radio_set_freq(struct ma901radio_device *radio, int freq) in ma901radio_set_freq() argument 98 radio->buffer[0] = 0x0a; in ma901radio_set_freq() 99 radio->buffer[1] = MA901_RADIO_SET_FREQ; in ma901radio_set_freq() 100 radio->buffer[2] = ((freq_send >> 8) & 0xff) + 0x80; in ma901radio_set_freq() 101 radio->buffer[3] = freq_send & 0xff; in ma901radio_set_freq() 102 radio->buffer[4] = 0x00; in ma901radio_set_freq() 103 radio->buffer[5] = 0x00; in ma901radio_set_freq() 104 radio->buffer[6] = 0x00; in ma901radio_set_freq() 105 radio->buffer[7] = 0x00; in ma901radio_set_freq() 107 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901radio_set_freq() [all …]
|
D | dsbr100.c | 81 static int dsbr100_setfreq(struct dsbr100_device *radio, unsigned freq) in dsbr100_setfreq() argument 86 if (!radio->muted) { in dsbr100_setfreq() 87 retval = usb_control_msg(radio->usbdev, in dsbr100_setfreq() 88 usb_rcvctrlpipe(radio->usbdev, 0), in dsbr100_setfreq() 92 radio->transfer_buffer, 8, 300); in dsbr100_setfreq() 98 radio->curfreq = freq; in dsbr100_setfreq() 101 dev_err(&radio->usbdev->dev, in dsbr100_setfreq() 108 static int dsbr100_start(struct dsbr100_device *radio) in dsbr100_start() argument 110 int retval = usb_control_msg(radio->usbdev, in dsbr100_start() 111 usb_rcvctrlpipe(radio->usbdev, 0), in dsbr100_start() [all …]
|
D | radio-si476x.c | 333 struct si476x_radio *radio = video_drvdata(file); in si476x_radio_querycap() local 335 strscpy(capability->driver, radio->v4l2dev.name, in si476x_radio_querycap() 339 "platform:%s", radio->v4l2dev.name); in si476x_radio_querycap() 347 struct si476x_radio *radio = video_drvdata(file); in si476x_radio_enum_freq_bands() local 352 switch (radio->core->chip_id) { in si476x_radio_enum_freq_bands() 385 struct si476x_radio *radio = video_drvdata(file); in si476x_radio_g_tuner() local 407 si476x_core_lock(radio->core); in si476x_radio_g_tuner() 409 if (si476x_core_is_a_secondary_tuner(radio->core)) { in si476x_radio_g_tuner() 413 } else if (si476x_core_has_am(radio->core)) { in si476x_radio_g_tuner() 414 if (si476x_core_is_a_primary_tuner(radio->core)) in si476x_radio_g_tuner() [all …]
|
D | radio-raremono.c | 122 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 …]
|
D | radio-tea5764.c | 140 static int tea5764_i2c_read(struct tea5764_device *radio) in tea5764_i2c_read() argument 143 u16 *p = (u16 *) &radio->regs; in tea5764_i2c_read() 146 { .addr = radio->i2c_client->addr, in tea5764_i2c_read() 148 .len = sizeof(radio->regs), in tea5764_i2c_read() 149 .buf = (void *)&radio->regs in tea5764_i2c_read() 152 if (i2c_transfer(radio->i2c_client->adapter, msgs, 1) != 1) in tea5764_i2c_read() 160 static int tea5764_i2c_write(struct tea5764_device *radio) in tea5764_i2c_write() argument 163 struct tea5764_regs *r = &radio->regs; in tea5764_i2c_write() 166 .addr = radio->i2c_client->addr, in tea5764_i2c_write() 177 if (i2c_transfer(radio->i2c_client->adapter, msgs, 1) != 1) in tea5764_i2c_write() [all …]
|
D | Makefile | 6 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 …]
|
D | Kconfig | 12 Say Y here to enable selecting AM/FM radio adapters. 19 source "drivers/media/radio/si470x/Kconfig" 25 source "drivers/media/radio/si4713/Kconfig" 34 Choose Y here if you have this FM radio chip. 36 In order to control your radio card, you will need to use programs 42 module will be called radio-si476x. 45 tristate "AverMedia MR 800 USB FM radio support" 48 Say Y here if you want to connect this type of radio to your 54 module will be called radio-mr800. 57 tristate "D-Link/GemTek USB FM radio support" [all …]
|
/drivers/media/radio/si4713/ |
D | radio-usb-si4713.c | 68 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() 79 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_g_modulator() local 81 return v4l2_subdev_call(radio->v4l2_subdev, tuner, g_modulator, vm); in vidioc_g_modulator() 87 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_s_modulator() local 89 return v4l2_subdev_call(radio->v4l2_subdev, tuner, s_modulator, vm); in vidioc_s_modulator() 95 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_s_frequency() local 97 return v4l2_subdev_call(radio->v4l2_subdev, tuner, s_frequency, vf); in vidioc_s_frequency() 103 struct si4713_usb_device *radio = video_drvdata(file); in vidioc_g_frequency() local 105 return v4l2_subdev_call(radio->v4l2_subdev, tuner, g_frequency, vf); in vidioc_g_frequency() [all …]
|
D | Kconfig | 11 Say Y here if you want to connect this type of radio to your 15 module will be called radio-usb-si4713. 25 Say Y here if you want to connect this type of radio to your 29 module will be called radio-platform-si4713. 37 RDS and RBDS signals as well. This module is the v4l2 radio
|
/drivers/media/pci/saa7134/ |
D | saa7134-cards.c | 92 .radio = { 133 .radio = { 175 .radio = { 250 .radio = { 298 .radio = { 332 .radio = { 361 .radio = { 395 .radio = { 436 .radio = { 467 .radio = { [all …]
|
/drivers/media/i2c/ |
D | vp27smpx.c | 29 int radio; member 67 state->radio = 1; in vp27smpx_s_radio() 75 state->radio = 0; in vp27smpx_s_std() 83 if (!state->radio) in vp27smpx_s_tuner() 92 if (state->radio) in vp27smpx_g_tuner() 106 state->radio ? " (Radio)" : ""); in vp27smpx_log_status()
|
/drivers/media/pci/cx88/ |
D | cx88-cards.c | 20 static unsigned int radio[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET }; variable 24 module_param_array(radio, int, NULL, 0444); 28 MODULE_PARM_DESC(radio, "radio tuner type"); 96 .radio = { 132 .radio = { 187 .radio = { 215 .radio = { 248 .radio = { 285 .radio = { 317 .radio = { [all …]
|
/drivers/net/hamradio/ |
D | Kconfig | 9 used for networking over AX.25 amateur radio connections; it 10 connects the computer's serial port with the radio's microphone 26 modem connecting your computer's serial port to your radio's 28 an alternative to KISS for networking over AX.25 amateur radio 43 radio. If you say Y here, you will be able to send and receive AX.25 46 amateur radio connection. 55 computer to an amateur radio modem (such as the WA4DSY 56kbps 56 modem), in order to send and receive AX.25 packet radio network 86 These cards are used to connect your Linux box to an amateur radio 123 This is one of two drivers for Baycom style simple amateur radio [all …]
|
/drivers/media/ |
D | Kconfig | 98 bool "AM/FM radio receivers/transmitters" 101 Enable AM/FM radio support. 106 Say Y when you have a board with radio support. 109 support radio reception. Disabling this option will 113 bool "Software defined radio" 116 Enable software defined radio support. 118 Say Y when you have a software defined radio device. 146 Say Y when you have a software defined radio device. 158 radio devices and by some input devices. 214 source "drivers/media/radio/Kconfig"
|
/drivers/media/test-drivers/vivid/ |
D | Makefile | 4 vivid-radio-rx.o vivid-radio-tx.o vivid-radio-common.o \
|
/drivers/media/pci/cx18/ |
D | cx18-cards.c | 23 .radio = { I2C_CLIENT_END }, 33 .radio = { I2C_CLIENT_END }, 289 .radio = 0x1 }, 349 .radio = 0x1 }, 404 .radio = 0x4002 }, /* LED D3 Tuner AF */ 499 .tuner = 0x6, .linein = 0x2, .radio = 0x2 }, 552 .tuner = 0x6, .linein = 0x2, .radio = 0x2 },
|