diff options
-rw-r--r-- | firmware/drivers/audio/tlv320.c | 2 | ||||
-rw-r--r-- | firmware/export/audiohw.h | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c index dc19023521..6b96ed212f 100644 --- a/firmware/drivers/audio/tlv320.c +++ b/firmware/drivers/audio/tlv320.c | |||
@@ -305,7 +305,6 @@ void audiohw_disable_recording(void) | |||
305 | tlv320_write_reg(REG_PC, value_pc); | 305 | tlv320_write_reg(REG_PC, value_pc); |
306 | } | 306 | } |
307 | 307 | ||
308 | #ifdef HAVE_FMRADIO_IN | ||
309 | void audiohw_set_monitor(bool enable) | 308 | void audiohw_set_monitor(bool enable) |
310 | { | 309 | { |
311 | unsigned value_aap, value_pc; | 310 | unsigned value_aap, value_pc; |
@@ -325,6 +324,5 @@ void audiohw_set_monitor(bool enable) | |||
325 | tlv320_write_reg(REG_AAP, value_aap); | 324 | tlv320_write_reg(REG_AAP, value_aap); |
326 | tlv320_write_reg(REG_PC, value_pc); | 325 | tlv320_write_reg(REG_PC, value_pc); |
327 | } | 326 | } |
328 | #endif /* HAVE_FMRADIO_IN */ | ||
329 | #endif /* HAVE_RECORDING */ | 327 | #endif /* HAVE_RECORDING */ |
330 | 328 | ||
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 05fdb67e1e..d4861aac5a 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -529,17 +529,13 @@ void audiohw_disable_recording(void); | |||
529 | */ | 529 | */ |
530 | void audiohw_set_recvol(int left, int right, int type); | 530 | void audiohw_set_recvol(int left, int right, int type); |
531 | 531 | ||
532 | #endif /*HAVE_RECORDING*/ | ||
533 | |||
534 | #if defined(HAVE_RECORDING) || defined(HAVE_FMRADIO_IN) | ||
535 | |||
536 | /** | 532 | /** |
537 | * Enable or disable recording monitor. | 533 | * Enable or disable recording monitor. |
538 | * @param enable ture or false. | 534 | * @param enable ture or false. |
539 | */ | 535 | */ |
540 | void audiohw_set_monitor(bool enable); | 536 | void audiohw_set_monitor(bool enable); |
541 | 537 | ||
542 | #endif /* HAVE_RECORDING || HAVE_FMRADIO_IN */ | 538 | #endif /* HAVE_RECORDING */ |
543 | 539 | ||
544 | #if CONFIG_CODEC != SWCODEC | 540 | #if CONFIG_CODEC != SWCODEC |
545 | 541 | ||