• Takashi Iwai's avatar
    ALSA: ctxfi: Fallback DMA mask to 32bit · 750db9f5
    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.16:
     - Old code was using PCI DMA mask functions
     - Deleted error message was different]
    Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
    750db9f5
cthw20k2.c 51.6 KB