-
-
Notifications
You must be signed in to change notification settings - Fork 456
Linearize TX15 audio volume control #6555
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
base: main
Are you sure you want to change the base?
Conversation
|
Actually I much prefer it the way it currently is, where you have fine control when at home/night, and when in open air, you just crack it up. The current scale is actually linear in dB |
raphaelcoeffic
left a comment
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.
Since this change is highly related to a particular board using this driver, I would expect the lookup table to be located in the TX15 specific code and not in the generic TAS2505 driver, which might be used later by others as well.
Don't you mean logarithmic? As volume is almost universally adjusted in a logarithmic manner.
Which is exactly the reason it would be wrong... do you know of any mainstream appliances where the volume is altered in a linear rather than logarithmic fashion? I think not... they are specifically implemented so that the perceived change in audio (not dB) matches the movement of the knob / makes it, so the full range of the knob is useful. |
Yes, it's more like trying to achieve a db(a) characteristic that fits the human ear's perception of volume. Have you tried a before/after with the TX15? |
|
Previous radio (but X12S and possibly some Flysky, I do not know) use a audio routine that dates AVR time, where doing logarithm calculations was just a dream if you wanted to maintain performance, so volume is linear on those ( Line 658 in 6c1af5a
TX15 does add a dedicated audio amplifier with volume control, which logically applies a dB scale for volume control. So are they different ? Yes If anything, since we can do more calculation on F4 processors than AVR times, it is those older radio we should modify to have logarithmic volume control, not disable it on more performing radio |
26e43e1 to
78f4d81
Compare
|
@pfeerick Tested headphones and speaker ok after rebase to current master. Can you please decide if you want to merge or scrap this? |
|
Is there a way to get a community vote on this? I prefer the current logarithmic audio scale on the new TX15 compared to my old Zorro. I don't want to add yet another feature by suggesting we make the scale selectable (the GUI is cluttered enough). I figure those that want to assign volume to a slider and make it "just right" can use a curve. Granted, we don't have global curves, so it would have to be copied to each model or made into a Lua script. The problem is that if this were to get merged, would I lose the resolution of setting the lower volume? I can't fix that with a Lua script. |
No you wouldn't. Look at both tables (old vs new) and/or the graph. Both use the same range bit with different distribution. |
|
@pfeerick Please give it the boot if you don't like it but please make up your mind. |
I said resolution (step size), not limits. Perhaps this issue could hang for a while until more new owners chime in. |
Exactly the same resolution. 24 volume steps (including zero volume) |
Of course it's always 24 "steps". The point of this issue is what decibels each step should be at the upper vs lower end. Look, your concern is that something changed from what you are familiar with. My point is that the new divisions are better. We don't have a clear consensus on what the final curve should be unless we can get more feedback. It won't be decided between us two. |
I'm not arguing with you, just answering your questions. |
|
Btw, upper and lower level are the same too. Max volume is the same max volume as the current implementation, off is off in both too. |
Please set volume control to Special Function Volume, Source Pot S1 or S2 and observe volume for different Pot positions. Compared to the TX16s the TX15 volume control is very non linear compared to the TX16s. The TX16s has a nice linear volume output from Min (Off), Center (half volume), Max (max Volume). The TX15 has nearly no volume increase going from Min to Center with Center having just a little volume far from half volume. Nearly all the volume range takes place from center to Max.
Summary of changes: