Auto detect the current card configuration where the dmac argument is the device number or -1 for all.