summaryrefslogtreecommitdiff
path: root/src/topology
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-09-08 22:09:44 +0200
committerTakashi Iwai <tiwai@suse.de>2015-09-08 22:09:44 +0200
commitf41fe763e9bc80783bf1471141ac06d514ffaef3 (patch)
tree600f61f88ec1bd98f2ce12026a00fd4e2ca45aad /src/topology
parent76b9cae026bf73a00ccf3ec8833ec56f0e64f451 (diff)
downloadalsa-lib-f41fe763e9bc80783bf1471141ac06d514ffaef3.tar.gz
topology: ctl: Fix access type checks
Fix the wrong bit-and check by adding parentheses properly: ctl.c: In function ‘tplg_add_bytes’: ctl.c:868:22: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if (be->hdr.access & SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE ^ Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'src/topology')
-rw-r--r--src/topology/ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/topology/ctl.c b/src/topology/ctl.c
index 68c4ce58..7d8787f3 100644
--- a/src/topology/ctl.c
+++ b/src/topology/ctl.c
@@ -865,7 +865,7 @@ int tplg_add_bytes(snd_tplg_t *tplg, struct snd_tplg_bytes_template *bytes_ctl,
/* check on TLV bytes control */
if (be->hdr.access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) {
- if (be->hdr.access & SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE
+ if ((be->hdr.access & SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE)
!= SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE) {
SNDERR("error: Invalid TLV bytes control access 0x%x\n",
be->hdr.access);