Lines Matching +full:1 +full:br +full:- +full:10
1 // SPDX-License-Identifier: GPL-2.0-only
3 * - TwinhanDTV Alpha/MagicBoxII USB2.0 DVB-T receiver
4 * - DigitalNow TinyUSB2 DVB-t receiver
6 * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@posteo.de)
10 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
17 MODULE_PARM_DESC(debug, "set debugging level (1=info,xfer=2,rc=4 (or-able))." DVB_USB_DEBUG_STATUS);
28 u8 *buf = d->priv; in vp7045_usb_op()
38 ret = mutex_lock_interruptible(&d->usb_mutex); in vp7045_usb_op()
43 memcpy(&buf[1], out, outlen); in vp7045_usb_op()
46 debug_dump(buf, outlen+1, deb_xfer); in vp7045_usb_op()
49 if (usb_control_msg(d->udev, in vp7045_usb_op()
50 usb_sndctrlpipe(d->udev,0), in vp7045_usb_op()
54 ret = -EIO; in vp7045_usb_op()
60 if (usb_control_msg(d->udev, in vp7045_usb_op()
61 usb_rcvctrlpipe(d->udev,0), in vp7045_usb_op()
65 ret = -EIO; in vp7045_usb_op()
73 memcpy(in, &buf[1], inlen); in vp7045_usb_op()
76 mutex_unlock(&d->usb_mutex); in vp7045_usb_op()
84 obuf[1] = reg; in vp7045_read_reg()
86 vp7045_usb_op(d,TUNER_REG_READ,obuf,2,&v,1,30); in vp7045_read_reg()
94 return vp7045_usb_op(d,SET_TUNER_POWER,&v,1,NULL,0,150); in vp7045_power_ctrl()
102 ret = vp7045_usb_op(d, RC_VAL_READ, NULL, 0, &key, 1, 20); in vp7045_rc_query()
114 rc_keydown(d->rc_dev, RC_PROTO_NEC, RC_SCANCODE_NEC(0, key), 0); in vp7045_rc_query()
123 u8 v, br[2]; in vp7045_read_eeprom() local
126 ret = vp7045_usb_op(d, GET_EE_VALUE, &v, 1, br, 2, 5); in vp7045_read_eeprom()
130 buf[i] = br[1]; in vp7045_read_eeprom()
146 vp7045_usb_op(adap->dev,VENDOR_STRING_READ,NULL,0,buf,20,0); in vp7045_frontend_attach()
147 buf[10] = '\0'; in vp7045_frontend_attach()
150 vp7045_usb_op(adap->dev,PRODUCT_STRING_READ,NULL,0,buf,20,0); in vp7045_frontend_attach()
151 buf[10] = '\0'; in vp7045_frontend_attach()
154 vp7045_usb_op(adap->dev,FW_VERSION_READ,NULL,0,buf,20,0); in vp7045_frontend_attach()
155 buf[10] = '\0'; in vp7045_frontend_attach()
161 adap->fe_adap[0].fe = vp7045_fe_attach(adap->dev); in vp7045_frontend_attach()
194 .firmware = "dvb-usb-vp7045-01.fw",
197 .num_adapters = 1,
200 .num_frontends = 1,
203 /* parameter for the MPEG2-data transfer */
231 { .name = "Twinhan USB2.0 DVB-T receiver (TwinhanDTV Alpha/MagicBox II)",
235 { .name = "DigitalNow TinyUSB 2 DVB-t Receiver",
254 MODULE_DESCRIPTION("Driver for Twinhan MagicBox/Alpha and DNTV tinyUSB2 DVB-T USB2.0");