HACK: perf: build: Fix build faiure

pr_err and pr_debug were not defined in those.
CHROMIUM: dmaengine: pl330: Set residue in tx_status callback.

CHROMIUM: dmaengine: pl330: Set residue in tx_status callback.

Fill txstate.residue with the amount of bytes remaining in the current
transfer if the transfer is not complete.  This will be of particular
use to i2s DMA transfers, providing more accurate hw_ptr values to ASoC.

BUG=chrome-os-partner:12778
TEST='aplay -B10000 <filename>' should be smooth.

Change-Id: I06f49c7193ab127db135678ad8a58c3d0801f7cc
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/30613
Reviewed-by: Olof Johansson <olofj@chromium.org>
CHROMIUM: dmaengine: pl330: lock work_list in set residue.

This list can be changed due to cancelation or a completed transfer
while the set residue function is iterating over it.

BUG=chrome-os-partner:12565
TEST=aplay -B20000 file.wav, should be clear, run multimedia test from
vendor.

Change-Id: Idad680f9418734396daefa308b92337f4570349b
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/32405
Reviewed-by: Olof Johansson <olofj@chromium.org>
CHROMIUM: DMA: PL330: Report residue for dev to mem transfers.

When setting the residue, account for device to memory transfers.  Do
this by checking both the source and destination addresses against the
active descriptors.  For memory to device the source address will be
incrementing, for device to memory the destination will increment and
for memory to memory both will increment.

BUG=chrome-os-partner:12776
TEST=enter hangout, ask if other end can hear you clearly.
'arecord -B10000 -f data /tmp/asdf.wav' then playback.

Change-Id: I4debd2e8b6ea1c2c9842e692016e83d7c852de91
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/33922
Reviewed-by: Olof Johansson <olofj@chromium.org>
(cherry picked from commit 1e5e752548aca1070eb9ca6e2a9019d136489a68)
Reviewed-on: https://gerrit.chromium.org/gerrit/34398
dma: pl330: fixup dma residue calculus and enable residue operation
(BURST)