Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0001-linux-dvb-v5-API-support-for-ATSC-MH.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0002-DocBook-document-new-DTV-Properties-for-ATSC-MH-deli.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0003-increment-DVB-API-to-version-5.6-for-ATSC-MH-fronten.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0004-mxl111sf-tuner-tune-SYS_ATSCMH-just-like-SYS_ATSC.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0005-DVB-add-support-for-the-LG2160-ATSC-MH-demodulator.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0006-lg2160-update-internal-api-interfaces-and-enable-bui.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0007-dvb-demux-add-functionality-to-send-raw-payload-to-t.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0008-dvb-usb-add-support-for-dvb-usb-adapters-that-delive.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0009-dvb-usb-increase-MAX_NO_OF_FE_PER_ADAP-from-2-to-3.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky



0010-mxl111sf-add-ATSC-MH-support.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-30 Thread Michael Krufky
On Thu, Apr 19, 2012 at 9:36 AM, Mauro Carvalho Chehab
mche...@redhat.com wrote:
 This patch is incomplete:
        - It doesn't increment the version number;
        - Docbook is untouched.

 Also, I didn't see any post of those patches at the ML. Please post the
 patches at the ML for review before sending a pull request, especially
 when API changes are there.

New pull request and patchbomb follows:


The following changes since commit 296da3cd14db9eb5606924962b2956c9c656dbb0:

  [media] pwc: poll(): Check that the device has not beem claimed for
streaming already (2012-03-27 11:42:04 -0300)

are available in the git repository at:
  git://git.linuxtv.org/mkrufky/mxl111sf aero-m

Michael Krufky (10):
  linux-dvb v5 API support for ATSC-MH
  DocBook: document new DTV Properties for ATSC-MH delivery system
  increment DVB API to version 5.6 for ATSC-MH frontend control
  mxl111sf-tuner: tune SYS_ATSCMH just like SYS_ATSC
  DVB: add support for the LG2160 ATSC-MH demodulator
  lg2160: update internal api interfaces and enable build
  dvb-demux: add functionality to send raw payload to the dvr device
  dvb-usb: add support for dvb-usb-adapters that deliver raw payload
  dvb-usb: increase MAX_NO_OF_FE_PER_ADAP from 2 to 3
  mxl111sf: add ATSC-MH support

 Documentation/DocBook/media/dvb/dvbproperty.xml |  178 +++
 drivers/media/dvb/dvb-core/dvb_demux.c  |   10 +
 drivers/media/dvb/dvb-core/dvb_demux.h  |2 +
 drivers/media/dvb/dvb-core/dvb_frontend.c   |   92 ++-
 drivers/media/dvb/dvb-core/dvb_frontend.h   |   22 +
 drivers/media/dvb/dvb-usb/Kconfig   |1 +
 drivers/media/dvb/dvb-usb/dvb-usb-urb.c |   12 +
 drivers/media/dvb/dvb-usb/dvb-usb.h |3 +-
 drivers/media/dvb/dvb-usb/mxl111sf-tuner.c  |1 +
 drivers/media/dvb/dvb-usb/mxl111sf.c|  871 +-
 drivers/media/dvb/frontends/Kconfig |8 +
 drivers/media/dvb/frontends/Makefile|1 +
 drivers/media/dvb/frontends/lg2160.c| 1461 +++
 drivers/media/dvb/frontends/lg2160.h|   84 ++
 include/linux/dvb/frontend.h|   54 +-
 include/linux/dvb/version.h |2 +-
 16 files changed, 2751 insertions(+), 51 deletions(-)
 create mode 100644 drivers/media/dvb/frontends/lg2160.c
 create mode 100644 drivers/media/dvb/frontends/lg2160.h
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-29 Thread Michael Krufky
New pull request follows, API patch attached (see below)

On Thu, Apr 19, 2012 at 10:40 AM, Michael Krufky mkru...@kernellabs.com wrote:
 On Thu, Apr 19, 2012 at 9:36 AM, Mauro Carvalho Chehab
 mche...@redhat.com wrote:
 Em 10-04-2012 00:49, Michael Krufky escreveu:
 These patches have been around and tested for quite some time.  Every
 few weeks I have to regenerate them in order to stay in sync with the
 media tree.  I think it's time for some review and possibly merge into
 the master development repository.  This complies with what was
 discussed in at the media developer kernel summit in Prague, Oct 2011.
  Once merged, I'll have time to work on some userspace utilities.  For
 now, I have created a very basic ATSC-MH scanning application that
 demonstrates the API additions.  The app can be found here:
 http://linuxtv.org/hg/~mkrufky/mhscan

