-
Notifications
You must be signed in to change notification settings - Fork 73
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
uac c_srate/c_srare attribute suport for multiple samplerates #75
Comments
That sounds like a useful feature that we would accept patches for.
Unfortunately the project doesn't currently have people working on
feature requests and there aren't any people funded to work on the
project, so it could be some time until this is implemented, unless
you are interested in working on this yourself.
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
ok fair. I couldn't directly found an example of another scheme that is using arrays with regular values. So far I found:
struct usbg_f_uac2_attrs {
int c_chmask;
int c_srate[UAC_MAX_RATES]; # < modified
int c_ssize;
int p_chmask;
int p_srate[UAC_MAX_RATES]; # < modified
int p_ssize;
};
union usbg_f_uac2_attr_val {
int c_chmask;
int c_srate[UAC_MAX_RATES]; # < modified
int c_ssize;
int p_chmask;
int p_srate[UAC_MAX_RATES]; # < modified
int p_ssize;
}; Or is better to use a dynamic list here?
What else should be done? Thanks! |
I think this needs a bit more careful implementation because:
The library should build and work on older Linux kernel versions
and preferably work on newer versions when built on older versions
and vice versa, if those are possible.
The library should avoid changing ABI so that applications using
it do not need to be recompiled in order to continue working.
So, directly changing structures/functions should be avoided
and instead new structures/functions should be added.
Maybe the correct Linux kernel API to use should be auto-chosen at
runtime, or maybe the libusbgx functions should pass through failure
and expect the application using it to handle different versions?
Other than that, and my relative lack of experience with this library,
your proposed changes sound like the right way to go.
PS: since your GitHub account is a shared one, please ensure that your
commits correctly attribute the person doing the code changes, rather
than attributing the shared account. If there are multiple people
working on this, you can attribute them with Co-authored-by footers.
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since the 5.18+ kernel UAC supportes multiple samplerates. See u_audio.h.
Would it be possible to support this?
The text was updated successfully, but these errors were encountered: