summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-08-29 23:48:08 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-08-29 23:48:08 +0000
commitfcba092e96541bfca5d910c8aca1b2e31336bbbe (patch)
tree7d30224c0e6e8811a8a208f0c28582c18f4b4e7e /audio
parentf803f3511095e17811c50ebc85971ddd40c55618 (diff)
Use a bitpool range as default
Diffstat (limited to 'audio')
-rw-r--r--audio/unix.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/unix.c b/audio/unix.c
index 3b9d6d46..ca59e5ab 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -533,8 +533,11 @@ static int cfg_to_caps(struct ipc_data_cfg *cfg, struct sbc_codec_cap *sbc_cap)
return -EINVAL;
else if (sbc->bitpool > 0)
sbc_cap->min_bitpool = sbc_cap->max_bitpool = sbc->bitpool;
- else
- sbc_cap->min_bitpool = sbc_cap->max_bitpool = 53;
+ else {
+ sbc->bitpool = 53;
+ sbc_cap->min_bitpool = 2;
+ sbc_cap->max_bitpool = sbc->bitpool;
+ }
return 0;
}