[vlc-devel] [PATCH] Added support for ATSC QAM for United States digital cable

Charles R. Hordis chordis at getwellnetwork.com
Tue Oct 21 15:52:16 CEST 2008


Here is a patch to add support for QAM modulation on ATSC.  I was only able to 
test the QAM-256 option, as that's the only modulation used at my location.

Regards,
Charles Hordis

---
 modules/access/dvb/linux_dvb.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/access/dvb/linux_dvb.c b/modules/access/dvb/linux_dvb.c
index d0dbcf4..8971f24 100644
--- a/modules/access/dvb/linux_dvb.c
+++ b/modules/access/dvb/linux_dvb.c
@@ -794,8 +794,13 @@ static fe_modulation_t DecodeModulationATSC( access_t 
*p_access )
 {
     switch( var_GetInteger( p_access, "dvb-modulation" ) )
     {
+        case 0:     return QAM_AUTO;
         case 8:     return VSB_8;
         case 16:    return VSB_16;
+        case 32:    return QAM_32;
+        case 64:    return QAM_64;
+        case 128:   return QAM_128;
+        case 256:   return QAM_256;
         default:
             msg_Dbg( p_access, "ATSC modulation not set, using VSB 8");
             return VSB_8;
--
1.5.6.4



More information about the vlc-devel mailing list