From: Arne Meyer <meyer.arne83@netcologne.de>
To: 9front@9front.org
Subject: Re: [9front] [patch] nusb/audio /dev entries fix v2
Date: Sat, 30 Dec 2023 14:25:52 +0100 (CET) [thread overview]
Message-ID: <1205869324.3776394.1703942752276@comcenter.netcologne.de> (raw)
In-Reply-To: <C9B951B6DE99359B120C0CA036CDE49B@felloff.net>
[-- Attachment #1: Type: text/plain, Size: 175 bytes --]
> so here you go:
>
> http://felloff.net/usr/cinap_lenrek/mixfs.diff
>
Very nice. Works for me.
Here is the new patch that uses format strings in devctl.
Greetings,
Arne
[-- Attachment #2: nusbaudio.patch --]
[-- Type: application/octet-stream, Size: 796 bytes --]
diff 34e7b54c139826b55713702910a1280e6651df60 uncommitted
--- a/sys/src/cmd/nusb/audio/audio.c
+++ b/sys/src/cmd/nusb/audio/audio.c
@@ -395,9 +395,9 @@
devctl(d, "sampledelay %d", audiodelay);
devctl(d, "hz %d", speed);
if(e->dir==Ein)
- devctl(d, "name audioin");
+ devctl(d, "name audioinU%s", audiodev->hname);
else
- devctl(d, "name audio");
+ devctl(d, "name audioU%s", audiodev->hname);
return d;
}
@@ -549,7 +549,8 @@
sysfatal("no output stream found");
fs.tree = alloctree(user, "usb", DMDIR|0555, nil);
- createfile(fs.tree->root, "volume", user, 0666, nil);
+ snprint(buf, sizeof buf, "volumeU%s", audiodev->hname);
+ createfile(fs.tree->root, buf, user, 0666, nil);
snprint(buf, sizeof buf, "%d.audio", audiodev->id);
postsharesrv(&fs, nil, "usb", buf);
next prev parent reply other threads:[~2023-12-30 13:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-29 16:00 Arne Meyer
2023-12-29 17:10 ` cinap_lenrek
2023-12-29 17:34 ` Arne Meyer
2023-12-29 21:54 ` cinap_lenrek
2023-12-30 1:53 ` hiro
2023-12-30 13:25 ` Arne Meyer [this message]
2024-01-06 16:04 ` Arne Meyer
2024-01-06 19:43 ` cinap_lenrek
2024-01-06 20:41 ` Arne Meyer
2024-01-06 19:58 ` cinap_lenrek
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1205869324.3776394.1703942752276@comcenter.netcologne.de \
--to=meyer.arne83@netcologne.de \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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).