- if device id is less than 0, use device 0