Re: [PATCH] pulse8-cec: return 0 when invalidating the logical address

2018-12-02 Thread Torbjorn Jansson
ia(POE) cx25840 cx23885 rc_tt_1500 altera_ci tda18271 altera_stapl tveeprom cx2341x sp2 si2157 si2168 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp [75420.604634] snd_hda_codec_hdmi ir_rc6_decoder videobuf2_dma_sg videobuf2_memops kvm_intel dvb_usb_dvbsky dvb_usb_v2 videobuf2_dvb m88

Re: Astrometa DVB-T2 2018 update

2018-11-29 Thread Sean Young
module_put(client->dev.driver->owner); > + i2c_unregister_device(client); > + } > } > > /* remove I2C demod */ > diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.h > b/drivers/media/usb/dvb-usb-v2/rtl28xxu.h >

cx23885 crash when 2 or more OTA PCIE tuners installed

2018-11-25 Thread Viktor Savchenko
165100, rev B4I6, serial# 4036040101 Nov 24 17:41:02 tvbuntu kernel: [5.386531] tveeprom: MAC address is 00:0d:fe:91:15:a5 Nov 24 17:41:02 tvbuntu kernel: [5.386532] tveeprom: tuner model is SiLabs Si2157 (idx 186, type 4) Nov 24 17:41:02 tvbuntu kernel: [5.386533] tveeprom: TV standards

Re: cec kernel oops with pulse8 usb cec adapter

2018-11-14 Thread Torbjorn Jansson
at dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua nvidia_drm(POE) nvidia_modeset(POE) intel_rapl snd_hda_codec_hdmi nvidia_uvm(POE) x86_pkg_temp_thermal intel_powerclamp cx25840 coretemp nvidia(POE) joydev rc_tt_1500 sp2 si2157 si2168 snd_hda_codec_realtek [866129.409707] kvm_intel snd_hd

Re: TechnoTrend CT2-4500 remote not working

2018-11-11 Thread Sean Young
2 bytes) > cx23885: cx23885_dvb_register() allocating 1 frontend(s) > cx23885: cx23885[0]: cx23885 based dvb card > i2c i2c-5: Added multiplexed i2c bus 12 > si2168 5-0064: Silicon Labs Si2168-B40 successfully identified > si2168 5-0064: firmware version: B 4.0.2 > si2157 12-0060: Silicon Labs Si2147/

TechnoTrend CT2-4500 remote not working

2018-11-10 Thread martin.kono...@mknetz.de
: Added multiplexed i2c bus 12 si2168 5-0064: Silicon Labs Si2168-B40 successfully identified si2168 5-0064: firmware version: B 4.0.2 si2157 12-0060: Silicon Labs Si2147/2148/2157/2158 successfully attached dvbdev: DVB: registering new adapter (cx23885[0]) cx23885 :17:00.0: DVB: registering adapter

TechnoTrend CT2-4500 remote not working

2018-11-10 Thread martin.kono...@mknetz.de
: Added multiplexed i2c bus 12 si2168 5-0064: Silicon Labs Si2168-B40 successfully identified si2168 5-0064: firmware version: B 4.0.2 si2157 12-0060: Silicon Labs Si2147/2148/2157/2158 successfully attached dvbdev: DVB: registering new adapter (cx23885[0]) cx23885 :17:00.0: DVB: registering adapter

Astrometa DVB-T2 2018 update

2018-11-05 Thread Abuse
73fc34 100644 --- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.h +++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.h @@ -43,6 +43,7 @@ #include "r820t.h" #include "si2168.h" #include "si2157.h" +#include "cxd2841er.h" /* * USB commands @@ -87,7 +88,8 @

Astrometa DVB-T2 2018 update

2018-11-05 Thread Bob Goddard
73fc34 100644 --- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.h +++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.h @@ -43,6 +43,7 @@ #include "r820t.h" #include "si2168.h" #include "si2157.h" +#include "cxd2841er.h" /* * USB commands @@ -87,7 +88,8 @

Re: [PATCH] media: rc: cec devices do not have a lirc chardev

2018-10-22 Thread Hans Verkuil
0010017 > RAX: 0002 RBX: RCX: 0018 > RDX: 0001 RSI: 00316245397fa93c RDI: 966d31c8d7b4 > RBP: 966d31c8d7b4 R08: R09: > R10: 0003 R11: aa10e3c07e28 R12: 0002 > R13:

[PATCH] media: rc: cec devices do not have a lirc chardev

2018-10-22 Thread Sean Young
GS:966d3f44() knlGS:0000 CS:  0010 DS: ES: CR0: 80050033 CR2: 0038 CR3: 0009d820a003 CR4: 003606e0 DR0: DR1: DR2: DR3: DR6: fffe0ff0 DR7: 0400

Re: cec kernel oops with pulse8 usb cec adapter

2018-10-20 Thread Hans Verkuil
t;  worker_thread+0x30/0x380 >  ? pwq_unbound_release_workfn+0xd0/0xd0 >  kthread+0x112/0x130 >  ? kthread_create_worker_on_cpu+0x70/0x70 >  ret_from_fork+0x35/0x40 > Modules linked in: rc_tt_1500 dvb_usb_dvbsky dvb_usb_v2 uas usb_storage fuse > vhost_net vhost tap xt_CHEC

cec kernel oops with pulse8 usb cec adapter

2018-10-20 Thread Torbjorn Jansson
t_1500 dvb_usb_dvbsky dvb_usb_v2 uas usb_storage fuse vhost_net vhost tap xt_CHECKSUM iptable_mangle ip6t_REJECT nf_reject_ipv6 tun 8021q garp mrp xt_nat macvlan xfs devlink ebta si2157 si2168 cx25840 cx23885 kvm altera_ci tda18271 joydev ir_rc6_decoder rc_rc6_mce crct10dif_pclmul crc32_

Re: [PATCH 02/13] media: v4l2: taint pads with the signal types for consumer devices

2018-09-27 Thread Mauro Carvalho Chehab
rivers/media/i2c/msp3400-driver.c | 2 ++ > > drivers/media/i2c/saa7115.c | 2 ++ > > drivers/media/i2c/tvp5150.c | 2 ++ > > drivers/media/pci/saa7134/saa7134-core.c | 2 ++ > > drivers/media/tuners/si2157.c| 3 ++ >

Re: [PATCH 02/13] media: v4l2: taint pads with the signal types for consumer devices

2018-09-26 Thread Laurent Pinchart
f-by: Mauro Carvalho Chehab > --- > drivers/media/dvb-frontends/au8522_decoder.c | 3 ++ > drivers/media/i2c/msp3400-driver.c | 2 ++ > drivers/media/i2c/saa7115.c | 2 ++ > drivers/media/i2c/tvp5150.c | 2 ++ > drivers/medi

[PATCH v2 02/14] media: v4l2: taint pads with the signal types for consumer devices

2018-09-15 Thread Mauro Carvalho Chehab
vers/media/tuners/si2157.c| 4 ++- drivers/media/usb/dvb-usb-v2/mxl111sf.c | 2 ++ drivers/media/v4l2-core/tuner-core.c | 5 include/media/media-entity.h | 29 9 files changed, 50 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v2 00/14] Better handle pads for tuning/decoder part of the devices

2018-09-15 Thread Mauro Carvalho Chehab
ads media: saa7115: declare its own pads media: tvp5150: declare its own pads media: si2157: declare its own pads media: saa7134: declare its own pads media: mxl111sf: declare its own pads media: v4l2-mc: get rid of global pad indexes drivers/media/dvb-core/dvbdev.c | 19 ++

[PATCH v2 11/14] media: si2157: declare its own pads

2018-09-15 Thread Mauro Carvalho Chehab
As we don't need anymore to share pad numbers with similar drivers, use its own pad definition instead of a global model. Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/tuners/si2157.c | 15 --- drivers/media/tuners/si2157_priv.h | 9

Re: [PATCH 00/13] Better handle pads for tuning/decoder part of the devices

2018-08-02 Thread Hans Verkuil
l2-mc: switch it to use the new approach to setup pipelines > media: dvb: use signals to discover pads > media: au0828: use signals instead of hardcoding a pad number > media: au8522: declare its own pads > media: msp3400: declare its own pads > media: saa7115: declare its ow

[PATCH 10/13] media: si2157: declare its own pads

2018-08-01 Thread Mauro Carvalho Chehab
As we don't need anymore to share pad numbers with similar drivers, use its own pad definition instead of a global model. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/tuners/si2157.c | 14 +++--- drivers/media/tuners/si2157_priv.h | 9 - 2 files changed, 15

[PATCH 00/13] Better handle pads for tuning/decoder part of the devices

2018-08-01 Thread Mauro Carvalho Chehab
its own pads media: saa7115: declare its own pads media: tvp5150: declare its own pads media: si2157: declare its own pads media: saa7134: declare its own pads media: mxl111sf: declare its own pads media: v4l2-mc: get rid of global pad indexes drivers/media/dvb-core/dvbdev.c | 19

[PATCH 02/13] media: v4l2: taint pads with the signal types for consumer devices

2018-08-01 Thread Mauro Carvalho Chehab
- drivers/media/dvb-frontends/au8522_decoder.c | 3 ++ drivers/media/i2c/msp3400-driver.c | 2 ++ drivers/media/i2c/saa7115.c | 2 ++ drivers/media/i2c/tvp5150.c | 2 ++ drivers/media/pci/saa7134/saa7134-core.c | 2 ++ drivers/media/tuner

[PATCH RFC 2/4] media: v4l2: taint pads with the signal types for consumer devices

2018-07-31 Thread Mauro Carvalho Chehab
- drivers/media/dvb-frontends/au8522_decoder.c | 3 ++ drivers/media/i2c/msp3400-driver.c | 2 ++ drivers/media/i2c/saa7115.c | 2 ++ drivers/media/i2c/tvp5150.c | 2 ++ drivers/media/pci/saa7134/saa7134-core.c | 2 ++ drivers/media/tuner

[PATCH RFC 0/4] Better handle pads for tuning/decoder part of the devices

2018-07-31 Thread Mauro Carvalho Chehab
- drivers/media/dvb-frontends/au8522_decoder.c | 4 +- drivers/media/i2c/msp3400-driver.c | 2 + drivers/media/i2c/saa7115.c | 3 +- drivers/media/i2c/tvp5150.c | 3 +- drivers/media/pci/saa7134/saa7134-core.c | 3 +- drivers/media/tuners/si2157.c

Re: [PATCH 18/22] partial revert of "[media] tvp5150: add HW input connectors support"

2018-07-31 Thread Mauro Carvalho Chehab
- dev->demod_pad[DEMOD_PAD_VBI_OUT].flags = MEDIA_PAD_FL_SOURCE; + dev->demod_pad[DEMOD_PAD_VID_OUT].sig_type = PAD_SIGNAL_ATV_VIDEO; dev->demod.function = MEDIA_ENT_F_ATV_DECODER; ret = media_entity_pads_init(>demod, DEMOD_NU

media: dvbsky: issues with DVBSky T680CI

2018-07-26 Thread Peter
561.109404] i2c i2c-8: Added multiplexed i2c bus 9 [ 561.109410] si2168 8-0064: Silicon Labs Si2168-B40 successfully identified [ 561.109414] si2168 8-0064: firmware version: B 4.0.2 [ 561.112485] si2157 9-0060: Silicon Labs Si2147/2148/2157/2158 successfully attached [ 561.119145] sp2 8-0040:

[PATCH v2 0/3] DVB: represent frequencies at tuner/frontend .info in Hz

2018-07-05 Thread Mauro Carvalho Chehab
/tuners/qm1d1c0042.c | 4 +- drivers/media/tuners/qt1010.c | 8 +- drivers/media/tuners/qt1010_priv.h| 14 ++-- drivers/media/tuners/r820t.c | 6 +- drivers/media/tuners/si2157.c | 6 +- drivers/media/tuners/tda18212.c

[PATCH v2 1/3] media: dvb: convert tuner_info frequencies to Hz

2018-07-05 Thread Mauro Carvalho Chehab
/media/tuners/r820t.c | 6 ++--- drivers/media/tuners/si2157.c | 6 ++--- drivers/media/tuners/tda18212.c | 8 +++--- drivers/media/tuners/tda18218.c | 8 +++--- drivers/media/tuners/tda18250.c | 6 ++--- drivers/media

[PATCH 0/2] DVB: represent frequencies at tuner/frontend .info in Hz

2018-07-04 Thread Mauro Carvalho Chehab
| 14 +++-- drivers/media/tuners/r820t.c | 6 +- drivers/media/tuners/si2157.c | 6 +- drivers/media/tuners/tda18212.c | 8 +-- drivers/media/tuners/tda18218.c | 8 +-- drivers/media/tuners/tda18250.c | 6 +- drivers

[PATCH 1/2] media: dvb: convert tuner_info frequencies to Hz

2018-07-04 Thread Mauro Carvalho Chehab
++--- drivers/media/tuners/si2157.c | 6 ++--- drivers/media/tuners/tda18212.c | 8 +++--- drivers/media/tuners/tda18218.c | 8 +++--- drivers/media/tuners/tda18250.c | 6 ++--- drivers/media/tuners/tda18271-fe.c| 6 ++--- drivers/media

[PATCH 2/2] em28xx: Fix DualHD disconnect oops

2018-06-27 Thread Brad Love
902672] ret_from_fork+0x22/0x40 [ 354.903024] Modules linked in: rc_hauppauge em28xx_rc rc_core si2157 lgdt3306a i2c_mux em28xx_dvb dvb_core videobuf2_vmalloc videobuf2_memops videobuf2_common snd_hda_codec_hdmi nls_iso8859_1 edac_mce_amd kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc snd_hda

[PATCH v3 2/2] dvbsky: Add support for MyGica T230C v2

2018-05-12 Thread Thomas Hollstegge
+ memset(_config, 0, sizeof(si2157_config)); + si2157_config.fe = adap->fe[0]; + si2157_config.if_port = 0; + memset(, 0, sizeof(struct i2c_board_info)); + strlcpy(info.type, "si2141", sizeof(info.type)); + info.addr = 0x60; + info.platform_data = _config; + + req

[PATCH v2 2/2] dvbsky: Add support for MyGica T230C v2

2018-05-06 Thread Thomas Hollstegge
+ memset(_config, 0, sizeof(si2157_config)); + si2157_config.fe = adap->fe[0]; + si2157_config.if_port = 0; + memset(, 0, sizeof(struct i2c_board_info)); + strlcpy(info.type, "si2141", sizeof(info.type)); + info.addr = 0x60; + info.platform_data = _config; + + req

[PATCH 2/2] dvbsky: Add support for MyGica T230C v2

2018-05-05 Thread Thomas Hollstegge
+ memset(_config, 0, sizeof(si2157_config)); + si2157_config.fe = adap->fe[0]; + si2157_config.if_port = 0; + memset(, 0, sizeof(struct i2c_board_info)); + strlcpy(info.type, "si2141", sizeof(info.type)); + info.addr = 0x60; + info.platform_data = _conf

[PATCH v2 4/9] [bug] cx231xx: Ignore an i2c mux adapter

2018-05-03 Thread Brad Love
Hauppauge 935C cannot communicate with the si2157 when using the mux adapter returned by the si2168, so disable it to fix the device. Signed-off-by: Brad Love <b...@nextdimension.cc> --- drivers/media/usb/cx231xx/cx231xx-dvb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 2/9] cx231xx: Use board profile values for addresses

2018-05-03 Thread Brad Love
a; request_module(info.type); client = i2c_new_device(demod_i2c, ); @@ -879,7 +878,7 @@ static int dvb_init(struct cx231xx *dev) si2157_config.if_port = 1; si2157_config.inversion = true; strlcpy(info.type, "si2157&q

[PATCH v2 5/9] cx231xx: Switch to using new dvb i2c helpers

2018-05-03 Thread Brad Love
o out_free; } - dvb->i2c_client_demod[0] = client; - memset(, 0, sizeof(struct i2c_board_info)); - dev->dvb->frontend[0]->ops.i2c_gate_ctrl = NULL; /* define general-purpose callback pointer */ @@ -874,27 +840,15 @@ sta

Re: [PATCH 2/9] cx231xx: Use board profile values for addresses

2018-05-03 Thread Brad Love
tuner_addr, tuner_i2c, >>> _tda18271_config); >>> >>> dev->cx231xx_reset_analog_tuner = NULL; >>> @@ -844,7 +843,7 @@ static int dvb_init(struct cx231xx *dev) >>> >>>

[PATCH] [BUG] em28xx: Fix DualHD broken second tuner

2018-05-02 Thread Brad Love
.c index a54cb8d..4ab71a2 100644 --- a/drivers/media/usb/em28xx/em28xx-dvb.c +++ b/drivers/media/usb/em28xx/em28xx-dvb.c @@ -1392,7 +1392,7 @@ static int em28174_dvb_init_hauppauge_wintv_dualhd_01595(struct em28xx *dev) dvb->i2c_client_tuner = dvb_module_p

Re: [PATCH 2/9] cx231xx: Use board profile values for addresses

2018-04-23 Thread Brad Love
+843,7 @@ static int dvb_init(struct cx231xx *dev) >> >> memset(, 0, sizeof(struct i2c_board_info)); >> strlcpy(info.type, "si2165", I2C_NAME_SIZE); >> -info.addr = 0x64; >> +info.addr = dev-

Re: [PATCH 5/9] cx231xx: Switch to using new dvb i2c helpers

2018-04-23 Thread Brad Love
t; -result = -EINVAL; >> -goto out_free; >> -} >> - >> -if (!try_module_get(client->dev.driver->owner)) { >> -i2c_unregister_device(client); >> +/* perform tun

Re: [PATCH 2/9] cx231xx: Use board profile values for addresses

2018-04-19 Thread Matthias Schwarzott
IZE); > - info.addr = 0x64; > + info.addr = dev->board.demod_addr; > info.platform_data = _pdata; > request_module(info.type); > client = i2c_new_device(demod_i2c, ); > @@ -879,7 +878,7 @@ static int dvb_init(

Re: [PATCH 5/9] cx231xx: Switch to using new dvb i2c helpers

2018-04-19 Thread Matthias Schwarzott
client = dvb_module_probe("si2165", NULL, demod_i2c, > + dev->board.demod_addr, > + _pdata); > + if (!client) { > result = -ENODEV; >

[PATCH 2/9] cx231xx: Use board profile values for addresses

2018-04-17 Thread Brad Love
a; request_module(info.type); client = i2c_new_device(demod_i2c, ); @@ -879,7 +878,7 @@ static int dvb_init(struct cx231xx *dev) si2157_config.if_port = 1; si2157_config.inversion = true; strlcpy(info.type, "si2157&q

[PATCH 5/9] cx231xx: Switch to using new dvb i2c helpers

2018-04-17 Thread Brad Love
/* define general-purpose callback pointer */ @@ -874,27 +843,15 @@ static int dvb_init(struct cx231xx *dev) #endif si2157_config.if_port = 1; si2157_config.inversion = true; - strlcpy(info.type, "si2157", I2C_NAME_

[PATCH 4/9] [bug] cx231xx: Ignore an i2c mux adapter

2018-04-17 Thread Brad Love
Hauppauge 935C cannot communicate with the si2157 when using the mux adapter returned by the si2168, so disable it to fix the device. Signed-off-by: Brad Love <b...@nextdimension.cc> --- drivers/media/usb/cx231xx/cx231xx-dvb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v3 1/5] dvb-frontends/dvb-pll: add i2c driver support

2018-03-27 Thread Antti Palosaari
t. Like that: static const struct i2c_device_id dvb_pll_id[] = { {"PLL-NAME1", 0}, {"PLL-NAME2", 1}, {"PLL-NAME3", 2}, {} }; See si2157 for example. regards Antti -- http://palosaari.fi/

