docs(twitter): add 2072194202851549432 corpus (NOTimothyLottes ALSA audio with custom struct aliasing)

2-post thread, 1 PNG, 7 likes, 1015 views. Got ALSA functioning without
SNDRV_PCM_IOCTL_HW_REFINE, only with SNDRV_PCM_IOHW_PARAMS. Custom
struct layouts aliased to ALSA's (snd_interval.interger -> .flag=4);
setting the core values is enough for the driver. Doesn't need to
set {.flags, .rmask, .info} but must set '.max=~0' for intervals not
hardcoded. Only double-buffered 48000Hz stereo, varies frames/period
sizing. Same pattern as the bind-everything-once aliasing: write
custom struct, alias to what the API expects, set only the core
fields you control. 'Minimal ABI surface' approach.
This commit is contained in:
ed
2026-08-01 15:19:51 -04:00
parent a2fb9bb507
commit 8c93fba658
33 changed files with 65 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 367 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

@@ -0,0 +1,25 @@
---
title: "Did manage to get ALSA to function without SNDRV_PCM_IOCTL_HW_REFINE and only wi"
author: "NOTimothyLottes"
handle: "@NOTimothyLottes"
post_url: "https://x.com/NOTimothyLottes/status/2072194202851549432"
post_id: "2072194202851549432"
timestamp: "2026-07-01 05:42:52"
post_count: 2
reply_count: 1
repost_count: 0
like_count: 7
view_count: 1015
---
# @NOTimothyLottes — Did manage to get ALSA to function without SNDRV_PCM_IOCTL_HW_REFINE and only wi
## Post 1 (2026-07-01 05:42:52)
Did manage to get ALSA to function without SNDRV_PCM_IOCTL_HW_REFINE and only with SNDRV_PCM_IOCTL_HW_PARAMS. My structures are different but aliased (snd_interval.interger -> .flag=4). Apparently setting the core values is enough for the driver.
![Media 1](./media/2072194202851549432_1.png)
## Post 2 (2026-07-01 05:48:30) — reply to Post 1
Don't actually have to set {.flags,.rmask,.info} on my machine. Absolutely do have to set ".max=~0" for the intervals not being hardcoded. I only do double buffered, 48000Hz stereo, and just vary the frames/period sizing.
@@ -0,0 +1,40 @@
{
"root_post_id": "2072194202851549432",
"posts": [
{
"post_id": "2072194202851549432",
"author": "NOTimothyLottes",
"handle": "NOTimothyLottes",
"text": "Did manage to get ALSA to function without SNDRV_PCM_IOCTL_HW_REFINE and only with SNDRV_PCM_IOCTL_HW_PARAMS. My structures are different but aliased (snd_interval.interger -> .flag=4). Apparently setting the core values is enough for the driver.",
"timestamp": "2026-07-01 05:42:52",
"media_urls": [
"https://pbs.twimg.com/media/HMHoiZAWcAAjn6j?format=png&name=orig"
],
"reply_to_id": null,
"quote_of_id": null,
"metrics": {
"reply_count": 1,
"repost_count": 0,
"like_count": 7,
"view_count": 1015
}
},
{
"post_id": "2072195623265178013",
"author": "NOTimothyLottes",
"handle": "NOTimothyLottes",
"text": "Don't actually have to set {.flags,.rmask,.info} on my machine. Absolutely do have to set \".max=~0\" for the intervals not being hardcoded. I only do double buffered, 48000Hz stereo, and just vary the frames/period sizing.",
"timestamp": "2026-07-01 05:48:30",
"media_urls": [],
"reply_to_id": "2072194202851549432",
"quote_of_id": null,
"metrics": {
"reply_count": 0,
"repost_count": 0,
"like_count": 1,
"view_count": 464
}
}
],
"source_url": "https://x.com/NOTimothyLottes/status/2072194202851549432"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 KiB