summaryrefslogtreecommitdiff
path: root/apps/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/status.c')
-rw-r--r--apps/status.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/apps/status.c b/apps/status.c
index ca8a4d63ef..ad4cb7232b 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -46,6 +46,9 @@
46#ifdef CONFIG_TUNER 46#ifdef CONFIG_TUNER
47#include "radio.h" 47#include "radio.h"
48#endif 48#endif
49#if CONFIG_CODEC == SWCODEC
50#include "pcm_record.h"
51#endif
49 52
50enum playmode ff_mode; 53enum playmode ff_mode;
51 54
@@ -82,16 +85,18 @@ int current_playmode(void)
82 else 85 else
83 return STATUS_PLAY; 86 return STATUS_PLAY;
84 } 87 }
85#if CONFIG_CODEC == MAS3587F 88
86 else 89#ifdef HAVE_RECORDING
90#if CONFIG_CODEC == SWCODEC
91 audio_stat = pcm_rec_status();
92#endif
93
94 if(audio_stat & AUDIO_STATUS_RECORD)
87 { 95 {
88 if(audio_stat & AUDIO_STATUS_RECORD) 96 if(audio_stat & AUDIO_STATUS_PAUSE)
89 { 97 return STATUS_RECORD_PAUSE;
90 if(audio_stat & AUDIO_STATUS_PAUSE) 98 else
91 return STATUS_RECORD_PAUSE; 99 return STATUS_RECORD;
92 else
93 return STATUS_RECORD;
94 }
95 } 100 }
96#endif 101#endif
97 102