Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ecff8c9 authored by Stefan Ringel's avatar Stefan Ringel Committed by Mauro Carvalho Chehab
Browse files

[media] tm6000: all audio packets must swab

parent f2e18dc1
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -344,17 +344,14 @@ static int copy_streams(u8 *data, unsigned long len,
				if (vbuf)
					memcpy(&voutp[pos], ptr, cpysize);
				break;
			case TM6000_URB_MSG_AUDIO:
				/* Need some code to copy audio buffer */
				if (dev->fourcc == V4L2_PIX_FMT_YUYV) {
					/* Swap word bytes */
			case TM6000_URB_MSG_AUDIO: {
				int i;

				for (i = 0; i < cpysize; i += 2)
					swab16s((u16 *)(ptr + i));
				}

				tm6000_call_fillbuf(dev, TM6000_AUDIO, ptr, cpysize);
				break;
			}
			case TM6000_URB_MSG_VBI:
				/* Need some code to copy vbi buffer */
				break;