[Linux1394-cvslog] rev 661 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <hog...@li...> - 2002-11-06 16:28:34
|
Author: hogsberg Date: 2002-11-06 11:28:26 -0500 (Wed, 06 Nov 2002) New Revision: 661 Modified: trunk/amdtp.c Log: Fix sloppy buffer action, set correct header bits for raw format Modified: trunk/amdtp.c ============================================================================== --- trunk/amdtp.c (original) +++ trunk/amdtp.c 2002-11-06 11:28:27.000000000 -0500 @@ -688,7 +688,7 @@ return get_iec958_header_bits(s, sub_frame, sample); case AMDTP_FORMAT_RAW: - return 0x40000000; + return 0x40; default: return 0; @@ -1109,7 +1109,7 @@ */ for (i = 0; i < count; i += length) { - p = buffer_put_bytes(s->input, count, &length); + p = buffer_put_bytes(s->input, count - i, &length); copy_from_user(p, buffer + i, length); if (s->input->length < s->input->size) continue; |