Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Option to replace hardware volume control with software volume control
« previous next »
  • Print
Pages: [1]

Author Topic: Option to replace hardware volume control with software volume control  (Read 2391 times)

Offline LEDavid90

  • Member
  • *
  • Posts: 3
Option to replace hardware volume control with software volume control
« on: June 07, 2013, 12:46:25 AM »
Dear Rockbox Developers,

thank you very much for your great work! Please don't misunderstand me, it's just an "idea" if any programmer might consider it interesting (unfortunately I'm not able to handle source code):

When playing .ogg files in Rockbox with my Sansa Fuze V2, changing the volume (especially at higher values) causes some kind of "clicking noise" (this also happens with .mp3 files, but to a lower extent).
By contrast, using the equalizer precut (which I asume to be software controlled) does not effect this noise.

So far I can use a workaround, setting the EQ precut as left and right quick screen item, however if it were not too complicated and someone able to do this could create a patch which (optionally) replaces hardware volume control by software volume control, this would be great.  ;)

However I don't know how important this problem is for the developers (and on how many other devices it appears).


David
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Option to replace hardware volume control with software volume control
« Reply #1 on: June 07, 2013, 10:36:29 AM »
There shouldn't be a clicking noise, and I've never noticed one on the Sandisk players before.  The devices have hardware that is supposed to suppress any noise on gain change.  Not sure why it wouldn't be working for you.  Does it happen in the sandisk firmware?

We do actually have the ability to implement volume control in software.  Its controlled by the define "HAVE_SW_VOLUME_CONTROL".  However, if you just turn it on in a device that has hardware volume control I suspect a lot of things will break. 

Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 425
  • Boris Gjenero
    • My Blog
Re: Option to replace hardware volume control with software volume control
« Reply #2 on: June 07, 2013, 12:08:40 PM »
Noise might come from I2C communication with the codec chip.

If your headphones have a volume control, what happens if you turn that down and turn up device volume? If you have no volume control on headphones and no inline volume control on a separate cord, what happens with different headphones? Some kinds of noise are only noticeable on low impedance high efficiency headphones.
Logged

Offline LEDavid90

  • Member
  • *
  • Posts: 3
Re: Option to replace hardware volume control with software volume control
« Reply #3 on: June 07, 2013, 03:08:48 PM »
Thanks a lot for your replies! In fact that problem does only appear when using headphones (two cheap in-ears from Sennheiser and an also rather cheap headphone called "KOSS Porta Pro"), whereas connecting my Sansa Fuze to my stereo system, I could not notice this clicking noise. So it seems to be an impedance issue.

Which is also interesting for me: Every third step of volume change this noise does not appear.

And according to what you, saratoga, wrote, it is not as simple to replace standard volume control by software volume control as I supposed. What did you mean by "a lot of things will break" (by just activating "HAVE_SW_VOLUME_CONTROL")? Would this also affect the hardware, or would it be possible (and sufficient to solve possible problems) to restore a backup of the previously installed Rockbox configuration?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Option to replace hardware volume control with software volume control
« Reply #4 on: June 07, 2013, 03:16:12 PM »
Quote from: LEDavid90 on June 07, 2013, 03:08:48 PM
Which is also interesting for me: Every third step of volume change this noise does not appear.

Every third volume change is ignored since the Fuze only has 1.5 dB gain resolution on the amplifier.

Quote from: LEDavid90 on June 07, 2013, 03:08:48 PM
What did you mean by "a lot of things will break" (by just activating "HAVE_SW_VOLUME_CONTROL")?

You'll probably have to fix the code or it won't compile. 
« Last Edit: June 07, 2013, 03:43:12 PM by saratoga »
Logged

Offline LEDavid90

  • Member
  • *
  • Posts: 3
Re: Option to replace hardware volume control with software volume control
« Reply #5 on: June 07, 2013, 03:28:56 PM »
Quote from: saratoga on June 07, 2013, 03:16:12 PM
Every third volume change is ignored since the Fuze only has 1.5 dB gain resolution on the amplifier.

Ah, that makes it clear for me! Thanks for this helpful background information.


Quote from: saratoga on June 07, 2013, 03:16:12 PM
You'll probably have to fix the code or it won't compile.

So it wouldn't even be applicable with only the change mentioned before. OK, then I would have to become more familiar with programming in C, I guess.  :-\


As I just noticed, this noise only did not appear using my stereo system because I had turned off the equalizer before testing it. With EQ activated, applying a bit of bass boost, this noise was reproducable with my stereo system as well, whereas it did not appear using the headphones without EQ.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Option to replace hardware volume control with software volume control
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.075 seconds with 15 queries.