Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da74ae3e authored by Harvey Harrison's avatar Harvey Harrison Committed by Takashi Iwai
Browse files

ALSA: hda - correct bracketing in spdif test in patch_sigmatel.c



Noticed by sparse:
sound/pci/hda/patch_sigmatel.c:1285:43: warning: dubious: !x & y

Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Acked-by: default avatarMatthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 863b4518
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1282,7 +1282,7 @@ static int stac92xx_build_controls(struct hda_codec *codec)
			return err;
		spec->multiout.share_spdif = 1;
	}
	if (spec->dig_in_nid && (!spec->gpio_dir & 0x01)) {
	if (spec->dig_in_nid && !(spec->gpio_dir & 0x01)) {
		err = snd_hda_create_spdif_in_ctls(codec, spec->dig_in_nid);
		if (err < 0)
			return err;