bluetooth-device: fix rounding errors caused by few bt volume steps
authorJuho Hämäläinen <juho.hamalainen@tieto.com>
Mon, 4 Apr 2011 12:24:17 +0000 (15:24 +0300)
committerColin Guthrie <colin@mageia.org>
Tue, 5 Apr 2011 10:24:12 +0000 (11:24 +0100)
commitaaab340d4e3c57d58755151310f59a0ee96554b1
treef80ec7fb21e3bd8eabd4e6e2a05d383837d0ef8a
parent1bbafdbb0ac9fc36b679e899958344a9478fd4fa
bluetooth-device: fix rounding errors caused by few bt volume steps

When volume changes in bluetooth device PulseAudio volume is rounded
one too low, so if bluetooth headset changes volume and that volume
is immediately set again for bluetooth device, bluetooth step drifts
lower all the time. Volume is incremented by one in the conversion so
that we get right bluetooth step when re-applying volume.

Signed-off-by: Juho Hämäläinen <ext-juho.hamalainen@nokia.com>
src/modules/bluetooth/module-bluetooth-device.c