[snip]

 This patch is incomplete:
        - It doesn't increment the version number;
        - Docbook is untouched.

 Also, I didn't see any post of those patches at the ML. Please post the
 patches at the ML for review before sending a pull request, especially
 when API changes are there.

 Mauro,

 Thanks for the feedback.  I'll make the Docbook changes, then I'll
 patchbomb the mailing list (it's just a handful of patches for the API
 change) and follow it up with another pull request.

 Cheers,

 Mike


Mauro,

I've made the changes that you've requested, and I've reduced the pull
request to only include the API changes.  Attached please find the
patch.

The following changes since commit 296da3cd14db9eb5606924962b2956c9c656dbb0:

  [media] pwc: poll(): Check that the device has not beem claimed for
streaming already (2012-03-27 11:42:04 -0300)

are available in the git repository at:
  git://git.linuxtv.org/mkrufky/mxl111sf atscmh_for_v3.5

Michael Krufky (3):
  linux-dvb v5 API support for ATSC-MH
  DocBook: document new DTV Properties for ATSC-MH delivery system
  increment DVB API to version 5.6 for ATSC-MH frontend control

 Documentation/DocBook/media/dvb/dvbproperty.xml |  178 +++
 drivers/media/dvb/dvb-core/dvb_frontend.c   |   92 -
 drivers/media/dvb/dvb-core/dvb_frontend.h   |   22 +++
 include/linux/dvb/frontend.h|   54 +++-
 include/linux/dvb/version.h |2 +-
 5 files changed, 345 insertions(+), 3 deletions(-)

Cheers,

Mike


atsc-mh-dvb-api-5-6.patch
Description: Binary data


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-29 Thread Michael Krufky
From 78d56f9888c1c768b43cc75e0e02d0e60848bcc4 Mon Sep 17 00:00:00 2001
From: Michael Krufky mkru...@linuxtv.org
Date: Sun, 29 Jan 2012 13:44:58 -0500
Subject: [PATCH 1/3] linux-dvb v5 API support for ATSC-MH

Signed-off-by: Michael Krufky mkru...@linuxtv.org
---
 drivers/media/dvb/dvb-core/dvb_frontend.c |   92 -
 drivers/media/dvb/dvb-core/dvb_frontend.h |   22 +++
 include/linux/dvb/frontend.h  |   54 +-
 3 files changed, 166 insertions(+), 2 deletions(-)

diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c
b/drivers/media/dvb/dvb-core/dvb_frontend.c
index 4555baa..067f10a 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -180,13 +180,13 @@ static enum dvbv3_emulation_type dvbv3_type(u32
delivery_system)
case SYS_DMBTH:
return DVBV3_OFDM;
case SYS_ATSC:
+   case SYS_ATSCMH:
case SYS_DVBC_ANNEX_B:
return DVBV3_ATSC;
case SYS_UNDEFINED:
case SYS_ISDBC:
case SYS_DVBH:
case SYS_DAB:
-   case SYS_ATSCMH:
default:
/*
 * Doesn't know how to emulate those types and/or
@@ -1027,6 +1027,28 @@ static struct dtv_cmds_h
dtv_cmds[DTV_MAX_COMMAND + 1] = {
_DTV_CMD(DTV_HIERARCHY, 0, 0),

_DTV_CMD(DTV_ENUM_DELSYS, 0, 0),
+
+   _DTV_CMD(DTV_ATSCMH_PARADE_ID, 1, 0),
+   _DTV_CMD(DTV_ATSCMH_RS_FRAME_ENSEMBLE, 1, 0),
+
+   _DTV_CMD(DTV_ATSCMH_FIC_VER, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_PARADE_ID, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_NOG, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_TNOG, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_SGN, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_PRC, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_RS_FRAME_MODE, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_RS_FRAME_ENSEMBLE, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_RS_CODE_MODE_PRI, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_RS_CODE_MODE_SEC, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_SCCC_BLOCK_MODE, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_A, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_B, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_C, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_D, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_FIC_ERR, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_CRC_ERR, 0, 0),
+   _DTV_CMD(DTV_ATSCMH_RS_ERR, 0, 0),
 };

 static void dtv_property_dump(struct dtv_property *tvp)
@@ -1118,6 +1140,8 @@ static int dtv_property_cache_sync(struct
dvb_frontend *fe,
case DVBV3_ATSC:
dprintk(%s() Preparing ATSC req\n, __func__);
c-modulation = p-u.vsb.modulation;
+   if (c-delivery_system == SYS_ATSCMH)
+   break;
if ((c-modulation == VSB_8) || (c-modulation == VSB_16))
c-delivery_system = SYS_ATSC;
else
@@ -1364,6 +1388,63 @@ static int dtv_property_process_get(struct
dvb_frontend *fe,
case DTV_DVBT2_PLP_ID:
tvp-u.data = c-dvbt2_plp_id;
break;
+
+   /* ATSC-MH */
+   case DTV_ATSCMH_FIC_VER:
+   tvp-u.data = fe-dtv_property_cache.atscmh_fic_ver;
+   break;
+   case DTV_ATSCMH_PARADE_ID:
+   tvp-u.data = fe-dtv_property_cache.atscmh_parade_id;
+   break;
+   case DTV_ATSCMH_NOG:
+   tvp-u.data = fe-dtv_property_cache.atscmh_nog;
+   break;
+   case DTV_ATSCMH_TNOG:
+   tvp-u.data = fe-dtv_property_cache.atscmh_tnog;
+   break;
+   case DTV_ATSCMH_SGN:
+   tvp-u.data = fe-dtv_property_cache.atscmh_sgn;
+   break;
+   case DTV_ATSCMH_PRC:
+   tvp-u.data = fe-dtv_property_cache.atscmh_prc;
+   break;
+   case DTV_ATSCMH_RS_FRAME_MODE:
+   tvp-u.data = fe-dtv_property_cache.atscmh_rs_frame_mode;
+   break;
+   case DTV_ATSCMH_RS_FRAME_ENSEMBLE:
+   tvp-u.data = fe-dtv_property_cache.atscmh_rs_frame_ensemble;
+   break;
+   case DTV_ATSCMH_RS_CODE_MODE_PRI:
+   tvp-u.data = fe-dtv_property_cache.atscmh_rs_code_mode_pri;
+   break;
+   case DTV_ATSCMH_RS_CODE_MODE_SEC:
+   tvp-u.data = fe-dtv_property_cache.atscmh_rs_code_mode_sec;
+   break;
+   case DTV_ATSCMH_SCCC_BLOCK_MODE:
+   tvp-u.data = fe-dtv_property_cache.atscmh_sccc_block_mode;
+   break;
+   case DTV_ATSCMH_SCCC_CODE_MODE_A:
+   tvp-u.data = fe-dtv_property_cache.atscmh_sccc_code_mode_a;
+   break;
+   case DTV_ATSCMH_SCCC_CODE_MODE_B:
+   tvp-u.data = fe-dtv_property_cache.atscmh_sccc_code_mode_b;
+   break;
+   case DTV_ATSCMH_SCCC_CODE_MODE_C:
+   tvp-u.data = fe-dtv_property_cache.atscmh_sccc_code_mode_c;
+   break;
+   case DTV_ATSCMH_SCCC_CODE_MODE_D:
+   tvp-u.data = 

Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-19 Thread Mauro Carvalho Chehab
Em 10-04-2012 00:49, Michael Krufky escreveu:
 These patches have been around and tested for quite some time.  Every
 few weeks I have to regenerate them in order to stay in sync with the
 media tree.  I think it's time for some review and possibly merge into
 the master development repository.  This complies with what was
 discussed in at the media developer kernel summit in Prague, Oct 2011.
  Once merged, I'll have time to work on some userspace utilities.  For
 now, I have created a very basic ATSC-MH scanning application that
 demonstrates the API additions.  The app can be found here:
 http://linuxtv.org/hg/~mkrufky/mhscan
 
 Please review:
 
 The following changes since commit 296da3cd14db9eb5606924962b2956c9c656dbb0:
 
   [media] pwc: poll(): Check that the device has not beem claimed for
 streaming already (2012-03-27 11:42:04 -0300)
 
 are available in the git repository at:
   git://git.linuxtv.org/mkrufky/mxl111sf mh_for_v3.5
 
 Michael Krufky (8):
   linux-dvb v5 API support for ATSC-MH

