• Takashi Iwai's avatar
    ALSA: ctxfi: Fallback DMA mask to 32bit · c417aa54
    Takashi Iwai authored
    commit 15c75b09 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: 6d74b86d ("ALSA: ctxfi - Allow 64bit DMA")
    Signed-off-by: default avatarTakashi 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: default avatarBen Hutchings <ben@decadent.org.uk>
    c417aa54
cthw20k2.c 51.6 KB