summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-08-17 13:40:09 +0200
committerChristian Soffke <christian.soffke@gmail.com>2023-08-17 13:40:09 +0200
commit03d326fc90afa4fded017776996b84d6a4686162 (patch)
tree64d26a38dc2c8f96d984fd5158d0cfbf8391148d
parente5ecff3db776447417f501630c0af4f285277735 (diff)
downloadrockbox-03d326fc90.tar.gz
rockbox-03d326fc90.zip
Remove obsolete alias for audio_record function
Rockbox doesn't support HW codec anymore Change-Id: Ia20d3f02f0d9db88b23cf9074e4d76aa21fd53b0
-rw-r--r--apps/recorder/pcm_record.c4
-rw-r--r--apps/recorder/recording.c9
-rw-r--r--firmware/export/audio.h1
3 files changed, 2 insertions, 12 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c
index 8dc2c150fd..01f0e604dd 100644
--- a/apps/recorder/pcm_record.c
+++ b/apps/recorder/pcm_record.c
@@ -979,10 +979,6 @@ void audio_record(const char *filename)
audio_queue_send(Q_AUDIO_RECORD, (intptr_t)filename);
}
-/* audio_record alias for API compatibility with HW codec */
-void audio_new_file(const char *filename)
- __attribute__((alias("audio_record")));
-
/* Stop current recording if recording */
void audio_stop_recording(void)
{
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 6c52adf5d3..dec7b7bd8c 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -643,16 +643,11 @@ void rec_command(enum recording_command cmd)
audio_stop_recording();
break;
case RECORDING_CMD_START:
- /* steal mp3 buffer, create unique filename and start recording */
- pm_reset_clipcount();
- pm_activate_clipcount(true);
- audio_record(rec_create_filename(path_buffer));
- break;
case RECORDING_CMD_START_NEWFILE:
/* create unique filename and start recording*/
pm_reset_clipcount();
- pm_activate_clipcount(true); /* just to be sure */
- audio_new_file(rec_create_filename(path_buffer));
+ pm_activate_clipcount(true);
+ audio_record(rec_create_filename(path_buffer));
break;
case RECORDING_CMD_PAUSE:
pm_activate_clipcount(false);
diff --git a/firmware/export/audio.h b/firmware/export/audio.h
index c2c23dfd5c..4fa7841b65 100644
--- a/firmware/export/audio.h
+++ b/firmware/export/audio.h
@@ -154,7 +154,6 @@ void audio_record(const char *filename);
void audio_stop_recording(void);
void audio_pause_recording(void);
void audio_resume_recording(void);
-void audio_new_file(const char *filename);
void audio_set_recording_options(struct audio_recording_options *options);
void audio_set_recording_gain(int left, int right, int type);
unsigned long audio_recorded_time(void);