linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/6] [media] Add analog mode support for Medion MD95700
@ 2017-12-17 18:46 Maciej S. Szmigiero
  2017-12-17 19:11 ` Philippe Ombredanne
  0 siblings, 1 reply; 2+ messages in thread
From: Maciej S. Szmigiero @ 2017-12-17 18:46 UTC (permalink / raw)
  To: Michael Krufky, Mauro Carvalho Chehab
  Cc: Andy Walls, linux-kernel, linux-media, Hans Verkuil, Philippe Ombredanne

This series adds support for analog part of Medion 95700 in the cxusb
driver.

What works:
* Video capture at various sizes with sequential fields,
* Input switching (TV Tuner, Composite, S-Video),
* TV and radio tuning,
* Video standard switching and auto detection,
* Radio mode switching (stereo / mono),
* Unplugging while capturing,
* DVB / analog coexistence,
* Raw BT.656 stream support.

What does not work yet:
* Audio,
* VBI,
* Picture controls.

This series (as a one patch) was submitted for inclusion few years ago,
then waited few months in a patch queue.
Unfortunately, by the time it was supposed to be merged there
were enough changes in media that it was no longer mergable.

I thought at that time that I will be able to rebase and retest it soon
but unfortunately up till now I was never able to find enough time to do
so.
Also, with the passing of time the implementation diverged more and
more from the current kernel code, necessitating even more reworking.

That last iteration can be found here:
https://patchwork.linuxtv.org/patch/8048/

Since that version there had been the following changes:
* Adaptation to changes in V4L2 / DVB core,

* Radio device was added, with a possibility to tune to a FM radio
station and switch between stereo and mono modes (tested by taping
audio signal directly at tuner output pin),

* DVB / analog coexistence was improved - resolved a few cases where
DVB core would switch off power or reset the tuner when the device
was still being used but in the analog mode,

* Fixed issues reported by v4l2-compliance,

* Switching to raw BT.656 mode is now done by a custom streaming
parameter set via VIDIOC_S_PARM ioctl instead of using a
V4L2_BUF_TYPE_PRIVATE buffer (which was removed from V4L2),

* General small code cleanups (like using BIT() or ARRAY_SIZE() macros
instead of open coding them, code formatting improvements, etc.).

Changes from v1:
* Only support configuration of cx25840 pins that the cxusb driver is
actually using so there is no need for an ugly CX25840_PIN() macro,

* Split cxusb changes into two patches: first one implementing
digital / analog coexistence in this driver, second one adding the
actual implementation of the analog mode,

* Fix a warning reported by kbuild test robot.

Changes from v2:
* Split out ivtv cx25840 platform data zero-initialization to a separate
commit,

* Add kernel-doc description of struct cx25840_state,

* Make sure that all variables used in CX25840_VCONFIG_OPTION() and
CX25840_VCONFIG_SET_BIT() macros are their explicit parameters,

* Split out some code from cxusb_medion_copy_field() and
cxusb_medion_v_complete_work() functions to separate ones to increase
their readability,

* Generate masks using GENMASK() and BIT() macros in cx25840.h and
cxusb.h.

Changes from v3:
Add SPDX tag to a newly added "cxusb-analog.c" file.

Maciej S. Szmigiero (6):
  ivtv: zero-initialize cx25840 platform data
  cx25840: add kernel-doc description of struct cx25840_state
  cx25840: add pin to pad mapping and output format configuration
  tuner-simple: allow setting mono radio mode
  [media] cxusb: implement Medion MD95700 digital / analog coexistence
  [media] cxusb: add analog mode support for Medion MD95700

 drivers/media/i2c/cx25840/cx25840-core.c |  396 +++++-
 drivers/media/i2c/cx25840/cx25840-core.h |   46 +-
 drivers/media/i2c/cx25840/cx25840-vbi.c  |    3 +
 drivers/media/pci/ivtv/ivtv-i2c.c        |    1 +
 drivers/media/tuners/tuner-simple.c      |    5 +-
 drivers/media/usb/dvb-usb/Kconfig        |    8 +-
 drivers/media/usb/dvb-usb/Makefile       |    2 +-
 drivers/media/usb/dvb-usb/cxusb-analog.c | 1923 ++++++++++++++++++++++++++++++
 drivers/media/usb/dvb-usb/cxusb.c        |  455 ++++++-
 drivers/media/usb/dvb-usb/cxusb.h        |  136 +++
 drivers/media/usb/dvb-usb/dvb-usb-dvb.c  |   20 +-
 drivers/media/usb/dvb-usb/dvb-usb-init.c |   13 +
 drivers/media/usb/dvb-usb/dvb-usb.h      |    8 +
 include/media/drv-intf/cx25840.h         |   74 +-
 14 files changed, 3024 insertions(+), 66 deletions(-)
 create mode 100644 drivers/media/usb/dvb-usb/cxusb-analog.c

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v4 0/6] [media] Add analog mode support for Medion MD95700
  2017-12-17 18:46 [PATCH v4 0/6] [media] Add analog mode support for Medion MD95700 Maciej S. Szmigiero
@ 2017-12-17 19:11 ` Philippe Ombredanne
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Ombredanne @ 2017-12-17 19:11 UTC (permalink / raw)
  To: Maciej S. Szmigiero
  Cc: Michael Krufky, Mauro Carvalho Chehab, Andy Walls, linux-kernel,
	Linux Media Mailing List, Hans Verkuil

On Sun, Dec 17, 2017 at 7:46 PM, Maciej S. Szmigiero
<mail@maciej.szmigiero.name> wrote:
> This series adds support for analog part of Medion 95700 in the cxusb
> driver.

<snip>

> Changes from v3:
> Add SPDX tag to a newly added "cxusb-analog.c" file.

Thank you.

-- 
Cordially
Philippe Ombredanne

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-17 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-17 18:46 [PATCH v4 0/6] [media] Add analog mode support for Medion MD95700 Maciej S. Szmigiero
2017-12-17 19:11 ` Philippe Ombredanne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).