This patch is incomplete:
- It doesn't increment the version number;
- Docbook is untouched.

Also, I didn't see any post of those patches at the ML. Please post the
patches at the ML for review before sending a pull request, especially
when API changes are there.

   mxl111sf-tuner: tune SYS_ATSCMH just like SYS_ATSC
   DVB: add support for the LG2160 ATSC-MH demodulator
   lg2160: update internal api interfaces and enable build
   dvb-demux: add functionality to send raw payload to the dvr device
   dvb-usb: add support for dvb-usb-adapters that deliver raw payload
   dvb-usb: increase MAX_NO_OF_FE_PER_ADAP from 2 to 3
   mxl111sf: add ATSC-MH support
 
  drivers/media/dvb/dvb-core/dvb_demux.c |   10 +
  drivers/media/dvb/dvb-core/dvb_demux.h |2 +
  drivers/media/dvb/dvb-core/dvb_frontend.c  |   92 ++-
  drivers/media/dvb/dvb-core/dvb_frontend.h  |   22 +
  drivers/media/dvb/dvb-usb/Kconfig  |1 +
  drivers/media/dvb/dvb-usb/dvb-usb-urb.c|   12 +
  drivers/media/dvb/dvb-usb/dvb-usb.h|3 +-
  drivers/media/dvb/dvb-usb/mxl111sf-tuner.c |1 +
  drivers/media/dvb/dvb-usb/mxl111sf.c   |  871 -
  drivers/media/dvb/frontends/Kconfig|8 +
  drivers/media/dvb/frontends/Makefile   |1 +
  drivers/media/dvb/frontends/lg2160.c   | 1461 
 
  drivers/media/dvb/frontends/lg2160.h   |   84 ++
  include/linux/dvb/frontend.h   |   54 +-
  14 files changed, 2572 insertions(+), 50 deletions(-)
  create mode 100644 drivers/media/dvb/frontends/lg2160.c
  create mode 100644 drivers/media/dvb/frontends/lg2160.h




 
 Cheers,
 
 Mike
 --
 To unsubscribe from this list: send the line unsubscribe linux-media in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: ATSC-MH driver support for the Hauppauge WinTV Aero-m

2012-04-19 Thread Michael Krufky
On Thu, Apr 19, 2012 at 9:36 AM, Mauro Carvalho Chehab
mche...@redhat.com wrote:
 Em 10-04-2012 00:49, Michael Krufky escreveu:
 These patches have been around and tested for quite some time.  Every
 few weeks I have to regenerate them in order to stay in sync with the
 media tree.  I think it's time for some review and possibly merge into
 the master development repository.  This complies with what was
 discussed in at the media developer kernel summit in Prague, Oct 2011.
  Once merged, I'll have time to work on some userspace utilities.  For
 now, I have created a very basic ATSC-MH scanning application that
 demonstrates the API additions.  The app can be found here:
 http://linuxtv.org/hg/~mkrufky/mhscan

 Please review:

 The following changes since commit 296da3cd14db9eb5606924962b2956c9c656dbb0:

   [media] pwc: poll(): Check that the device has not beem claimed for
 streaming already (2012-03-27 11:42:04 -0300)

 are available in the git repository at:
   git://git.linuxtv.org/mkrufky/mxl111sf mh_for_v3.5

 Michael Krufky (8):
       linux-dvb v5 API support for ATSC-MH

 This patch is incomplete:
        - It doesn't increment the version number;
        - Docbook is untouched.

 Also, I didn't see any post of those patches at the ML. Please post the
 patches at the ML for review before sending a pull request, especially
 when API changes are there.

Mauro,

Thanks for the feedback.  I'll make the Docbook changes, then I'll
patchbomb the mailing list (it's just a handful of patches for the API
change) and follow it up with another pull request.

Cheers,

Mike
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html