drm: bridge/dw_hdmi-ahb-audio: allow larger buffer sizes
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 4 Jun 2015 09:24:33 +0000 (10:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 9 Oct 2015 16:17:30 +0000 (17:17 +0100)
commit91cd69088ecc375d057eb3721bfbcf927e9f2dd2
tree025ff1e5c8fa46c8c005490aaa1d4edb01bc00c2
parent9dc515f8dfc8c2b5d4e8355933e6ac71abeb7b1e
drm: bridge/dw_hdmi-ahb-audio: allow larger buffer sizes

With multichannel audio, we need to allow larger buffer sizes to avoid
XRUNs during playback.  Push the buffer size up to 1024K, but as we
maintain two buffers, ensure that the vmalloc buffer does not exceed
the userspace buffer size.

Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c