PASDK-53: Hard-coding 192 KHz as the IB SampleRate, to aid with SIDK progress.
authorGovind Jeyaram <govind.j@ti.com>
Thu, 16 Feb 2017 22:35:07 +0000 (14:35 -0800)
committerGovind Jeyaram <govind.j@ti.com>
Thu, 16 Feb 2017 22:35:07 +0000 (14:35 -0800)
Importantly, this helps side-step the I2C real-time issue, until the an efficient I2C option is found.

pasdk/test_dsp/sap/sap_d10.c

index 306650ba019aeaf9e72d3cd8033d66f9c95f99ce..f17de3f10898dd4535e9be066c2417ff0c331ac2 100644 (file)
@@ -848,19 +848,27 @@ static int manageInput (DEV2_Handle device, const SAP_D10_Rx_Params *pParams, PA
     {
 
         pStatusIn->emphasis = PAF_IEC_PREEMPHASIS_NO;
-        //pStatusIn->lock = 1;
-        //pStatusIn->nonaudio = PAF_IEC_AUDIOMODE_AUDIO;
+        pStatusIn->lock = 1;
+        pStatusIn->nonaudio = PAF_IEC_AUDIOMODE_AUDIO;
+        RateHdmi = PAF_SAMPLERATE_192000HZ;
+        pStatusIn->sampleRateMeasured = RateTable_hdmi[RateHdmi];
+        pStatusIn->sampleRateData = pStatusIn->sampleRateMeasured;
 
-       if(!HDMIGpioGetState())
+#if 0
+        if(!HDMIGpioGetState())
        {
+               Log_info0("SAP_D10: Entering HMINT!\n");
                clear_hdmi_hmint();
                gHmint_ctr++;
 
+               Log_info0("SAP_D10: Clearing HMINT!\n");
                RateHdmi=read_hdmi_samprate();
+               RateHdmi = PAF_SAMPLERATE_192000HZ;
                        pStatusIn->sampleRateMeasured = RateTable_hdmi[RateHdmi];
                        pStatusIn->sampleRateData = pStatusIn->sampleRateMeasured;
                        PrevSampRate = pStatusIn->sampleRateMeasured;
 
+
                switch(read_hdmi_errstatus())
                        {
                                case HSDIO_AudioErr_NO_ERROR:
@@ -900,6 +908,7 @@ static int manageInput (DEV2_Handle device, const SAP_D10_Rx_Params *pParams, PA
                                pStatusIn->nonaudio = PAF_IEC_AUDIOMODE_NONAUDIO;
                        }
 
+               Log_info0("SAP_D10: Exiting HMINT!\n");
 
        }
        else
@@ -907,6 +916,8 @@ static int manageInput (DEV2_Handle device, const SAP_D10_Rx_Params *pParams, PA
                pStatusIn->sampleRateMeasured = PrevSampRate;
                pStatusIn->sampleRateData = pStatusIn->sampleRateMeasured;
        }
+#endif
+
        }
 
     else