diff options
-rw-r--r-- | audio/unix.c | 7 |
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; } |