mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "ASoC: wcd9360: Fix re-definition errors due to dynamic detection"
This commit is contained in:
commit
65a1efdc28
3 changed files with 19 additions and 20 deletions
|
|
@ -1078,7 +1078,7 @@ static int wcd_ctrl_component_bind(struct device *dev,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
cntl = pahu_get_wcd_dsp_cntl(dev);
|
||||
cntl = (struct wcd_dsp_cntl *) pahu_get_wcd_dsp_cntl(dev);
|
||||
if (!cntl) {
|
||||
dev_err(dev, "%s: Failed to get cntl reference\n",
|
||||
__func__);
|
||||
|
|
@ -1165,7 +1165,7 @@ static void wcd_ctrl_component_unbind(struct device *dev,
|
|||
return;
|
||||
}
|
||||
|
||||
cntl = pahu_get_wcd_dsp_cntl(dev);
|
||||
cntl = (struct wcd_dsp_cntl *) pahu_get_wcd_dsp_cntl(dev);
|
||||
if (!cntl) {
|
||||
dev_err(dev, "%s: Failed to get cntl reference\n",
|
||||
__func__);
|
||||
|
|
|
|||
|
|
@ -153,6 +153,21 @@ static const struct snd_kcontrol_new name##_mux = \
|
|||
|
||||
#define WCD9360_DIG_CORE_COLLAPSE_TIMER_MS (5 * 1000)
|
||||
|
||||
enum {
|
||||
INTERP_EAR = 0,
|
||||
/* Headset and Lineout are not avalible in pahu */
|
||||
INTERP_HPHL_NA,
|
||||
INTERP_HPHR_NA,
|
||||
INTERP_LO1_NA,
|
||||
INTERP_LO2_NA,
|
||||
INTERP_LO3_NA,
|
||||
INTERP_LO4_NA,
|
||||
INTERP_SPKR1,
|
||||
INTERP_SPKR2,
|
||||
INTERP_AUX,
|
||||
INTERP_MAX,
|
||||
};
|
||||
|
||||
enum {
|
||||
POWER_COLLAPSE,
|
||||
POWER_RESUME,
|
||||
|
|
@ -7904,7 +7919,7 @@ static int __pahu_enable_efuse_sensing(struct pahu_priv *pahu)
|
|||
*
|
||||
* This API gets the reference to codec's struct wcd_dsp_cntl
|
||||
*/
|
||||
struct wcd_dsp_cntl *pahu_get_wcd_dsp_cntl(struct device *dev)
|
||||
void *pahu_get_wcd_dsp_cntl(struct device *dev)
|
||||
{
|
||||
struct platform_device *pdev;
|
||||
struct pahu_priv *pahu;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
#define __WCD9360_H__
|
||||
|
||||
#include <dsp/apr_audio-v2.h>
|
||||
#include "wcd9360-dsp-cntl.h"
|
||||
#include "../wcd9xxx-slimslave.h"
|
||||
#include "../wcd9xxx-common-v2.h"
|
||||
|
||||
|
|
@ -75,21 +74,6 @@ enum {
|
|||
WCD9360_TX_MAX,
|
||||
};
|
||||
|
||||
enum {
|
||||
INTERP_EAR = 0,
|
||||
/* Headset and Lineout are not avalible in pahu */
|
||||
INTERP_HPHL_NA,
|
||||
INTERP_HPHR_NA,
|
||||
INTERP_LO1_NA,
|
||||
INTERP_LO2_NA,
|
||||
INTERP_LO3_NA,
|
||||
INTERP_LO4_NA,
|
||||
INTERP_SPKR1,
|
||||
INTERP_SPKR2,
|
||||
INTERP_AUX,
|
||||
INTERP_MAX,
|
||||
};
|
||||
|
||||
/*
|
||||
* Selects compander and smart boost settings
|
||||
* for a given speaker mode
|
||||
|
|
@ -149,7 +133,7 @@ extern int pahu_cdc_mclk_enable(struct snd_soc_codec *codec, bool enable);
|
|||
extern int pahu_cdc_mclk_tx_enable(struct snd_soc_codec *codec, bool enable);
|
||||
extern int pahu_set_spkr_mode(struct snd_soc_codec *codec, int mode);
|
||||
extern int pahu_set_spkr_gain_offset(struct snd_soc_codec *codec, int offset);
|
||||
extern struct wcd_dsp_cntl *pahu_get_wcd_dsp_cntl(struct device *dev);
|
||||
extern void *pahu_get_wcd_dsp_cntl(struct device *dev);
|
||||
extern int wcd9360_get_micb_vout_ctl_val(u32 micb_mv);
|
||||
extern int pahu_codec_info_create_codec_entry(
|
||||
struct snd_info_entry *codec_root,
|
||||
|
|
|
|||
Loading…
Reference in a new issue