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
@@ -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.