-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial support for FlexHTx #664
Conversation
@jprouty since he also seems to own the flexht |
"device_c8x12v2", | ||
"device_m2x4", | ||
"device_flex", | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the newly added device_flex_ht
be listed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, added
protocol/src/device/probe.rs
Outdated
@@ -74,6 +76,10 @@ pub fn probe_kind(device_info: &DeviceInfo) -> DeviceKind { | |||
(2, 22) => M2x4, | |||
#[cfg(feature = "device_flex")] | |||
(27, 100) => Flex, | |||
|
|||
#[cfg(feature = "device_flex_ht")] | |||
(32, 113) => Flex, //get from `minidsp probe` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The HTx appears to share the same device id. I cannot think of a brief way to make that evident in the device name itself - however, would you mind adding a comment here (or somewhere) that device_flex_ht
also supports Flex HTx?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point, I actually have the HTx not the HT. I've updated the name to reflect
I think I'm making some progress on the codegen component as well: https://github.com/danielhstahl/minidsp-rs/blob/feature/add_flex_ht/protocol/src/device/flexhtx.rs. I'll PR that separately: #665 |
@danielhstahl Where did you end up getting on this? Did you run into blockers, or just run out of time/interest/energy? |
I couldn't get it to compile for ARM. The original action is broken. I ended up using the latest official release and just making calls to it: https://github.com/danielhstahl/minidsp-remote-control/blob/main/server/index.js#L65 Once Github starts supporting native ARM runners (currently in beta: https://github.blog/changelog/2024-06-03-actions-arm-based-linux-and-windows-runners-are-now-in-public-beta/) I'll revisit. |
@danielhstahl I made some tweaks to the build which worked for arm last time I tried it, you can see the changes in 3ll3d00d@e09b3f2 in case it helps |
@3ll3d00d it doesn't seem to work for me now: https://github.com/danielhstahl/minidsp-2/actions/runs/11535095677/job/32109809012, but I appreciate pointing me to your code. |
This is a small PR that adds HDMI and the Flex HT HWID and DSP version. This allows for minidsp-rs to recognize the Flex HT and switch inputs correctly. Similar approach to #566 (comment).
Long term, I'd like to add broader support but the XML from the Flex HT seems quite distinct from the other MiniDSP offerings and I'm not familiar enough with the "Input" "Output" architecture to update it in a way that still accommodates the other MiniDSP products. See https://github.com/danielhstahl/minidsp-rs/blob/feature/add_flex_ht/devtools/src/codegen/flexht/mod.rs for a first attempt.
I'd also like a way to retrieve the HDMI information which currently shows up in the Device Console:
![image](https://private-user-images.githubusercontent.com/6961410/340025756-6ef174af-d769-4d66-8866-03dc62bb641e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4OTU4MjQsIm5iZiI6MTczOTg5NTUyNCwicGF0aCI6Ii82OTYxNDEwLzM0MDAyNTc1Ni02ZWYxNzRhZi1kNzY5LTRkNjYtODg2Ni0wM2RjNjJiYjY0MWUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMThUMTYxODQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTljZmIzNzFmMzQxNjI5MzBmYWJiOTBmNzMwZjQ3NDJiMTk5ZDg3M2Y5NzFlZmQ3MDk0YTJkOWJlOGVlNTI1ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.e3HGEAvCdfN2qECNm_PRFI6gqvQhQMd7m3kD-kXx3CQ)
but verbose logging while connecting via the minidsp service does not show anything obvious beyond the input/output levels:
[131.972s] Recv: FloatData(FloatView { base: 330, data: [-131.29065, -129.73033, -120.0, -133.86212, -125.83957, -126.13447, -134.42488, -130.44986] })
[132.174s] Sent: [14, 03, 10, 08]
[132.178s] Sent: ReadFloats { addr: 310, len: 08 } (0x310 | 784) <>
[132.178s] Recv: [14, 03, 10, d5, 59, 03, c3, d5, 59, 03, c3, d5, 59, 03, c3, d5, 59, 03, c3, d5, 59, 03, c3, d5, 59, 03, c3, d5, 59, 03, c3, d5, 59, 03, c3]
[132.180s] Recv: FloatData(FloatView { base: 310, data: [-131.3509, -131.3509, -131.3509, -131.3509, -131.3509, -131.3509, -131.3509, -131.3509] })
[132.181s] Sent: [14, 03, 30, 08]
[132.182s] Sent: ReadFloats { addr: 330, len: 08 } (0x330 | 816) <>