[PATCH] cx231xx-video: fix WARN about mismatched capabilities

2019-08-15 Thread Brad Love
y only adding appropriate capabilities for a specific v4l2 device, based on their file handle type. Verified working for video device, analog tuner, VBI, and radio. Signed-off-by: Brad Love --- drivers/media/usb/cx231xx/cx231xx-video.c | 12 1 file changed, 8 insertions(+), 4 deletions

Re: [GIT PULL FOR v5.3] Add Hauppauge DVB devices

2019-06-13 Thread Brad Love
Hi Mauro, On 13/06/2019 13.35, Mauro Carvalho Chehab wrote: > Em Thu, 13 Jun 2019 13:14:47 -0500 > Brad Love escreveu: > >> Hi Mauro, >> >> Here is my first pull request. Please be gentle :) > :-) > > First problem: > > error: FETCH_HEAD: can

[GIT PULL FOR v5.3] Add Hauppauge DVB devices

2019-06-13 Thread Brad Love
) Brad Love (5): si2157: add detection of si2177 tuner pvrusb2: Add multiple dvb frontend support pvrusb2: Add i2c client demod/tuner support pvrusb2: Add Hauppauge HVR1955/1975 devices cx231xx-cards: Add

[PATCH v7 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-06-05 Thread Brad Love
/composite/s-video/audio Signed-off-by: Brad Love --- Since v6: - back off one checkpatch strict fix, causes discarded const compiler warning Since v5: - le16_to_cpu fix Since v4: - checkpatch strict fixes - change !0 initializations Since v2: - Fix build with VIDEO_PVRUSB2_DVB enabled Changes since v1

Re: [PATCH v4 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
Hi Sean, Discussed this with Mauro on irc. I went ahead and made the le16_to_cpu fixes and set up v6. The series should be good to go now. Cheers, Brad On 31/05/2019 12.20, Brad Love wrote: > Hi Shawn, > > Just found time to get back to this. I fixed all the checkpatch strict >

[PATCH v6 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
/composite/s-video/audio Signed-off-by: Brad Love --- Since v5: - le16_to_cpu fix Since v4: - checkpatch strict fixes - change !0 initializations Since v2: - Fix build with VIDEO_PVRUSB2_DVB enabled Changes since v1: - Fix build with VIDEO_PVRUSB2_DVB disabled - Insert 160xxx code lower, so 75xxx profile

[PATCH v6 1/4] si2157: add detection of si2177 tuner

2019-05-31 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- Changes since v5: - No changes Changes since v3: - Fix firmware name to be consistent drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files

[PATCH v6 3/4] pvrusb2: Add i2c client demod/tuner support

2019-05-31 Thread Brad Love
i2c client device is the "new" method to attach to dvb modules, include support for this functionality. Cleanup code has been added to init in case of failure, as well as to frontend exit. Required by Hauppauge HVR-1975 Signed-off-by: Brad Love --- Since v5: - no changes Since v4

[PATCH v6 2/4] pvrusb2: Add multiple dvb frontend support

2019-05-31 Thread Brad Love
All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Code has been added to dvb init to support cleanup after failure. Multiple frontends are required by Hauppauge HVR-1975, which is in a later commit. Signed-off-by: Brad Love --- Since v5

[PATCH v6 0/4] Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
tch 4/4 build fix Changes since v1: - Patch 4/4 build fixes and reorganization Brad Love (4): si2157: add detection of si2177 tuner pvrusb2: Add multiple dvb frontend support pvrusb2: Add i2c client demod/tuner support pvrusb2: Add Hauppauge HVR1955/1975 devices drivers/media/tuners/si2

[PATCH v5 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
/composite/s-video/audio Signed-off-by: Brad Love --- Since v4: - checkpatch strict fixes - change !0 initializations Since v2: - Fix build with VIDEO_PVRUSB2_DVB enabled Changes since v1: - Fix build with VIDEO_PVRUSB2_DVB disabled - Insert 160xxx code lower, so 75xxx profile is not split - Reorganize

[PATCH v5 0/4] Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
ce v1: - Patch 4/4 build fixes and reorganization Brad Love (4): si2157: add detection of si2177 tuner pvrusb2: Add multiple dvb frontend support pvrusb2: Add i2c client demod/tuner support pvrusb2: Add Hauppauge HVR1955/1975 devices drivers/media/tuners/si2157.c

[PATCH v5 3/4] pvrusb2: Add i2c client demod/tuner support

2019-05-31 Thread Brad Love
i2c client device is the "new" method to attach to dvb modules, include support for this functionality. Cleanup code has been added to init in case of failure, as well as to frontend exit. Required by Hauppauge HVR-19x5 with si2168/lgdt3306a/si2177 Signed-off-by: Brad Love --

[PATCH v5 1/4] si2157: add detection of si2177 tuner

2019-05-31 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- Changes since v4: - No changes Changes since v3: - Fix firmware name to be consistent drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files

[PATCH v5 2/4] pvrusb2: Add multiple dvb frontend support

2019-05-31 Thread Brad Love
Multiple frontends are required by Hauppauge HVR-1975, which is added in a later commit. All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Code has been added to dvb init to support cleanup after failure. Signed-off-by: Brad Love --- Since

Re: [PATCH v4 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Brad Love
PM -0600, Brad Love wrote: >> Includes support to identify and use two Hauppauge device. >> HVR-1955: >> - LGDT3306a ATSC/QAM demod >> - si2177 tuner >> - cx25840 decoder for analog tv/composite/s-video/audio >> >> HVR-1975 dual-frontend: >> - LGDT3306a

Re: [PATCH 07/13] si2157: Briefly wait for tuning operation to complete

2019-04-10 Thread Brad Love
Hi Sean, On 08/04/2019 16.37, Brad Love wrote: > Hi Sean, > > > On 08/04/2019 15.55, Sean Young wrote: >> On Mon, Apr 08, 2019 at 01:14:08PM -0500, Brad Love wrote: >>> On 05/04/2019 05.29, Sean Young wrote: >>>> On Sat, Dec 29, 2018 at 11:51:16AM -060

Re: [PATCH 07/13] si2157: Briefly wait for tuning operation to complete

2019-04-08 Thread Brad Love
Hi Sean, On 08/04/2019 15.55, Sean Young wrote: > On Mon, Apr 08, 2019 at 01:14:08PM -0500, Brad Love wrote: >> On 05/04/2019 05.29, Sean Young wrote: >>> On Sat, Dec 29, 2018 at 11:51:16AM -0600, Brad Love wrote: >>>> Some software reports no signal found on

Re: [PATCH 07/13] si2157: Briefly wait for tuning operation to complete

2019-04-08 Thread Brad Love
On 05/04/2019 05.29, Sean Young wrote: > On Sat, Dec 29, 2018 at 11:51:16AM -0600, Brad Love wrote: >> Some software reports no signal found on a frequency due to immediately >> checking for lock as soon as set_params returns. This waits up 40ms for >> tuning operation, th

Re: [PATCH v2 05/12] si2157: Add analog tuning related functions

2019-04-08 Thread Brad Love
On 05/04/2019 08.24, Sean Young wrote: > On Wed, Feb 27, 2019 at 12:27:39PM -0600, Brad Love wrote: >> Include set_analog_params, get_frequency, and get_bandwidth. >> >> Tested with NTSC and PAL standards via ch3/4 generator. Other standards >> are included, but

Re: [PATCH v4 2/4] pvrusb2: Add multiple dvb frontend support

2019-04-08 Thread Brad Love
On 05/04/2019 05.00, Sean Young wrote: > On Wed, Feb 27, 2019 at 01:16:04PM -0600, Brad Love wrote: >> All changes are equivalent and backwards compatible. >> All current devices have been changed to use fe[0] >> Cleanup has been added to dvb init to support cleanup after

Re: [PATCH v4 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-04-08 Thread Brad Love
On 05/04/2019 10.29, Sean Young wrote: > On Fri, Apr 05, 2019 at 04:24:24PM +0100, Sean Young wrote: >> On Wed, Feb 27, 2019 at 01:16:06PM -0600, Brad Love wrote: > > + pr_info("%s(): resetting 160xxx demod\n", __func__); >>> + /* TODO: not

[PATCH v4 1/4] si2157: add detection of si2177 tuner

2019-02-27 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- Changes since v3: - Fix firmware name to be consistent drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files changed, 8 insertions(+), 1

[PATCH v4 0/4] Add Hauppauge HVR1955/1975 devices

2019-02-27 Thread Brad Love
s and reorganization Brad Love (4): si2157: add detection of si2177 tuner pvrusb2: Add multiple dvb frontend support pvrusb2: Add i2c client demod/tuner support pvrusb2: Add Hauppauge HVR1955/1975 devices drivers/media/tuners/si2157.c | 6 + drivers/media/tuners/si2157_p

[PATCH v4 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-02-27 Thread Brad Love
/composite/s-video/audio Signed-off-by: Brad Love --- Since v2: - Fix build with VIDEO_PVRUSB2_DVB enabled Changes since v1: - Fix build with VIDEO_PVRUSB2_DVB disabled - Insert 160xxx code lower, so 75xxx profile is not split - Reorganize 160xxx board profile - Share config where possible drivers

[PATCH v4 2/4] pvrusb2: Add multiple dvb frontend support

2019-02-27 Thread Brad Love
All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Cleanup has been added to dvb init to support cleanup after failure. Signed-off-by: Brad Love --- No changes drivers/media/usb/pvrusb2/pvrusb2-devattr.c | 36 +++--- drivers/media

[PATCH v4 3/4] pvrusb2: Add i2c client demod/tuner support

2019-02-27 Thread Brad Love
Cleanup code has been added to init in case of failure, as well as to frontend exit. Signed-off-by: Brad Love --- No changes drivers/media/usb/pvrusb2/pvrusb2-dvb.c | 11 +++ drivers/media/usb/pvrusb2/pvrusb2-dvb.h | 3 +++ 2 files changed, 14 insertions(+) diff --git a/drivers/media

[PATCH v2 00/13] si2157: Analog tuning and optimizations

2019-02-27 Thread Brad Love
om dev_XXX macros - normalization logic simplified and explained in rf strength calculation Brad Love (13): si2157: Enable tuner status flags si2157: Check error status bit on cmd execute si2157: Better check for running tuner in init si2157: Add clock and pin setup for si2141 cx25840

[PATCH] cx231xx-cards: Add Hauppauge 955Q variant

2019-02-27 Thread Brad Love
2040:b124 is an OEM 955Q Signed-off-by: Brad Love --- drivers/media/usb/cx231xx/cx231xx-cards.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c index a431a99..daf8f8c 100644 --- a/drivers/media/usb

[PATCH v2 12/12] lgdt3306a: Add CNR v5 stat

2019-02-27 Thread Brad Love
The CNR is already calculated, so populate DVBv5 CNR stat during read_status. Signed-off-by: Brad Love --- No changes drivers/media/dvb-frontends/lgdt3306a.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/media/dvb-frontends/lgdt3306a.c b/drivers/media/dvb

[PATCH v2 11/12] si2157: add on-demand rf strength func

2019-02-27 Thread Brad Love
Add get_rf_strength callback to get RSSI from the tuner. DVBv5 stat cache is updated. get_rf_strength is called by tuner_core for analog tuners and is also used by some bridge drivers to obtain RSSI directly from the tuner. Signed-off-by: Brad Love --- Changes since v1: - simplify normalization

[PATCH v2 10/12] cx231xx: Add i2c device analog tuner support

2019-02-27 Thread Brad Love
. Signed-off-by: Brad Love --- Changes since v1: - remove __func__ from dev_dbg macros drivers/media/usb/cx231xx/cx231xx-avcore.c | 35 ++ drivers/media/usb/cx231xx/cx231xx-video.c | 57 -- 2 files changed, 76 insertions(+), 16 deletions(-) diff --git a

[PATCH v2 06/12] si2157: Briefly wait for tuning operation to complete

2019-02-27 Thread Brad Love
20-30ms. Digital tuning will additionally wait depending on signal characteristics. Analog tuning will wait the full timeout in case of no signal. Signed-off-by: Brad Love --- No changes drivers/media/tuners/si2157.c | 87 +++ 1 file changed, 87 insertions

[PATCH v2 02/12] si2157: Check error status bit on cmd execute

2019-02-27 Thread Brad Love
Check error status bit on command execute, if error bit is set return -EAGAIN. Ignore -EAGAIN in probe during device check. Signed-off-by: Brad Love --- No changes drivers/media/tuners/si2157.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/media

[PATCH v2 07/12] cx23885: Add analog tuner support to Hauppauge QuadHD

2019-02-27 Thread Brad Love
Add analog tuner frontend to 888 Hauppauge QuadHD boards Signed-off-by: Brad Love --- No changes drivers/media/pci/cx23885/cx23885-cards.c | 32 +++ drivers/media/pci/cx23885/cx23885-dvb.c | 20 +++ drivers/media/pci/cx23885/cx23885-video.c | 8

[PATCH v2 05/12] si2157: Add analog tuning related functions

2019-02-27 Thread Brad Love
Include set_analog_params, get_frequency, and get_bandwidth. Tested with NTSC and PAL standards via ch3/4 generator. Other standards are included, but are untested due to lack of generator. Signed-off-by: Brad Love --- Changes since v1: - remove __func__ from dev_dbg macros drivers/media

[PATCH v2 04/12] cx25840: Register labeling, chip specific correction

2019-02-27 Thread Brad Love
Remove vbi_regs_offset from a group of registers that are 888 specific, include those registers names. Add labels to some undocumented registers. Signed-off-by: Brad Love --- No changes drivers/media/i2c/cx25840/cx25840-core.c | 33 1 file changed, 21

[PATCH v2 03/12] si2157: Better check for running tuner in init

2019-02-27 Thread Brad Love
Getting the Xtal trim property to check if running is less error prone. Reset if_frequency if state is unknown. Replaces the previous "garbage check". Signed-off-by: Brad Love --- No changes drivers/media/tuners/si2157.c | 15 +++ 1 file changed, 7 insertions(+), 8

[PATCH v2 01/12] si2157: Enable tuner status flags

2019-02-27 Thread Brad Love
Enable flags to get status of commands sent to the tuner. Signed-off-by: Brad Love --- No changes drivers/media/tuners/si2157.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index d389f1f..4855448

[PATCH v2 09/12] cx23885: Add i2c device analog tuner support

2019-02-27 Thread Brad Love
: - CX23885_BOARD_HAUPPAUGE_HVR1265_K4 (tested) - CX23885_BOARD_HAUPPAUGE_QUADHD_DVB (tested) - CX23885_BOARD_HAUPPAUGE_QUADHD_ATSC (tested) Signed-off-by: Brad Love --- No changes drivers/media/pci/cx23885/cx23885-video.c | 60 +-- 1 file changed, 50 insertions(+), 10 deletions(-) diff --git a

[PATCH v2 08/12] cx23885: Add analog frontend to 1265_K4

2019-02-27 Thread Brad Love
Enables the analog tuning frontend for Hauppauge HVR-1265_K4. Signed-off-by: Brad Love --- No changes drivers/media/pci/cx23885/cx23885-cards.c | 7 +++ drivers/media/pci/cx23885/cx23885-dvb.c | 5 + 2 files changed, 12 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885

Re: [PATCH 0/2] Media Controller "taint" fixes

2019-02-18 Thread Brad Love
Hi Hans, On 18/02/2019 10.08, Hans Verkuil wrote: > Hi Brad, > > On 1/15/19 2:24 AM, Brad Love wrote: >> Hauppauge USBLive2 was reported broken. A change in media controller >> logic appears to be the culprit. >> >> Fixes: 9d6d20e652 ("v4l2-mc: swit

Re: [PATCH 04/13] si2157: Add clock and pin setup for si2141

2019-01-22 Thread Brad Love
Hi Antti, On 20/01/2019 11.17, Antti Palosaari wrote: > > On 12/29/18 7:51 PM, Brad Love wrote: >> Include some missing setup for si2141 >> >> Signed-off-by: Brad Love >> --- >>   drivers/media/tuners/si2157.c | 17 + >>   1 file ch

Re: [PATCH 02/13] si2157: Check error status bit on cmd execute

2019-01-15 Thread Brad Love
Hi Antti, On 09/01/2019 12.01, Antti Palosaari wrote: > On 12/29/18 7:51 PM, Brad Love wrote: >> Check error status bit on command execute, if error bit is >> set return -EAGAIN. Ignore -EAGAIN in probe during device check. >> >> Signed-off-by: Brad Love >> ---

Re: [PATCH 1/4] si2157: add detection of si2177 tuner

2019-01-15 Thread Brad Love
Hi Antti, On 09/01/2019 11.36, Antti Palosaari wrote: > On 12/20/18 11:57 PM, Brad Love wrote: >> Works in ATSC and QAM as is, DVB is completely untested. >> >> Firmware required. >> >> Signed-off-by: Brad Love >> --- >>   drivers/media/tuners/si215

[PATCH 0/2] Media Controller "taint" fixes

2019-01-14 Thread Brad Love
ailed with error -22 [5.959190] usbcore: registered new interface driver cx231xx This series sets the taint as follows: - source pads from the bridge to PAD_SIGNAL_ANALOG - sink pads on the decoder to PAD_SIGNAL_ANALOG - source pads on the decoder to PAD_SIGNAL_DV Brad Love (2): cx231xx-video:

[PATCH 1/2] cx231xx-video: Set media controller taint for analog

2019-01-14 Thread Brad Love
or the source pad on the bridge to PAD_SIGNAL_ANALOG Signed-off-by: Brad Love --- drivers/media/usb/cx231xx/cx231xx-video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/cx231xx/cx231xx-video.c b/drivers/media/usb/cx231xx/cx231xx-video.c index d5e51a5..12f2c00 100644 ---

[PATCH 2/2] cx25840-core: Set media controller taint for pads

2019-01-14 Thread Brad Love
t as follows: - sink pads to PAD_SIGNAL_ANALOG - source pads to PAD_SIGNAL_DV Signed-off-by: Brad Love --- drivers/media/i2c/cx25840/cx25840-core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/cx25840-core.c index b23

[PATCH 10/13] cx231xx: Add i2c device analog tuner support

2018-12-29 Thread Brad Love
. Signed-off-by: Brad Love --- drivers/media/usb/cx231xx/cx231xx-avcore.c | 35 ++ drivers/media/usb/cx231xx/cx231xx-video.c | 57 -- 2 files changed, 76 insertions(+), 16 deletions(-) diff --git a/drivers/media/usb/cx231xx/cx231xx-avcore.c b/drivers

[PATCH] si2168: Change from DVB-T to DVB-T/T2 autodetect

2018-12-29 Thread Brad Love
account when reading status. The module parameter is default disabled, to be backwards compatible with current behaviour. Signed-off-by: Brad Love --- drivers/media/dvb-frontends/si2168.c | 59 ++-- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a

[PATCH 08/13] cx23885: Add analog tuner support to Hauppauge QuadHD

2018-12-29 Thread Brad Love
Add analog tuner frontend to 888 Hauppauge QuadHD boards Signed-off-by: Brad Love --- drivers/media/pci/cx23885/cx23885-cards.c | 32 +++ drivers/media/pci/cx23885/cx23885-dvb.c | 20 +++ drivers/media/pci/cx23885/cx23885-video.c | 8 +++- 3

[PATCH 13/13] lgdt3306a: Add CNR v5 stat

2018-12-29 Thread Brad Love
The CNR is already calculated, so populate DVBv5 CNR stat during read_status. Signed-off-by: Brad Love --- drivers/media/dvb-frontends/lgdt3306a.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/media/dvb-frontends/lgdt3306a.c b/drivers/media/dvb-frontends

[PATCH 11/13] cx23885: Add i2c device analog tuner support

2018-12-29 Thread Brad Love
: - CX23885_BOARD_HAUPPAUGE_HVR1265_K4 (tested) - CX23885_BOARD_HAUPPAUGE_QUADHD_DVB (tested) - CX23885_BOARD_HAUPPAUGE_QUADHD_ATSC (tested) Signed-off-by: Brad Love --- drivers/media/pci/cx23885/cx23885-video.c | 60 +-- 1 file changed, 50 insertions(+), 10 deletions(-) diff --git a/drivers/media/pci

[PATCH 12/13] si2157: add on-demand rf strength func

2018-12-29 Thread Brad Love
Add get_rf_strength callback to get RSSI from the tuner. DVBv5 stat cache is updated. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/drivers/media/tuners/si2157.c b/drivers

[PATCH 02/13] si2157: Check error status bit on cmd execute

2018-12-29 Thread Brad Love
Check error status bit on command execute, if error bit is set return -EAGAIN. Ignore -EAGAIN in probe during device check. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/si2157.c b

[PATCH 04/13] si2157: Add clock and pin setup for si2141

2018-12-29 Thread Brad Love
Include some missing setup for si2141 Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index f3a60a1..1ad2d42 100644 --- a/drivers/media/tuners/si2157.c

[PATCH 00/13] si2157: Analog tuning and optimizations

2018-12-29 Thread Brad Love
the blocks, mostly. Right now there is only a few models, but the addition of more would become a bit excessive. Instead of the case statement should a board profile field be added to the two affected drivers? Something like .has_i2c_analog_fe ? Brad Love (13): si2157: Enable tuner status flag

[PATCH 07/13] si2157: Briefly wait for tuning operation to complete

2018-12-29 Thread Brad Love
20-30ms. Digital tuning will additionally wait depending on signal characteristics. Analog tuning will wait the full timeout in case of no signal. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 87 +++ 1 file changed, 87 insertions(+) diff

[PATCH 06/13] si2157: Add analog tuning related functions

2018-12-29 Thread Brad Love
Include set_analog_params, get_frequency, and get_bandwidth. Tested with NTSC and PAL standards via ch3/4 generator. Other standards are included, but are untested due to lack of generator. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 245

[PATCH 09/13] cx23885: Add analog tuner to 1265_K4

2018-12-29 Thread Brad Love
Enables the analog tuning frontend for Hauppauge HVR-1265_K4. Signed-off-by: Brad Love --- drivers/media/pci/cx23885/cx23885-cards.c | 7 +++ drivers/media/pci/cx23885/cx23885-dvb.c | 5 + 2 files changed, 12 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885-cards.c b

[PATCH 03/13] si2157: Better check for running tuner in init

2018-12-29 Thread Brad Love
Getting the Xtal trim property to check if running is less error prone. Reset if_frequency if state is unknown. Replaces the previous "garbage check". Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) di

[PATCH 05/13] cx25840: Register labeling, chip specific correction

2018-12-29 Thread Brad Love
Remove vbi_regs_offset from a group of registers that are 888 specific, include those registers names. Add labels to some undocumented registers. Signed-off-by: Brad Love --- drivers/media/i2c/cx25840/cx25840-core.c | 33 1 file changed, 21 insertions(+), 12

[PATCH 01/13] si2157: Enable tuner status flags

2018-12-29 Thread Brad Love
Enable flags to get status of commands sent to the tuner. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index d389f1f..4855448 100644 --- a

[PATCH v3 2/4] pvrusb2: Add multiple dvb frontend support

2018-12-24 Thread Brad Love
All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Cleanup has been added to dvb init to support cleanup after failure. Signed-off-by: Brad Love --- No changes drivers/media/usb/pvrusb2/pvrusb2-devattr.c | 36 +++--- drivers/media

[PATCH v3 3/4] pvrusb2: Add i2c client demod/tuner support

2018-12-24 Thread Brad Love
Cleanup code has been added to init in case of failure, as well as to frontend exit. Signed-off-by: Brad Love --- No changes drivers/media/usb/pvrusb2/pvrusb2-dvb.c | 11 +++ drivers/media/usb/pvrusb2/pvrusb2-dvb.h | 3 +++ 2 files changed, 14 insertions(+) diff --git a/drivers/media

[PATCH v3 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2018-12-24 Thread Brad Love
/composite/s-video/audio Signed-off-by: Brad Love --- Since v2: - Fix build with VIDEO_PVRUSB2_DVB enabled Changes since v1: - Fix build with VIDEO_PVRUSB2_DVB disabled - Insert 160xxx code lower, so 75xxx profile is not split - Reorganize 160xxx board profile - Share config where possible drivers

[PATCH v3 1/4] si2157: add detection of si2177 tuner

2018-12-24 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- No changes drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media/tuners

[PATCH v3 0/4] Add Hauppauge HVR1955/1975 devices

2018-12-24 Thread Brad Love
og tv/composite/s-video/audio HVR-1975 dual-frontend: - LGDT3306a ATSC/QAM demod - si2168 DVB-C/T/T2 demod - si2177 tuner - cx25840 decoder for analog tv/composite/s-video/audio Since v2: - Patch 4/4 build fix Changes since v1: - Patch 4/4 build fixes and reorganization Brad Love (4): si2157

[PATCH v2 1/4] si2157: add detection of si2177 tuner

2018-12-21 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- No changes since v1 drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media

[PATCH v2 2/4] pvrusb2: Add multiple dvb frontend support

2018-12-21 Thread Brad Love
All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Cleanup has been added to dvb init to support cleanup after failure. Signed-off-by: Brad Love --- No changes since v1 drivers/media/usb/pvrusb2/pvrusb2-devattr.c | 36 +++--- drivers

[PATCH v2 3/4] pvrusb2: Add i2c client demod/tuner support

2018-12-21 Thread Brad Love
Cleanup code has been added to init in case of failure, as well as to frontend exit. Signed-off-by: Brad Love --- No changes since v1 drivers/media/usb/pvrusb2/pvrusb2-dvb.c | 11 +++ drivers/media/usb/pvrusb2/pvrusb2-dvb.h | 3 +++ 2 files changed, 14 insertions(+) diff --git a

[PATCH v2 0/4] Add Hauppauge HVR1955/1975 devices

2018-12-21 Thread Brad Love
og tv/composite/s-video/audio HVR-1975 dual-frontend: - LGDT3306a ATSC/QAM demod - si2168 DVB-C/T/T2 demod - si2177 tuner - cx25840 decoder for analog tv/composite/s-video/audio Changes since v1: - Patch 4/4 build fixes and reorganization Brad Love (4): si2157: add detection of si2177 tuner pvrusb2

[PATCH v2 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2018-12-21 Thread Brad Love
/composite/s-video/audio Signed-off-by: Brad Love --- Changes since v1: - Fix build with VIDEO_PVRUSB2_DVB disabled - Insert 160xxx code lower, so 75xxx profile is not split - Reorganize 160xxx board profile - Share config where possible drivers/media/usb/pvrusb2/Kconfig | 2 + drivers

[PATCH 2/4] pvrusb2: Add multiple dvb frontend support

2018-12-20 Thread Brad Love
All changes are equivalent and backwards compatible. All current devices have been changed to use fe[0] Cleanup has been added to dvb init to support cleanup after failure. Signed-off-by: Brad Love --- drivers/media/usb/pvrusb2/pvrusb2-devattr.c | 36 +++--- drivers/media/usb/pvrusb2

[PATCH 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2018-12-20 Thread Brad Love
/composite/s-video/audio Signed-off-by: Brad Love --- drivers/media/usb/pvrusb2/Kconfig | 2 + drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c | 25 drivers/media/usb/pvrusb2/pvrusb2-devattr.c | 166 drivers/media/usb/pvrusb2/pvrusb2-devattr.h | 1

[PATCH 0/4] Add Hauppauge HVR1955/1975 devices

2018-12-20 Thread Brad Love
og tv/composite/s-video/audio HVR-1975 dual-frontend: - LGDT3306a ATSC/QAM demod - si2168 DVB-C/T/T2 demod - si2177 tuner - cx25840 decoder for analog tv/composite/s-video/audio Brad Love (4): si2157: add detection of si2177 tuner pvrusb2: Add multiple dvb frontend support pvrusb2: Add i2c client

[PATCH 1/4] si2157: add detection of si2177 tuner

2018-12-20 Thread Brad Love
Works in ATSC and QAM as is, DVB is completely untested. Firmware required. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 6 ++ drivers/media/tuners/si2157_priv.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media/tuners/si2157.c b

[PATCH 3/4] pvrusb2: Add i2c client demod/tuner support

2018-12-20 Thread Brad Love
Cleanup code has been added to init in case of failure, as well as to frontend exit. Signed-off-by: Brad Love --- drivers/media/usb/pvrusb2/pvrusb2-dvb.c | 11 +++ drivers/media/usb/pvrusb2/pvrusb2-dvb.h | 3 +++ 2 files changed, 14 insertions(+) diff --git a/drivers/media/usb/pvrusb2

Re: [PATCH 1/5] si2168: add frequency data to frontend info

2018-12-20 Thread Brad Love
Ooops...ignore the series bit...this is solo. On 20/12/2018 12.54, Brad Love wrote: > Minimum, maximum, and stepsize taken from Silicon Labs reference. > > Signed-off-by: Brad Love > --- > drivers/media/dvb-frontends/si2168.c | 7 +-- > 1 file changed, 5 insertio

[PATCH 1/5] si2168: add frequency data to frontend info

2018-12-20 Thread Brad Love
Minimum, maximum, and stepsize taken from Silicon Labs reference. Signed-off-by: Brad Love --- drivers/media/dvb-frontends/si2168.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c index

Re: [PATCH v2] cx23885: only reset DMA on problematic CPUs

2018-12-19 Thread Brad Love
Hi Alex, On 19/12/2018 11.26, Brad Love wrote: > Hi Alex, > > > On 18/12/2018 17.49, Alex Deucher wrote: >> On Tue, Dec 18, 2018 at 5:59 PM Brad Love wrote: >>> It is reported that commit 95f408bbc4e4 ("media: cx23885: Ryzen DMA >>> related RiSC engi

Re: [PATCH v2] cx23885: only reset DMA on problematic CPUs

2018-12-19 Thread Brad Love
Hi Alex, On 18/12/2018 17.49, Alex Deucher wrote: > On Tue, Dec 18, 2018 at 5:59 PM Brad Love wrote: >> It is reported that commit 95f408bbc4e4 ("media: cx23885: Ryzen DMA >> related RiSC engine stall fixes") caused regresssions with other CPUs. >> >> Ensur

Re: [PATCH v2] cx23885: only reset DMA on problematic CPUs

2018-12-19 Thread Brad Love
On 19/12/2018 05.08, Matthias Schwarzott wrote: > Am 18.12.18 um 23:59 schrieb Brad Love: >> It is reported that commit 95f408bbc4e4 ("media: cx23885: Ryzen DMA >> related RiSC engine stall fixes") caused regresssions with other CPUs. >> >> Ensure that the qu

[PATCH v3] cx23885: only reset DMA on problematic CPUs

2018-12-19 Thread Brad Love
behaviour. Fixes: 95f408bbc4e4 ("media: cx23885: Ryzen DMA related RiSC engine stall fixes") Signed-off-by: Brad Love --- Since v2: - Replaced sizeof with ARRAY_SIZE - Fixed column 80 checkpatch complaint Changes since v1: - Added module option for three way control - Removed '7

Re: [PATCH] Revert 95f408bb Ryzen DMA related RiSC engine stall fixes

2018-12-18 Thread Brad Love
On 18/12/2018 18.05, Brad Love wrote: > On 18/12/2018 17.46, Alex Deucher wrote: >> On Tue, Dec 18, 2018 at 7:45 AM Mauro Carvalho Chehab >> wrote: >>> Em Mon, 17 Dec 2018 21:05:11 -0500 >>> Alex Deucher escreveu: >>> >>>> On Sun, Dec

Re: [PATCH] Revert 95f408bb Ryzen DMA related RiSC engine stall fixes

2018-12-18 Thread Brad Love
On 18/12/2018 17.46, Alex Deucher wrote: > On Tue, Dec 18, 2018 at 7:45 AM Mauro Carvalho Chehab > wrote: >> Em Mon, 17 Dec 2018 21:05:11 -0500 >> Alex Deucher escreveu: >> >>> On Sun, Dec 16, 2018 at 9:23 AM Mauro Carvalho Chehab >>> wrote: Em Sun, 16 Dec 2018 11:37:02 +0100 Markus

Re: [PATCH] Revert 95f408bb Ryzen DMA related RiSC engine stall fixes

2018-12-18 Thread Brad Love
Hi everyone, On 18/12/2018 06.45, Mauro Carvalho Chehab wrote: > Em Mon, 17 Dec 2018 21:05:11 -0500 > Alex Deucher escreveu: > >> On Sun, Dec 16, 2018 at 9:23 AM Mauro Carvalho Chehab >> wrote: >>> Em Sun, 16 Dec 2018 11:37:02 +0100 >>> Markus Dobel escreveu: >>> On 06.12.2018 19:01, Ma

[PATCH v2] cx23885: only reset DMA on problematic CPUs

2018-12-18 Thread Brad Love
behaviour. Fixes: 95f408bbc4e4 ("media: cx23885: Ryzen DMA related RiSC engine stall fixes") Signed-off-by: Brad Love --- Changes since v1: - Added module option for three way control - Removed '7' from pci id description, Ryzen 3 is the same id drivers/media/p

Re: [PATCH] Revert 95f408bb Ryzen DMA related RiSC engine stall fixes

2018-12-06 Thread Brad Love
Hi Mauro & Markus, On 05/12/2018 05.07, Mauro Carvalho Chehab wrote: > Em Sun, 21 Oct 2018 15:45:39 +0200 > Markus Dobel escreveu: > >> The original commit (the one reverted in this patch) introduced a >> regression, >> making a previously flawless adapter unresponsive after running a few >> h

[PATCH] mceusb: Include three Hauppauge USB dvb device with IR rx

2018-10-05 Thread Brad Love
The three following Hauppauge USB DVB devices have IR receivers, but lacked the support in mceusb to enable it: - WinTV-HVR-935C - WinTV-HVR-955Q - WinTV-HVR-975 Tested HVR-955Q and HVR-975 plus RC5 remote and irw, works as intended. Signed-off-by: Brad Love --- drivers/media/rc/mceusb.c | 9

[PATCH 2/2] au0828: Fix incorrect error messages

2018-09-06 Thread Brad Love
Correcting red herring error messages. Where appropriate, replaces au0282_dev_register with: - au0828_analog_register - au0828_dvb_register Signed-off-by: Brad Love --- drivers/media/usb/au0828/au0828-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media

[PATCH 1/2] au0828: cannot kfree dev before usb disconnect

2018-09-06 Thread Brad Love
0x120 [7.457115] __x64_sys_finit_module+0x1a/0x20 [7.457166] do_syscall_64+0x5b/0x110 [7.457210] entry_SYSCALL_64_after_hwframe+0x49/0xbe Signed-off-by: Brad Love --- drivers/media/usb/au0828/au0828-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/usb/au0828/au0828-c

[PATCH 0/2] au0828 Oops fix and message correction

2018-09-06 Thread Brad Love
oops. Patch 2 is just error message correction around the failure spot. An invalid function name is corrected. Brad Love (2): au0828: cannot kfree dev before usb disconnect au0828: Fix incorrect error messages drivers/media/usb/au0828/au0828-core.c | 5 ++--- 1 file changed, 2 insertions(

Re: [PATCH] [RFC] em28xx: Fix dual transport stream use

2018-06-28 Thread Brad Love
Hi Mauro, On 2018-06-28 13:43, Mauro Carvalho Chehab wrote: > Em Thu, 28 Jun 2018 12:33:41 -0500 > Brad Love escreveu: > >> Hi Mauro, >> >> >> On 2018-06-28 09:23, Brad Love wrote: >>> Hi Mauro, >>> >>> >>> On 2018-06-28 04

Re: [PATCH] [RFC] em28xx: Fix dual transport stream use

2018-06-28 Thread Brad Love
Hi Mauro, On 2018-06-28 09:23, Brad Love wrote: > Hi Mauro, > > > On 2018-06-28 04:10, Mauro Carvalho Chehab wrote: >> Em Wed, 27 Jun 2018 14:41:22 -0500 >> Brad Love escreveu: >> >>> When dual transport stream support was added the call to set >>

[PATCH v2] em28xx: Fix dual transport stream operation

2018-06-28 Thread Brad Love
device is not a dual tuner model. This allows all older and single tuner devices to explicitly set alt mode during stream startup. Testers report both isoc and bulk DualHD models work correctly with the alt mode set only once, in em28xx_dvb_init. Signed-off-by: Brad Love --- Since v1: - Removed a

[PATCH v2] [RFC] em28xx: Fix dual transport stream use

2018-06-28 Thread Brad Love
never set to 0 on DVB stream stop, this simple v2 approach seems sufficient for now. Brad Love (1): em28xx: Fix dual transport stream operation drivers/media/usb/em28xx/em28xx-dvb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4

Re: [PATCH] [RFC] em28xx: Fix dual transport stream use

2018-06-28 Thread Brad Love
Hi Mauro, On 2018-06-28 04:10, Mauro Carvalho Chehab wrote: > Em Wed, 27 Jun 2018 14:41:22 -0500 > Brad Love escreveu: > >> When dual transport stream support was added the call to set >> alt mode on the USB interface was moved to em28xx_dvb_init. >> This was report

Re: [PATCH] em28xx: Fix dual transport stream operation

2018-06-27 Thread Brad Love
Apologies, forgot to note this patch requires: https://patchwork.kernel.org/patch/10492053/ On 2018-06-27 14:41, Brad Love wrote: > Addresses the following, which introduced a regression itself: > > Commit 509f89652f83 ("media: em28xx: fix a regression with HVR-950") >

[PATCH] em28xx: Fix dual transport stream operation

2018-06-27 Thread Brad Love
r in a dual tuner device will lock the second tuner, and the second tuner in a dual tuner device will lock itself aka the second tuner instance. Signed-off-by: Brad Love --- drivers/media/usb/em28xx/em28xx-cards.c | 6 - drivers/media/usb/em28xx/em28xx-dvb.c | 47

  1   2   3   >