diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2017-11-03 20:14:01 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-11-06 21:37:06 +0100 |
commit | 0fe7b8becf26816eb303626addc8d34821e361f3 (patch) | |
tree | cb8fcd990d5aa3a55212b60e2a3d2282f8f92bff /firmware/export/nwzlinux_codec.h | |
parent | ee2eb13b7407841e9c0dbc76d18878b241d3e9f2 (diff) | |
download | rockbox-0fe7b8becf26816eb303626addc8d34821e361f3.tar.gz rockbox-0fe7b8becf26816eb303626addc8d34821e361f3.zip |
nwzlinux: add support for radio
None of the Sony up to A15 seem to support RDS (they use either Si4702 or Si4708),
thus I did not add any code to support RDS.
Change-Id: I64838993b9705b36b94665f8470c7a89c772c961
Diffstat (limited to 'firmware/export/nwzlinux_codec.h')
-rw-r--r-- | firmware/export/nwzlinux_codec.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/export/nwzlinux_codec.h b/firmware/export/nwzlinux_codec.h index dae8cca76f..06557ea1ca 100644 --- a/firmware/export/nwzlinux_codec.h +++ b/firmware/export/nwzlinux_codec.h @@ -26,11 +26,20 @@ /* Ranges from -100dB to 4dB */ AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -100, 4, -10) +enum nwz_src_t +{ + NWZ_PLAYBACK, + NWZ_RADIO, + NWZ_MIC, +}; + /* enable/disable Sony's "acoustic" mode */ bool audiohw_acoustic_enabled(void); void audiohw_enable_acoustic(bool en); /* enable/disable Sony's "cuerev" mode */ bool audiohw_cuerev_enabled(void); void audiohw_enable_cuerev(bool en); +/* select playback source */ +void audiohw_set_playback_src(enum nwz_src_t src); #endif /* __NWZLINUX_CODEC_H__ */ |