From 6e76663f37a91641bae1bad05512968cdbe53f10 Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Thu, 7 Jun 2018 17:44:23 +0200 Subject: Added log for card lookup diagnostic Signed-off-by: Thierry Bultel --- plugins/alsa/alsa-utils-bypath.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/alsa/alsa-utils-bypath.c') diff --git a/plugins/alsa/alsa-utils-bypath.c b/plugins/alsa/alsa-utils-bypath.c index 30e528f..f950129 100644 --- a/plugins/alsa/alsa-utils-bypath.c +++ b/plugins/alsa/alsa-utils-bypath.c @@ -97,8 +97,11 @@ PUBLIC snd_ctl_t *AlsaByPathOpenCtl(SoftMixerT *mixer, const char *uid, AlsaSndC // get card info from /dev/snd/xxx if not use hw:x,x,x snd_ctl_card_info_t *cardInfo = NULL; - if (dev->cid.devpath) cardInfo = AlsaByPathInfo(mixer, dev->cid.devpath); - else if (dev->cid.cardid) cardInfo = AlsaCtlGetInfo(mixer, dev->cid.cardid); + + if (dev->cid.devpath) + cardInfo = AlsaByPathInfo(mixer, dev->cid.devpath); + else if (dev->cid.cardid) + cardInfo = AlsaCtlGetInfo(mixer, dev->cid.cardid); if (!cardInfo) { AFB_ApiError(mixer->api, "AlsaByPathOpenCtl: uid=%s fail to find sndcard by path=%s id=%s", uid, dev->cid.devpath, dev->cid.cardid); -- cgit 1.2.3-korg