echoplayer: disable recording

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit ad45b2910abee5155995d3e720b4e6be51a137ee
Author: Aidan MacDonald <[email protected]>
Date:   Fri Feb 27 19:42:44 2026 +0000

    echoplayer: disable recording
    
    Though the rev1 hardware is capable of recording from a
    headset mic, this feature seems likely to be dropped on
    future hardware revisions, and I don't see much point to
    implementing it now.
    
    Change-Id: I77e403bdd1ca53f9018835d3c3042dc86ee0f8f3

diff --git a/firmware/export/config/echor1.h b/firmware/export/config/echor1.h
index 6b39778507..7727f03da7 100644
--- a/firmware/export/config/echor1.h
+++ b/firmware/export/config/echor1.h
@@ -50,14 +50,9 @@
 
 /* Codec / audio hardware defines */
 #define HW_SAMPR_CAPS   SAMPR_CAP_ALL_96 // FIXME: check this section
-#define REC_SAMPR_CAPS  SAMPR_CAP_ALL_96
-#define INPUT_SRC_CAPS  SRC_CAP_MIC
-#define AUDIOHW_CAPS    MIC_GAIN_CAP
-#define HAVE_RECORDING
 #define HAVE_ECHOPLAYER_CODEC
 #define HAVE_SW_TONE_CONTROLS
 #define HAVE_SW_VOLUME_CONTROL
-#define DEFAULT_REC_MIC_GAIN  12
 
 /* Button defines */
 #define CONFIG_KEYPAD ECHO_R1_PAD
diff --git a/firmware/export/echoplayer_codec.h b/firmware/export/echoplayer_codec.h
index 73f69646e6..3be3e9c015 100644
--- a/firmware/export/echoplayer_codec.h
+++ b/firmware/export/echoplayer_codec.h
@@ -26,6 +26,4 @@
  * when changing the volume */
 AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -790, 0, -200);
 
-AUDIOHW_SETTING(MIC_GAIN, "dB", 0, 1, 0, 63, 12);
-
 #endif /* __ECHOPLAYER_CODEC_H__ */
diff --git a/firmware/target/arm/stm32/echoplayer/audiohw-echoplayer.c b/firmware/target/arm/stm32/echoplayer/audiohw-echoplayer.c
index b1a0c39fa8..cf336ee41e 100644
--- a/firmware/target/arm/stm32/echoplayer/audiohw-echoplayer.c
+++ b/firmware/target/arm/stm32/echoplayer/audiohw-echoplayer.c
@@ -32,26 +32,8 @@ void audiohw_close(void)
 {
 }
 
-void audio_set_output_source(int source)
-{
-    (void)source;
-}
-
-void audiohw_set_recvol(int left, int right, int type)
-{
-    (void)left;
-    (void)right;
-    (void)type;
-}
-
 void audiohw_set_volume(int vol_l, int vol_r)
 {
     (void)vol_l;
     (void)vol_r;
 }
-
-void audio_input_mux(int source, unsigned flags)
-{
-    (void)source;
-    (void)flags;
-}
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.