9front - general discussion about 9front
 help / color / mirror / Atom feed
From: akw@oneirism.org
To: 9front@9front.org
Subject: [9front] [PATCH] nusb/ptp: increase payload
Date: Wed, 29 Jun 2022 18:58:01 -0700	[thread overview]
Message-ID: <7D988048F85DBE9613671D3029F9D7CB@oneirism.org> (raw)

A silly little patch, but some ptp devices (like the camera I own) use USB3 endpoints and subsequently require the data size of the payload to be 1024(-12 for metadata). This is reflected in libgphoto2's current ptp driver.

diff e6d31c1715cc50bd3d9a0301a41647295f739071 uncommitted
--- a/sys/src/cmd/nusb/ptp/ptp.c
+++ b/sys/src/cmd/nusb/ptp/ptp.c
@@ -45,7 +45,7 @@
 	uchar	type[2];
 	uchar	code[2];
 	uchar	transid[4];
-	uchar	d[500];
+	uchar	d[1012];
 struct Node

             reply	other threads:[~2022-06-30  2:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-30  1:58 akw [this message]
2022-06-30  4:54 ` ori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7D988048F85DBE9613671D3029F9D7CB@oneirism.org \
    --to=akw@oneirism.org \
    --cc=9front@9front.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).