summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-29 01:11:52 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-29 01:11:52 +0200
commit34efbe0c782e70f90dfbf372badd48282f8b4e53 (patch)
treec7533574566c53b9bb5b3209b5d941950c92c3d3
parentc4d89540574dfb6a7418ed8cdd34e3cb2df585e7 (diff)
fix snd_pcm_hw_params_get_channels_max
-rw-r--r--libasound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libasound.c b/libasound.c
index 9a63c6b..d234feb 100644
--- a/libasound.c
+++ b/libasound.c
@@ -548,7 +548,7 @@ int
snd_pcm_hw_params_get_channels_max(const snd_pcm_hw_params_t *params, unsigned int *val)
{
// FIXME: need to store stream info in params
- unsigned int max = (unsigned int)~0;
+ unsigned int max = 0;
for (int i = 0; i < SIO_NCHAN; ++i) {
if (!(params->cap.confs[0].pchan & (1 << i)))
continue;