xbmc/xbmc — pull request #5731 by popcornmix (2014-11-15 17:36:58+00:00)
Title: [ResamplePi] Add support for formats that need shifting

This case is triggered by HiFiBerry's 24-bit format.
Requires updated firmware

Lots of reports around for this issue. E.g.
http://openelec.tv/forum/124-raspberry-pi/72837-hifiberry-dac-not-dac-stop-working
and reports of it being fixed:
http://forum.kodi.tv/showthread.php?tid=192380&pid=1836662#pid1836662

It basically implements this code block:
https://github.com/xbmc/xbmc/blob/master/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEResampleFFMPEG.cpp#L202-250
on the GPU side.