aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdrivers/media/radio/CG2900/fmdriver.c8
-rwxr-xr-xdrivers/media/radio/CG2900/stefmapi.c10
2 files changed, 17 insertions, 1 deletions
diff --git a/drivers/media/radio/CG2900/fmdriver.c b/drivers/media/radio/CG2900/fmdriver.c
index 0a58b1f80fb..928ea8affe8 100755
--- a/drivers/media/radio/CG2900/fmdriver.c
+++ b/drivers/media/radio/CG2900/fmdriver.c
@@ -10,6 +10,7 @@
#include <stdarg.h>
#include <string.h>
+#include <linux/time.h>
#include "fmdriver.h"
#include "platformosapi.h"
@@ -3031,8 +3032,13 @@ void fmd_hexdump(char prompt, u8 *arr, int num_bytes)
{
int i;
u8 tmpVal;
+ struct timespec time;
static u8 pkt_write[512], *pkt_ptr;
- sprintf(pkt_write, "\n[%04x] %c", num_bytes, prompt);
+ getnstimeofday(&time);
+ sprintf(pkt_write, "\n[%08x:%08x] [%04x] %c",
+ (unsigned int)time.tv_sec,
+ (unsigned int)time.tv_nsec,
+ num_bytes, prompt);
pkt_ptr = pkt_write + strlen(pkt_write);
if (arr != NULL) {
/* Copy the buffer only if the input buffer is not NULL */
diff --git a/drivers/media/radio/CG2900/stefmapi.c b/drivers/media/radio/CG2900/stefmapi.c
index a0d2b9cb5da..ee0c28704e2 100755
--- a/drivers/media/radio/CG2900/stefmapi.c
+++ b/drivers/media/radio/CG2900/stefmapi.c
@@ -870,6 +870,16 @@ u8 ste_fm_switch_on(struct device *device)
goto error;
}
+ /* Switch Mode To Idle */
+ result = fmd_set_mode(context, FMD_MODE_IDLE);
+ if (FMD_RESULT_SUCCESS != result) {
+ FM_ERR_REPORT("ste_fm_switch_on: "
+ "fmd_set_mode failed %x",
+ (unsigned int)result);
+ result = STE_STATUS_SYSTEM_ERROR;
+ goto error;
+ }
+
/* Enable the Ref Clk */
FM_DEBUG_REPORT("ste_fm_switch_on: "
"Sending fmd_select_ref_clk");