summaryrefslogtreecommitdiff
path: root/libasound.c
diff options
context:
space:
mode:
Diffstat (limited to 'libasound.c')
-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;