diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2010-03-03 08:16:18 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-03 21:39:31 (GMT) |
commit | faf4eb23d5fcb9a4728766a1e7bce9c6f2b43bd8 (patch) | |
tree | 8de16dc89b7bd233cbf7b59c716f8e80866215e7 /sound/pci | |
parent | fd8d47351d2e241f3168eeb697ce55cc28c75b78 (diff) | |
download | linux-fsl-qoriq-faf4eb23d5fcb9a4728766a1e7bce9c6f2b43bd8.tar.xz |
ALSA: oxygen: change || to &&
In the original code the condition was always true (hopefully) because
WM8776_HPLVOL is zero.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/oxygen/xonar_wm87x6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/oxygen/xonar_wm87x6.c b/sound/pci/oxygen/xonar_wm87x6.c index 7754db1..dbc4b89 100644 --- a/sound/pci/oxygen/xonar_wm87x6.c +++ b/sound/pci/oxygen/xonar_wm87x6.c @@ -68,7 +68,7 @@ static void wm8776_write(struct oxygen *chip, OXYGEN_SPI_CEN_LATCH_CLOCK_LO, (reg << 9) | value); if (reg < ARRAY_SIZE(data->wm8776_regs)) { - if (reg >= WM8776_HPLVOL || reg <= WM8776_DACMASTER) + if (reg >= WM8776_HPLVOL && reg <= WM8776_DACMASTER) value &= ~WM8776_UPDATE; data->wm8776_regs[reg] = value; } |