From d79d2f69fb617b3c450661f6a1f92bedb818ff42 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 24 Nov 2021 17:25:59 +0100 Subject: [PATCH] alsa: improve debug Log the configured default_format. --- spa/plugins/alsa/alsa-pcm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spa/plugins/alsa/alsa-pcm.c b/spa/plugins/alsa/alsa-pcm.c index 34c515712..b093b3bee 100644 --- a/spa/plugins/alsa/alsa-pcm.c +++ b/spa/plugins/alsa/alsa-pcm.c @@ -633,8 +633,8 @@ static int enum_pcm_formats(struct state *state, uint32_t index, uint32_t *next, offs += r; } } - spa_log_warn(state->log, "%s: unsupported card: formats:%s", - state->props.device, buf); + spa_log_warn(state->log, "%s: no format found (def:%d) formats:%s", + state->props.device, state->default_format, buf); for (i = 0, offs = 0; i <= SND_PCM_ACCESS_LAST; i++) { if (snd_pcm_access_mask_test(amask, (snd_pcm_access_t)i)) { @@ -645,8 +645,7 @@ static int enum_pcm_formats(struct state *state, uint32_t index, uint32_t *next, offs += r; } } - spa_log_warn(state->log, "%s: unsupported card: access:%s", - state->props.device, buf); + spa_log_warn(state->log, "%s: access:%s", state->props.device, buf); return -ENOTSUP; } if (j > 1)