spdif: Simplify get_pulse_type() a bit.