diff options
Diffstat (limited to 'firmware/export/audiohw.h')
-rw-r--r-- | firmware/export/audiohw.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index e18e996282..4bd4ecb019 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -54,15 +54,13 @@ struct sound_settings_info | |||
54 | short defaultval; | 54 | short defaultval; |
55 | }; | 55 | }; |
56 | 56 | ||
57 | #undef AUDIOHW_SETTING /* will have been #defined in config.h as empty */ | ||
57 | #define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...) \ | 58 | #define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...) \ |
58 | static const struct sound_settings_info _audiohw_setting_##name = \ | 59 | static const struct sound_settings_info _audiohw_setting_##name = \ |
59 | { .unit = us, .numdecimals = nd, .steps = st, \ | 60 | { .unit = us, .numdecimals = nd, .steps = st, \ |
60 | .minval = minv, .maxval = maxv, .defaultval = defv }; \ | 61 | .minval = minv, .maxval = maxv, .defaultval = defv }; \ |
61 | static inline int _sound_val2phys_##name(int val) \ | 62 | static inline int _sound_val2phys_##name(int val) \ |
62 | { return #expr[0] ? expr : val; } | 63 | { return #expr[0] ? expr : val; } |
63 | #else | ||
64 | /* ...otherwise these produce nothing. */ | ||
65 | #define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...) | ||
66 | #endif | 64 | #endif |
67 | 65 | ||
68 | #ifdef HAVE_UDA1380 | 66 | #ifdef HAVE_UDA1380 |