Loading asoc/codecs/wcd9360/wcd9360-dsp-cntl.c +2 −2 Original line number Diff line number Diff line Loading @@ -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__); Loading Loading @@ -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__); Loading asoc/codecs/wcd9360/wcd9360.c +16 −1 Original line number Diff line number Diff line Loading @@ -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, Loading Loading @@ -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; Loading asoc/codecs/wcd9360/wcd9360.h +1 −17 Original line number Diff line number Diff line Loading @@ -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" Loading Loading @@ -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 Loading Loading @@ -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 Loading
asoc/codecs/wcd9360/wcd9360-dsp-cntl.c +2 −2 Original line number Diff line number Diff line Loading @@ -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__); Loading Loading @@ -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__); Loading
asoc/codecs/wcd9360/wcd9360.c +16 −1 Original line number Diff line number Diff line Loading @@ -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, Loading Loading @@ -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; Loading
asoc/codecs/wcd9360/wcd9360.h +1 −17 Original line number Diff line number Diff line Loading @@ -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" Loading Loading @@ -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 Loading Loading @@ -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