Skip to content
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

mxl58x improve rfsource to select any combination of modulator/inputs #222

Open
wants to merge 1 commit into
base: latest
Choose a base branch
from

Conversation

malakudi
Copy link

@malakudi malakudi commented Dec 14, 2020

With this patch we can use rfsource mxl58x module parameter to configure any arbitrary configuration of demods/inputs. We might want 7 demods to input 3 and 1 to input 2, or 5 to input 0, 2 to input 1 and 1 to input 2. All these setups can now be configured.

We use two bits to select input for each demod. demod 0 uses the two less significant bits and demod 7 the two most significant bits of a 16bit value.
Value of 1455 (binary 0000010110101111) is the same as default without using rfsource.
Example usage:
a. 0-6 demods to input 3, 7th demod to input 2
1011111111111111 => 49151
b. 0-4 demods to input 0, 5-6 demods to input 1, 7th demod to input 2
1001010000000000 => 37888
This has been tested in production and works well.

Only issue is that you can not reconfigure on the fly, you need to unload and reload modules with new value.

@malakudi
Copy link
Author

To setup all demods to input 0 you have to use value 65536 because 0 does nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant