ALSA: ctxfi: Fallback DMA mask to 32bit
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Feb 2017 16:16:48 +0000 (17:16 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 10 Apr 2017 13:09:48 +0000 (15:09 +0200)
commitcbd32ce410ccccbbbc91ad2ff0a6f46bdb49732a
tree0738b06cd17979729daafe0e35c5427e639f5c7d
parentc9645aa7ebb4caa07c1cc7a61f7352c673c4fdfe
ALSA: ctxfi: Fallback DMA mask to 32bit

commit 15c75b09f8d190f89ab4db463b87d411ca349dfe upstream.

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")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
sound/pci/ctxfi/cthw20k1.c
sound/pci/ctxfi/cthw20k2.c