From 941112d117c09453ac55911f739a10fc8e22fd91 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Wed, 23 Aug 2017 21:16:00 +0900 Subject: LIBOPNA: fm: enable high-resolution mode changing at runtime --- libopna/opnafm.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'libopna/opnafm.h') diff --git a/libopna/opnafm.h b/libopna/opnafm.h index 359517b..1549041 100644 --- a/libopna/opnafm.h +++ b/libopna/opnafm.h @@ -31,6 +31,10 @@ struct opna_fm_slot { uint8_t rate_selector; uint8_t rate_mul; + uint8_t rate_shifter_hires; + uint8_t rate_selector_hires; + uint8_t rate_mul_hires; + uint8_t tl; uint8_t sl; @@ -92,6 +96,9 @@ struct opna_fm { // mask // when (1<hires_sin = hires; +} + +static inline void opna_fm_set_hires_env(struct opna_fm *fm, bool hires) { + fm->hires_env = hires; +} + #ifdef __cplusplus } #endif -- cgit v1.2.3