[PATCH v6 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2018-03-25 Thread Maciej S. Szmigiero
+25,12 @@ * see Documentation/dvb/README.dvb-usb for more information */ #include -#include -#include +#include +#include #include +#include +#include +#include #include "cxusb.h" @@ -47,17 +51,45 @@ #include "si2157.h" /* debug */ -static int

[PATCH 1/2] media: dvbsky: use the new dvb_module_probe() API

2018-03-08 Thread Mauro Carvalho Chehab
goto fail_demod_device; - if (!try_module_get(client_demod->dev.driver->owner)) - goto fail_demod_module; + state->i2c_client_demod = dvb_module_probe("si2168", NULL, + >i2c_adap, +

[linuxtv-media:master 180/301] drivers/media/usb/em28xx/em28xx-dvb.c:1140:26: error: implicit declaration of function 'dvb_module_probe'; did you mean '__module_get'?

2018-03-07 Thread kbuild test robot
^ drivers/media/usb/em28xx/em28xx-dvb.c:1240:24: warning: assignment makes pointer from integer without a cast [-Wint-conversion] dvb->i2c_client_tuner = dvb_module_probe("si2157", NULL, ^ drivers/media/usb/em28xx/em28

[linuxtv-media:master 180/275] drivers/media//usb/em28xx/em28xx-dvb.c:1140:26: error: implicit declaration of function 'dvb_module_probe'

2018-03-07 Thread kbuild test robot
tv_292e': drivers/media//usb/em28xx/em28xx-dvb.c:1228:24: warning: assignment makes pointer from integer without a cast [-Wint-conversion] dvb->i2c_client_demod = dvb_module_probe("si2168", NULL, ^ drivers/media//usb/em28xx/em28xx-dvb

[linuxtv-media:master 180/263] drivers/media/usb/em28xx/em28xx-dvb.c:1140:26: error: implicit declaration of function 'dvb_module_probe'; did you mean 'module_put'?

2018-03-06 Thread kbuild test robot
_demod = dvb_module_probe("si2168", NULL, ^ drivers/media/usb/em28xx/em28xx-dvb.c:1240:24: warning: assignment makes pointer from integer without a cast [-Wint-conversion] dvb->i2c_client_tuner = dvb_module_probe("si2157", NULL,

[PATCH 3/8] cx231xx: Use frontend i2c adapter with tuner

2018-03-06 Thread Brad Love
x231xx-dvb.c index 63deca9..c3b2d69 100644 --- a/drivers/media/usb/cx231xx/cx231xx-dvb.c +++ b/drivers/media/usb/cx231xx/cx231xx-dvb.c @@ -1221,7 +1221,7 @@ static int dvb_init(struct cx231xx *dev) info.platform_data = _config; request_module("si2157"); -

[PATCH 7/8] cx231xx: Add second i2c demod to Hauppauge 975

2018-03-06 Thread Brad Love
Hauppauge HVR-975 is a hybrid, dual frontend, single tuner USB device. It contains lgdt3306a and si2168 frontends and one si2157 tuner. The lgdt3306a frontend is currently enabled. This creates the second demodulator and attaches it to the tuner. Enables lgdt3306a|si2168 + si2157 Signed-off

Re: [PATCH 3/7] si2157: Add hybrid tuner support

2018-03-06 Thread Brad Love
t;>> >>> Antti >> Hello Antti, >> >> It was done this way because of lack of knowledge of other ways. The >> method I used mirrored that done by the three other drivers I found >> which supported *and* included multiple front ends. We had this _attach &g

Re: [PATCH 3/7] si2157: Add hybrid tuner support

2018-03-06 Thread Mauro Carvalho Chehab
dge of other ways. The > method I used mirrored that done by the three other drivers I found > which supported *and* included multiple front ends. We had this _attach > function sitting around as part of wip analog support to the si2157, and > it seemed like a nice fit here. The thing is that d

[PATCH 06/11] media: em28xx-cards: fix most coding style issues

2018-03-03 Thread Mauro Carvalho Chehab
.name = "PCTV DVB-S2 Stick (461e)", .tuner_type= TUNER_ABSENT, .tuner_gpio= pctv_461e, .has_dvb = 1, .ir_codes = RC_MAP_PINNACLE_PCTV_HD, }, - /* 2013:025f PCT

[PATCH 6/8] media: em28xx: split up em28xx_dvb_init to reduce stack size

2018-03-02 Thread Mauro Carvalho Chehab
e; + } + + dvb->i2c_client_demod = client; + + /* attach tuner */ + memset(_config, 0, sizeof(si2157_config)); + si2157_config.fe = dvb->fe[0]; + si2157_config.if_port = 1; +#ifdef CONFIG_MEDIA_CONTROLLER_DVB + si2157_config.mdev = dev->media_dev; +#

[PATCH 8/8] media: em28xx-dvb: simplify DVB module probing logic

2018-03-02 Thread Mauro Carvalho Chehab
t(client->dev.driver->owner)) { - i2c_unregister_device(client); - result = -ENODEV; - goto out_free; - } - - dvb->i2c_client_demod = client; + dvb->i2c_client_demod = dvb_module_probe("si2168", NULL, +

Problems with WinTV Hauppauge dualHD and LibreELEC 9 on Le Potato S905X box

2018-02-19 Thread Hauke
tuner model is SiLabs Si2157 (idx 186, type 4) [ 14.426403@3] tveeprom: TV standards PAL(B/G) NTSC(M) PAL(I) SECAM(L/L') PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xfc) [ 14.426407@3] tveeprom: audio processor is None (idx 0) [ 14.426411@3] tveeprom: has no radio, has IR receiver, has no IR trans

[PATCH v2 7/7] cx231xx: Add second i2c demod to Hauppauge 975

2018-02-12 Thread Brad Love
Hauppauge HVR-975 is a hybrid, dual frontend, single tuner USB device. It contains lgdt3306a and si2168 frontends and one si2157 tuner. The lgdt3306a frontend is currently enabled. This creates the second demodulator and attaches it to the tuner. Enables lgdt3306a|si2168 + si2157 Signed-off

[PATCH v2 2/4] cx23885: Add support for Hauppauge PCIe HVR1265 K4

2018-02-12 Thread Brad Love
Add new PCIe board to driver list and board register/configure functions cx23885 + lgdt3306a + si2157 digital/analog and composite/s-video + stereo audio capture Signed-off-by: Brad Love <b...@nextdimension.cc> --- Changes since v1: - add tuner_type - add missing composite/s-video analog

[PATCH v3 2/2] cx231xx: Add support for Hauppauge HVR-975

2018-02-12 Thread Brad Love
Hauppauge HVR-975 is hybrid NTSC/PAL, QAM/ATSC, and DVB-C/T/T2 usb device. Only ATSC/QAM front end is initially active. Second frontend support is work in progress. CX23102 + LG3306A/Si2168(WiP) + Si2157 and composite/s-video + stereo audio capture via breakout cable Signed-off-by: Brad Love &l

[PATCH v2 1/2] cx231xx: Add support for Hauppauge HVR-935C

2018-02-12 Thread Brad Love
HVR-935C is hybrid PAL, DVB-C/T/T2 usb device. CX23102 + Si2168 + Si2157 and composite/s-video + stereo audio capture via breakout cable Signed-off-by: Brad Love <b...@nextdimension.cc> --- Changes since v1: - add capture properties to message drivers/media/usb/cx231xx/cx231xx-cards.

[GIT PULL for v4.16-rc1] media updates

2018-02-06 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.16-2 For: - videobuf2 was moved to a media/common dir, as it is now used by the DVB subsystem too; - Digital TV core memory mapped support interface; - New sensor drivers: ov7740; -

Re: [PATCH v2 1/2] si2168: Add spectrum inversion property

2018-01-18 Thread Brad Love
pointer points is const? I usually >>>>> tend to store all config information to device state. Then there is no >>>>> need to care if pointer is valid or not anymore. >>>>> >>>>> And inversion happens when those wires are cross-connected &

Re: [PATCH v2 1/2] si2168: Add spectrum inversion property

2018-01-17 Thread Brad Love
ed to care if pointer is valid or not anymore. >>>> >>>> And inversion happens when those wires are cross-connected >>> It just dawned on me that the platform_data is stack allocated and >>> therefore not safe to access outside of probe. I will fix this >&

Re: [PATCH v2 1/2] si2168: Add spectrum inversion property

2018-01-17 Thread Antti Palosaari
sure. Hello Antti, I have confirmation. No 'cross-connected' / swapped differential pair polarities (if that's what you meant) on the IF pins. The si2157 inverted spectrum output is configurable though, and Hauppauge have the tuner set up to output inverted. Sounds like it was a

Re: [PATCH v2 1/2] si2168: Add spectrum inversion property

2018-01-17 Thread Brad Love
ens when those wires are cross-connected > It just dawned on me that the platform_data is stack allocated and > therefore not safe to access outside of probe. I will fix this momentarily. > > I was informed by one of our hardware guys that the two models in patch > 2/2 are inverted sp

[PATCH 0/2] Hauppauge Solo/Dual HD spectral inversion

2018-01-17 Thread Brad Love
/Dual HD DVB models have si2157 which produces inverted spectrum, so they enable the property. Brad Love (2): si2168: Add spectrum inversion property em28xx: Enable spectrum inversion for Hauppauge Solo/Dual HD DVB drivers/media/dvb-frontends/si2168.c | 2 ++ drivers/media/dvb-frontends

[PATCH 2/2] em28xx: Enable inversion for Solo/Dual HD DVB models

2018-01-17 Thread Brad Love
Hauppauge Solo/Dual HD DVB models use a si2157 tuner, which is set to produce inverted spectrum. This configures the si2168 DVB demod for inverted spectrum on both affected models. Signed-off-by: Brad Love <b...@nextdimension.cc> --- drivers/media/usb/em28xx/em28xx-dvb.c | 2 ++ 1 file c

Re: [PATCH 3/7] si2157: Add hybrid tuner support

2018-01-16 Thread Brad Love
edge of other ways. The method I used mirrored that done by the three other drivers I found which supported *and* included multiple front ends. We had this _attach function sitting around as part of wip analog support to the si2157, and it seemed like a nice fit here. I just perused the tree again and

Re: [PATCH 3/7] si2157: Add hybrid tuner support

2018-01-15 Thread Antti Palosaari
tuners/si2157.c | 232 +++- drivers/media/tuners/si2157.h | 14 ++ drivers/media/tuners/si2157_priv.h | 5 + 4 files changed, 192 insertions(+), 70 deletions(-) diff --git a/drivers/media/pci/saa7164/saa7164-dvb.c b/drivers/media/pci/saa7164/s

ITE IT9303FN: af9035_ctrl_msg: command=2b failed fw error=21

2018-01-14 Thread Mike Maravillo
215] [1746] usb 1-1: dvb_usb_v2_generic_io: >>> 0b 00 00 42 01 02 00 00 d8 b7 04 26 [ 2413.151832] [1746] usb 1-1: dvb_usb_v2_generic_io: <<< 05 42 00 00 bd ff [ 2413.151842] [1746] usb 1-1: dvb_usb_v2_generic_io: >>> 0c 00 01 43 01 02 00 00 d8 b7 01 03 24 [ 2413.1545

[PATCH 3/7] si2157: Add hybrid tuner support

2018-01-12 Thread Brad Love
t;b...@nextdimension.cc> --- drivers/media/pci/saa7164/saa7164-dvb.c | 11 +- drivers/media/tuners/si2157.c | 232 +++- drivers/media/tuners/si2157.h | 14 ++ drivers/media/tuners/si2157_priv.h | 5 + 4 files changed, 192 insertions(+), 70 del

[PATCH 7/7] cx231xx: Add second i2c demod to Hauppauge 975

2018-01-12 Thread Brad Love
Hauppauge HVR-975 is a dual frontend, single tuner USB device. It contains lgdt3306a and si2168 frontends and one si2157 tuner. The lgdt3306a frontend is currently enabled. This creates the second demodulator and attaches it to the tuner. Enables lgdt3306a|si2168 + si2157 Signed-off-by: Brad

[PATCH 0/7] cx231xx: Add multiple frontend USB device

2018-01-12 Thread Brad Love
This patch set requires: https://patchwork.linuxtv.org/patch/46396/ https://patchwork.linuxtv.org/patch/46397/ The Hauppauge HVR-975 is a dual frontend, single tuner USB device. The 975 has lgdt3306a (currently enabled) and si2168 demodulators, and one si2157 tuner. It provides analog capture

[PATCH v1 1/2] Revert "[media] dvb-usb-cxusb: Geniatech T230C support"

2018-01-09 Thread Stefan Brüns
t(, 0, sizeof(struct i2c_board_info)); - strlcpy(info.type, "si2141", I2C_NAME_SIZE); - info.addr = 0x60; - info.platform_data = _config; - request_module("si2157"); - client_tuner = i2c_new_device(adapter, ); - if (client_tu

[PATCH v2 2/2] cx231xx: Add support for Hauppauge HVR-975

2018-01-09 Thread Brad Love
Hauppauge HVR-975 is hybrid NTSC/PAL, QAM/ATSC, and DVB-C/T/T2 usb device. Only ATSC/QAM front end is initially active. Second frontend support is work in progress. CX23102 + LG3306A/Si2168(WiP) + Si2157 Changes since v1: - removed double semicolon Signed-off-by: Brad Love &l

[PATCH 1/2] cx231xx: Add support for Hauppauge HVR-935C

2018-01-09 Thread Brad Love
HVR-935C is hybrid PAL, DVB-C/T/T2 usb device. CX23102 + Si2168 + Si2157 Signed-off-by: Brad Love <b...@nextdimension.cc> --- drivers/media/usb/cx231xx/cx231xx-cards.c | 42 + drivers/media/usb/cx231xx/cx231xx-dvb.c | 75 +++ drivers/med

[PATCH 2/2] cx231xx: Add support for Hauppauge HVR-975

2018-01-09 Thread Brad Love
Hauppauge HVR-975 is hybrid NTSC/PAL, QAM/ATSC, and DVB-C/T/T2 usb device. Only ATSC/QAM front end is initially active. Second frontend support is work in progress. CX23102 + LG3306A/Si2168(WiP) + Si2157 Signed-off-by: Brad Love <b...@nextdimension.cc> --- drivers/media/usb/cx231xx/c

[PATCH 2/4] cx23885: Add support for Hauppauge PCIe HVR1265 K4

2018-01-05 Thread Brad Love
Add new PCIe board to driver list and board register/configure functions cx23885 + lgdt3306a + si2157 digital/analog Signed-off-by: Brad Love <b...@nextdimension.cc> --- drivers/media/pci/cx23885/cx23885-cards.c | 27 ++ drivers/media/pci/cx23885/cx23885-dvb.c

Re: [PATCH 5/9] em28xx: Add Hauppauge SoloHD/DualHD bulk models

2018-01-04 Thread Michael Ira Krufky
-2391,7 +2393,8 @@ struct em28xx_board em28xx_boards[] = { > .has_dvb = 1, > }, > /* > -* 2040:0265 Hauppauge WinTV-dualHD (DVB version). > +* 2040:0265 Hauppauge WinTV-dualHD (DVB version) Isoc. > +* 2040:8265 Hau

Re: [PATCH 1/9] em28xx: Hauppauge DualHD second tuner functionality

2018-01-04 Thread Michael Ira Krufky
ntf); > int dvb_max_packet_size, packet_multiplier, dvb_alt; > > if (dev->dvb_xfer_bulk) { > @@ -218,7 +217,6 @@ static int em28xx_start_streaming(struct em28xx_dvb *dvb) > dvb_alt = dev->dvb_alt_isoc; > } > > - usb_set_in

[PATCH 5/9] em28xx: Add Hauppauge SoloHD/DualHD bulk models

2018-01-04 Thread Brad Love
ersion) Bulk. * Empia EM28274, 2x Silicon Labs Si2168, 2x Silicon Labs Si2157 */ [EM28174_BOARD_HAUPPAUGE_WINTV_DUALHD_DVB] = { @@ -2407,7 +2410,8 @@ struct em28xx_board em28xx_boards[] = { .leds = hauppauge_dualhd_leds, }, /* -

[PATCH 1/9] em28xx: Hauppauge DualHD second tuner functionality

2018-01-04 Thread Brad Love
ERIAL; memset(, 0, sizeof(struct i2c_board_info)); strlcpy(info.type, "si2168", I2C_NAME_SIZE); - info.addr = 0x64; + if (dev->ts == PRIMARY_TS) + info.addr = 0x64; +

[PATCH 1/2] media: fix usage of whitespaces and on indentation

2018-01-04 Thread Mauro Carvalho Chehab
si470x/radio-si470x-common.c | 24 +++ drivers/media/radio/wl128x/fmdrv_common.h| 10 +++ drivers/media/rc/Kconfig | 8 ++--- drivers/media/tuners/mt2063.c| 4 +-- drivers/media/tuners/si2157.c| 2 +- drivers

[PATCH 0/2] Cleanup bad whitespaces along media tree

2018-01-04 Thread Mauro Carvalho Chehab
ers/media/radio/si470x/radio-si470x-common.c | 24 +- drivers/media/radio/tea575x.c | 2 +- drivers/media/radio/wl128x/fmdrv_common.h | 10 +- drivers/media/rc/Kconfig | 8 +- drivers/media/rc/keymaps/rc-behold-columbus.c | 6 +- drive

[PATCH] media: don't use whitespaces for indentation

2018-01-04 Thread Mauro Carvalho Chehab
/media/radio/radio-maxiradio.c | 2 +- drivers/media/radio/wl128x/fmdrv_common.h | 10 +++ drivers/media/rc/Kconfig| 8 +++--- drivers/media/tuners/mt2063.c | 2 +- drivers/media/tuners/si2157.c | 2 +- drivers/med

[PATCH v5 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-12-22 Thread Maciej S. Szmigiero
+25,12 @@ * see Documentation/dvb/README.dvb-usb for more information */ #include -#include -#include +#include +#include #include +#include +#include +#include #include "cxusb.h" @@ -47,17 +51,46 @@ #include "si2157.h" /* debug */ -static int

[PATCH v4 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-12-17 Thread Maciej S. Szmigiero
+25,12 @@ * see Documentation/dvb/README.dvb-usb for more information */ #include -#include -#include +#include +#include #include +#include +#include +#include #include "cxusb.h" @@ -47,17 +51,46 @@ #include "si2157.h" /* debug */ -static int

[PATCH v3 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-12-17 Thread Maciej S. Szmigiero
+25,12 @@ * see Documentation/dvb/README.dvb-usb for more information */ #include -#include -#include +#include +#include #include +#include +#include +#include #include "cxusb.h" @@ -47,17 +51,46 @@ #include "si2157.h" /* debug */ -static int

Re: [PATCH] em28xx: split up em28xx_dvb_init to reduce stack size

2017-12-14 Thread Mauro Carvalho Chehab
memset(_config, 0, sizeof(si2168_config)); > + si2168_config.i2c_adapter = > + si2168_config.fe = >fe[0]; > + si2168_config.ts_mode = SI2168_TS_PARALLEL; > + memset(, 0, sizeof(struct i2c_board_info)); > + strlcpy(info.type, "si2168", I2C_NAME_SIZE)

[PATCH] em28xx: split up em28xx_dvb_init to reduce stack size

2017-12-11 Thread Arnd Bergmann
} + + if (!try_module_get(client->dev.driver->owner)) { + i2c_unregister_device(client); + result = -ENODEV; + goto out_free; + } + + dvb->i2c_client_demod = client; + + /* attach tuner */ + memset(_config, 0

si2168: NULL pointer dereference at unplug

2017-11-25 Thread Gregor Jasny
: si2168_sleep+0x26/0xd0 [si2168] [9.573655] PGD 0 P4D 0 [9.573659] Oops: [#1] SMP [9.573662] Modules linked in: bnep nls_iso8859_1 cmdlinepart intel_rapl intel_spi_platform intel_telemetry_pltdrv ir_nec_decoder rc_total_media_in_hand_02 intel_spi intel_punit_ipc si2157 spi_nor media

[PATCH 15/15] media: MAINTAINERS: add si2165 driver

2017-11-05 Thread Matthias Schwarzott
193,14 @@ T: git git://linuxtv.org/anttip/media_tree.git S: Maintained F: drivers/media/tuners/si2157* +SI2165 MEDIA DRIVER +M: Matthias Schwarzott <z...@gentoo.org> +L: linux-media@vger.kernel.org +W: https://linuxtv.org +Q: http://patchwork.linuxtv.org/project

[PATCH] em28xx: Fix use-after-free when disconnecting

2017-10-30 Thread Matthias Schwarzott
kernel NULL pointer dereference at 01f8 [ 6058.866578] IP: dvb_frontend_stop+0x30/0xd0 [dvb_core] [ 6058.866644] PGD 0 [ 6058.866646] P4D 0 [ 6058.866726] Oops: [#1] SMP [ 6058.866768] Modules linked in: rc_pinnacle_pctv_hd(O) em28xx_rc(O) si2157(O) si2168(O) em28xx_dvb(O

Re: [PATCH 0/3] support for Logilink VG0022a DVB-T2 stick

2017-10-28 Thread Alois Fertl
are needed. No changes to current si2157.c and si2148.c sources are necessary in this configuration. The only reqired changes are in af9035.c: 1st Add the Terratec to the IT903x device table. 2nd Put the it930x initialization stuff, baud rate, port etc. from it930x_tuner_attach also

[PATCH v2 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-10-10 Thread Maciej S. Szmigiero
+25,11 @@ * see Documentation/dvb/README.dvb-usb for more information */ #include -#include +#include +#include #include +#include +#include #include "cxusb.h" @@ -46,17 +50,46 @@ #include "si2157.h" /* debug */ -static int dvb_usb_cxusb_debug

usb dvb device doesn't works

2017-09-23 Thread daggs
nux media interface: v0.10 [4.863036] si2157 4-0060: Silicon Labs Si2147/2148/2157/2158 successfully attached [4.874499] usb 1-1.5.2: DVB: registering adapter 0 frontend 0 (Silicon Labs Si2168)... [4.887326] input: IR-receiver inside an USB DVB receiver as /devices/platform/soc/3f9

  1   2   3   4   5   6   >