summaryrefslogtreecommitdiff
path: root/libasound.c
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-30 15:50:53 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-30 15:50:53 +0200
commit859a0349f1afd45010c0f619521bd35cf1d84f0f (patch)
treea3cce5a9f55289dbb7a6b2f818781744087b4946 /libasound.c
parent42ab41c31deace27a90e07f7001d74b1736e5d76 (diff)
log the formats requested
Diffstat (limited to 'libasound.c')
-rw-r--r--libasound.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libasound.c b/libasound.c
index 536d764..be67601 100644
--- a/libasound.c
+++ b/libasound.c
@@ -359,70 +359,84 @@ pcm_format(const snd_pcm_format_t format, struct sio_par *par)
case SND_PCM_FORMAT_U8:
par->bits = 8;
par->sig = 0;
+ WARNX1("SND_PCM_FORMAT_U8");
break;
case SND_PCM_FORMAT_S8:
par->bits = 8;
par->sig = 1;
+ WARNX1("SND_PCM_FORMAT_S8");
break;
case SND_PCM_FORMAT_S16_LE:
par->bits = 16;
par->sig = 1;
par->le = 1;
+ WARNX1("SND_PCM_FORMAT_S16_LE");
break;
case SND_PCM_FORMAT_S16_BE:
par->bits = 16;
par->sig = 1;
par->le = 0;
+ WARNX1("SND_PCM_FORMAT_S16_BE");
break;
case SND_PCM_FORMAT_U16_LE:
par->bits = 16;
par->sig = 0;
par->le = 1;
+ WARNX1("SND_PCM_FORMAT_U16_LE");
break;
case SND_PCM_FORMAT_U16_BE:
par->bits = 16;
par->sig = 0;
par->le = 0;
+ WARNX1("SND_PCM_FORMAT_U16_BE");
break;
case SND_PCM_FORMAT_S24_LE:
par->bits = 24;
par->sig = 1;
par->le = 1;
+ WARNX1("SND_PCM_FORMAT_S24_LE");
break;
case SND_PCM_FORMAT_S24_BE:
par->bits = 24;
par->sig = 1;
par->le = 0;
+ WARNX1("SND_PCM_FORMAT_S24_BE");
break;
case SND_PCM_FORMAT_U24_LE:
par->bits = 24;
par->sig = 0;
par->le = 1;
+ WARNX1("SND_PCM_FORMAT_U24_LE");
break;
case SND_PCM_FORMAT_U24_BE:
par->bits = 24;
par->sig = 0;
par->le = 0;
+ WARNX1("SND_PCM_FORMAT_U24_BE");
break;
case SND_PCM_FORMAT_S32_LE:
par->bits = 32;
par->sig = 1;
par->le = 1;
+ WARNX1("SND_PCM_FORMAT_S32_LE");
break;
case SND_PCM_FORMAT_S32_BE:
par->bits = 32;
par->sig = 1;
par->le = 0;
+ WARNX1("SND_PCM_FORMAT_S32_BE");
break;
case SND_PCM_FORMAT_U32_LE:
par->bits = 32;
par->sig = 0;
par->le = 1;
+ WARNX1("SND_PCM_FORMAT_U32_LE");
break;
case SND_PCM_FORMAT_U32_BE:
par->bits = 32;
par->sig = 0;
par->le = 0;
+ WARNX1("SND_PCM_FORMAT_U32_BE");
break;
default:
WARNX("unsupported format: 0x%x", format);