ALSA: ctxfi: Fallback DMA mask to 32bit
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Feb 2017 16:16:48 +0000 (17:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:37:25 +0000 (06:37 +0100)
commit70dbc00f7e112a3647233251777edc7129854746
tree72eccb8d47e7b90958998db0817789e01475f8da
parent9879f9d01a3c608f75596437f2c4ae4b218da9dd
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/ctxfi/cthw20k1.c
sound/pci/ctxfi/cthw20k2.c