* Odd no-op in sound/pci/hda/patch_sigmatel.c
@ 2015-01-05 12:21 Rasmus Villemoes
2015-01-05 12:27 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Rasmus Villemoes @ 2015-01-05 12:21 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
Hi Takashi
The "spec->gpio_mask &= spec->gpio_mask" on line 571 of
sound/pci/hda/patch_sigmatel.c is obviously a no-op. Is that on purpose,
or was it supposed to be something else?
Rasmus
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Odd no-op in sound/pci/hda/patch_sigmatel.c
2015-01-05 12:21 Odd no-op in sound/pci/hda/patch_sigmatel.c Rasmus Villemoes
@ 2015-01-05 12:27 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2015-01-05 12:27 UTC (permalink / raw)
To: Rasmus Villemoes; +Cc: alsa-devel
At Mon, 05 Jan 2015 13:21:17 +0100,
Rasmus Villemoes wrote:
>
> Hi Takashi
>
> The "spec->gpio_mask &= spec->gpio_mask" on line 571 of
> sound/pci/hda/patch_sigmatel.c is obviously a no-op. Is that on purpose,
> or was it supposed to be something else?
It's obviously a copy&paste error. The correct code would be:
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 4f6413e01c13..605d14003d25 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -568,9 +568,9 @@ static void stac_store_hints(struct hda_codec *codec)
spec->gpio_mask;
}
if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir))
- spec->gpio_mask &= spec->gpio_mask;
- if (get_int_hint(codec, "gpio_data", &spec->gpio_data))
spec->gpio_dir &= spec->gpio_mask;
+ if (get_int_hint(codec, "gpio_data", &spec->gpio_data))
+ spec->gpio_data &= spec->gpio_mask;
if (get_int_hint(codec, "eapd_mask", &spec->eapd_mask))
spec->eapd_mask &= spec->gpio_mask;
if (get_int_hint(codec, "gpio_mute", &spec->gpio_mute))
I'll fix this with your reported-by credit.
thanks,
Takashi
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-05 12:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-05 12:21 Odd no-op in sound/pci/hda/patch_sigmatel.c Rasmus Villemoes
2015-01-05 12:27 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.