diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-11-13 08:45:20 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-11-13 09:28:23 +0100 |
commit | 11b3fdacbac0df6a3531e2b63c876e8442cea2a8 (patch) | |
tree | d56ea64e3f22973b7868f7366915e55e4fbcf773 /sound/aoa/fabrics | |
parent | ALSA: hda - Check keep_eapd_on before inv_eapd (diff) | |
download | linux-11b3fdacbac0df6a3531e2b63c876e8442cea2a8.tar.xz linux-11b3fdacbac0df6a3531e2b63c876e8442cea2a8.zip |
ALSA: snd-aoa: two copy and paste bugs
These functions were cut and paste and the tests for NULL weren't
updated properly.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/aoa/fabrics')
-rw-r--r-- | sound/aoa/fabrics/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/aoa/fabrics/layout.c b/sound/aoa/fabrics/layout.c index 61ab640e195f..9dc5806d23dd 100644 --- a/sound/aoa/fabrics/layout.c +++ b/sound/aoa/fabrics/layout.c @@ -644,7 +644,7 @@ static int n##_control_put(struct snd_kcontrol *kcontrol, \ struct snd_ctl_elem_value *ucontrol) \ { \ struct gpio_runtime *gpio = snd_kcontrol_chip(kcontrol); \ - if (gpio->methods && gpio->methods->get_##n) \ + if (gpio->methods && gpio->methods->set_##n) \ gpio->methods->set_##n(gpio, \ !!ucontrol->value.integer.value[0]); \ return 1; \ @@ -1135,7 +1135,7 @@ static int aoa_fabric_layout_resume(struct soundbus_dev *sdev) { struct layout_dev *ldev = dev_get_drvdata(&sdev->ofdev.dev); - if (ldev->gpio.methods && ldev->gpio.methods->all_amps_off) + if (ldev->gpio.methods && ldev->gpio.methods->all_amps_restore) ldev->gpio.methods->all_amps_restore(&ldev->gpio); return 0; |