ALSA: es1968: precedence bug in snd_es1968_tea575x_get_pins()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 13 Nov 2012 07:44:54 +0000 (10:44 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Nov 2012 07:51:47 +0000 (08:51 +0100)
commitd2153a1595ee8235ecf9f9e2d1ac18eee373cbb5
treed2a3f03ecbfc6b06252079be717ac2f7bfe317b1
parent6214b54cbf0778804de1297444c7661e70bc4d74
ALSA: es1968: precedence bug in snd_es1968_tea575x_get_pins()

I don't think this works as intended.  '|' higher precedence than ?: so
the bitwize OR "0 | (val & STR_MOST)" is a no-op.

I have re-written it to be more clear.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/es1968.c