summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 909e9a2)
raw | patch | inline | side by side (parent: 909e9a2)
author | Frank Livingston <frank-livingston@ti.com> | |
Fri, 10 Mar 2017 20:25:43 +0000 (14:25 -0600) | ||
committer | Frank Livingston <frank-livingston@ti.com> | |
Fri, 10 Mar 2017 20:25:43 +0000 (14:25 -0600) |
pasdk/test_dsp/sap/sap_d10.c | patch | blob | history |
index 7d026c088cb25045415b160c83cff49a816bb2ec..084fe013485530c638c7e2b866c972cab7aeda1a 100644 (file)
#include <audio_dc_cfg.h>
#include "vproccmds_a.h"
+#include "dbgBenchmark.h" // PCM high-sampling rate + SRC + CAR benchmarking
+
+
// -----------------------------------------------------------------------------
// Local function declarations
@@ -849,22 +852,27 @@ static int manageInput (DEV2_Handle device, const SAP_D10_Rx_Params *pParams, PA
pStatusIn->emphasis = PAF_IEC_PREEMPHASIS_NO;
+#ifndef _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
+ //
+ // Input interface rate hard-coded to 192 kHz to avoid I2C transactions.
+ // Temporary fix works for EC3 and MLP/MAT formats.
+ //
pStatusIn->lock = 1;
pStatusIn->nonaudio = PAF_IEC_AUDIOMODE_AUDIO;
RateHdmi = PAF_SAMPLERATE_192000HZ;
pStatusIn->sampleRateMeasured = RateTable_hdmi[RateHdmi];
pStatusIn->sampleRateData = pStatusIn->sampleRateMeasured;
-#if 0
+#else // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
+ //
+ // Need to update input interface rate by consulting HSR4 over I2C for benchmarking configuration.
+ //
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;
@@ -913,8 +921,7 @@ static int manageInput (DEV2_Handle device, const SAP_D10_Rx_Params *pParams, PA
pStatusIn->sampleRateMeasured = PrevSampRate;
pStatusIn->sampleRateData = pStatusIn->sampleRateMeasured;
}
-#endif
-
+#endif // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
}
else