OSDN Git Service

ALSA: ctxfi: Fallback DMA mask to 32bit
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Feb 2017 16:16:48 +0000 (17:16 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Feb 2017 16:58:02 +0000 (17:58 +0100)
commit15c75b09f8d190f89ab4db463b87d411ca349dfe
tree3b90b309806a1e53a341a0ef17be716a64944024
parent71321eb3f2d0df4e6c327e0b936eec4458a12054
ALSA: ctxfi: Fallback DMA mask to 32bit

Currently ctxfi driver tries to set only the 64bit DMA mask on 64bit
architectures, and bails out if it fails.  This causes a problem on
some platforms since the 64bit DMA isn't always guaranteed.  We should
fall back to the default 32bit DMA when 64bit DMA fails.

Fixes: 6d74b86d3c0f ("ALSA: ctxfi - Allow 64bit DMA")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ctxfi/cthw20k1.c
sound/pci/ctxfi/cthw20k2.c