cmdutils: dont call read_header before listing devices

List device callback must be able to return valid list without opening device.
This callback should return input values for open function, not vice-versa.
Read header funtion is very likey to fail without proper configuration provided.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
lavd/alsa-audio-common: dont crash while closing not opened device

snd_pcm_close() doesn't handle NULL correctly.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
lavu/log: add helper macros to test device type

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
lavd/opengl_enc: implement query capabilities API

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
lavd/pulse_audio: move pulse_map_channels_to_pulse to common code

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
lavd/pulse_audio_common: refactor ff_codec_id_to_pulse_format

This commit provides also mapping between AVSampleFormat type.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
lavd/pulse_audio: implement query capabilities API

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
cmdutils: allow query capabilities