lavfi: add types and functions for channel layout/samplerate negotiation