diff --git a/v4l2/V4L2Decoder.cpp b/v4l2/V4L2Decoder.cpp index d0d862df6aff36de5969e60bc69f05422d1e63f7..467b0dd4b0679b0263efbda892ccac696ebf35b4 100644 --- a/v4l2/V4L2Decoder.cpp +++ b/v4l2/V4L2Decoder.cpp @@ -199,7 +199,10 @@ bool V4L2Decoder::setupInputFormat(const uint32_t inputPixelFormat, const size_t } // Setup the input format. - auto format = mInputQueue->setFormat(inputPixelFormat, ui::Size(), inputBufferSize, 0); + // HACK: By default, the wave5 driver picks up the maximum available resolution + // [ 1047.307387][ T3573] wave5_update_pix_fmt 8192x4320 sizeimage: 53084160 + // This cannot be allocated in the kernel, so hard-code a 1080p size instead. + auto format = mInputQueue->setFormat(inputPixelFormat, ui::Size(1920, 1080), inputBufferSize, 0); if (!format) { ALOGE("Failed to call IOCTL to set input format."); return false;