PD#167378: Modify atv demod for audio driver get atv audio data.
Change-Id: I221c6a94d3756d5361c140fdc88f25b65e33d114
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
if (atv_state == ATVDEMOD_STATE_WORK) {
retrieve_vpll_carrier_lock(&vpll_lock);
retrieve_vpll_carrier_line_lock(&line_lock);
- if ((vpll_lock == 0) && (line_lock == 0))
+ if ((vpll_lock == 0) && (line_lock == 0)) {
retrieve_vpll_carrier_audio_power(&power);
- } else
+ *state = 1;
+ } else
+ *state = 0;
+ } else {
+ *state = 0;
pr_audio("%s, atv is not work, atv_state: %d.\n",
__func__, atv_state);
-
+ }
+#if 0
if (power >= 150)
*state = 1;
else
*state = 0;
-
+#endif
pr_audio("aml_fe_get_atvaudio_state: %d, power = %d.\n",
*state, power);
}