Commit 5680686f authored by Tristan Matthews's avatar Tristan Matthews
Browse files

alsa: log error message if snd_ctl_pcm_info fails

parent 721a9d4c
......@@ -602,8 +602,9 @@ AlsaLayer::getAudioDeviceIndexMap(bool getCapture) const
snd_pcm_info_set_device(pcminfo , 0);
snd_pcm_info_set_stream(pcminfo, getCapture ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK);
if (snd_ctl_pcm_info(handle ,pcminfo) < 0) {
DEBUG(" Cannot get info");
int err;
if ((err = snd_ctl_pcm_info(handle ,pcminfo)) < 0) {
WARN("Cannot get info: %s", snd_strerror(err));
} else {
DEBUG("card %i : %s [%s]",
numCard,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment