1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef WSA_MACRO_H
- #define WSA_MACRO_H
- enum {
- WSA_MACRO_SPKR_MODE_DEFAULT,
- WSA_MACRO_SPKR_MODE_1,
- };
- enum {
- WSA_MACRO_GAIN_OFFSET_M1P5_DB,
- WSA_MACRO_GAIN_OFFSET_0_DB,
- };
- #if IS_ENABLED(CONFIG_WSA_MACRO)
- extern int wsa_macro_set_spkr_mode(struct snd_soc_component *component,
- int mode);
- extern int wsa_macro_set_spkr_gain_offset(struct snd_soc_component *component,
- int offset);
- #else
- static inline int wsa_macro_set_spkr_mode(struct snd_soc_component *component,
- int mode)
- {
- return 0;
- }
- static inline int wsa_macro_set_spkr_gain_offset(
- struct snd_soc_component *component,
- int offset);
- {
- return 0;
- }
- #endif
- #endif
|