
Switch audio drivers to SPDX identifier on msm-4.19. Change-Id: Ic3f0230a516db251b8d81e8a7e73dbc04d66fe1b Signed-off-by: Meng Wang <mengw@codeaurora.org>
39 lines
916 B
C
39 lines
916 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
|
*/
|
|
#ifndef WSA_MACRO_H
|
|
#define WSA_MACRO_H
|
|
|
|
/*
|
|
* Selects compander and smart boost settings
|
|
* for a given speaker mode
|
|
*/
|
|
enum {
|
|
WSA_MACRO_SPKR_MODE_DEFAULT,
|
|
WSA_MACRO_SPKR_MODE_1, /* COMP Gain = 12dB, Smartboost Max = 5.5V */
|
|
};
|
|
|
|
/* Rx path gain offsets */
|
|
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_codec *codec, int mode);
|
|
extern int wsa_macro_set_spkr_gain_offset(struct snd_soc_codec *codec,
|
|
int offset);
|
|
#else /* CONFIG_WSA_MACRO */
|
|
static inline int wsa_macro_set_spkr_mode(struct snd_soc_codec *codec, int mode)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int wsa_macro_set_spkr_gain_offset(struct snd_soc_codec *codec,
|
|
int offset);
|
|
{
|
|
return 0;
|
|
}
|
|
#endif /* CONFIG_WSA_MACRO */
|
|
#endif
|