ALSA: ctxfi: Fallback DMA mask to 32bit
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Feb 2017 16:16:48 +0000 (17:16 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 5 Jun 2017 20:13:52 +0000 (21:13 +0100)
commitc417aa54e8d65ec48c0f703328a12d0655feafaa
treede828c233423eb61b690432158642dfdbedb0004
parent6192d8b51aa85f9947d2203ea02b4dccfd083ee7
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>
[bwh: Backported to 3.2:
 - Old code was using PCI DMA mask functions
 - Deleted error message was different]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/pci/ctxfi/cthw20k1.c
sound/pci/ctxfi/cthw20k2.c