mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
techpack: audio: aw882xxacf: Remove unused variables
Change-Id: I493cde9bc28423badb1c3fd8d03c38e38b8a8128 Signed-off-by: electimon <electimon@gmail.com>
This commit is contained in:
parent
8758f5c732
commit
e2e1ee4198
1 changed files with 4 additions and 6 deletions
|
|
@ -1142,7 +1142,9 @@ static int aw882xx_set_rx_en(struct snd_kcontrol *kcontrol,
|
|||
{
|
||||
int ret = -EINVAL;
|
||||
uint32_t ctrl_value = 0;
|
||||
#ifdef CONFIG_AW882XX_ALGO_BIN_PARAMS
|
||||
struct aw_device *aw_dev = NULL;
|
||||
#endif
|
||||
aw_snd_soc_codec_t *codec =
|
||||
aw_componet_codec_ops.kcontrol_codec(kcontrol);
|
||||
struct aw882xx *aw882xx =
|
||||
|
|
@ -1151,7 +1153,9 @@ static int aw882xx_set_rx_en(struct snd_kcontrol *kcontrol,
|
|||
aw_dev_dbg(aw882xx->dev, "ucontrol->value.integer.value[0]=%ld",
|
||||
ucontrol->value.integer.value[0]);
|
||||
|
||||
#ifdef CONFIG_AW882XX_ALGO_BIN_PARAMS
|
||||
aw_dev = aw882xx->aw_pa;
|
||||
#endif
|
||||
ctrl_value = ucontrol->value.integer.value[0];
|
||||
|
||||
ret = aw_dev_set_afe_module_en(AW_RX_MODULE, ctrl_value);
|
||||
|
|
@ -1333,7 +1337,6 @@ static int aw882xx_set_spin(struct snd_kcontrol *kcontrol,
|
|||
{
|
||||
int ret = -EINVAL;
|
||||
uint32_t ctrl_value = 0;
|
||||
struct aw_device *aw_dev;
|
||||
aw_snd_soc_codec_t *codec =
|
||||
aw_componet_codec_ops.kcontrol_codec(kcontrol);
|
||||
struct aw882xx *aw882xx =
|
||||
|
|
@ -1342,8 +1345,6 @@ static int aw882xx_set_spin(struct snd_kcontrol *kcontrol,
|
|||
aw_dev_dbg(aw882xx->dev, "ucontrol->value.integer.value[0]=%ld",
|
||||
ucontrol->value.integer.value[0]);
|
||||
|
||||
aw_dev = aw882xx->aw_pa;
|
||||
|
||||
ctrl_value = ucontrol->value.integer.value[0];
|
||||
if (aw882xx->pstream) {
|
||||
ret = aw_dev_set_spin(ctrl_value);
|
||||
|
|
@ -1360,7 +1361,6 @@ static int aw882xx_set_spin(struct snd_kcontrol *kcontrol,
|
|||
static int aw882xx_get_spin(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_value *ucontrol)
|
||||
{
|
||||
struct aw_device *aw_dev;
|
||||
aw_snd_soc_codec_t *codec =
|
||||
aw_componet_codec_ops.kcontrol_codec(kcontrol);
|
||||
struct aw882xx *aw882xx =
|
||||
|
|
@ -1368,8 +1368,6 @@ static int aw882xx_get_spin(struct snd_kcontrol *kcontrol,
|
|||
int ctrl_value;
|
||||
int ret = -EINVAL;
|
||||
|
||||
aw_dev = aw882xx->aw_pa;
|
||||
|
||||
if (aw882xx->pstream) {
|
||||
ret = aw_dev_get_spin(&ctrl_value);
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue