rockbox icon indicating copy to clipboard operation
rockbox copied to clipboard

X3: Volume level for both jack sockets independently

Open kokosowy opened this issue 9 years ago • 3 comments

Hi!

First of all thank you so much for making Rockbox available for xduoo x3! I really appreciate it.

As we know X3 has two jack output sockets, for headphones and line-out. Original software keeps volume information for both sockets independently, when you use headphone socket you get last used volume level for headphones and for line-out you get simply 100 volume level.

Current version of Rockbox use the same volume value for both, which can be pretty painful - being in a car I use line-out with 100% volume level but then when I switch to headphone socket I can forget that last used volume level is 100% and them my ears start bleeding from that loudness. This is pretty dangerous.

Do you think you could make Rockbox remembering last headphone volume level and switch to that value once jack plug is inserted back to headphone socket, and for line-out socket is it possible to fix a value with 100%?

Thank you once again and kind regards, K

kokosowy avatar Apr 28 '16 13:04 kokosowy

  • 1

The line out should have 100% volume with no volume limit, and jack output should be limited according to user setting.

The tricky part is to cleverly detect which cable is plugged, and the headphone jack should have precedence in order to avoid 100% volume on headphone jack at all costs.

Currently it's a pain to have to disable volume limit, set volume to 100% manually when using line out, and having to do things the other way around when switching back.

elouet avatar Sep 06 '16 08:09 elouet

I've been looking at this today and can't really progress because I'm missing the block diagram of the device. The source code seems to point at GPIO 44 as the line out detect, but on my device plugging/unplugging the line out connector triggers the same results as the headphone jack. Not sure how this is implemented in the original firmware. Anyone cared to ask XDuoo for the kernel source code (if they use Linux then it's an obligation for them to release source code and build tools) ?

elouet avatar Sep 07 '16 08:09 elouet

Thanks for looking at this.. Personally I don't have a contact to any of developers.. This is first place I went with this.

Also I think equalizer settings should stick to the phones output, but for the line output equalizer and other additional parameters should be reset to zero. What do you think?

kokosowy avatar Sep 19 '16 14:09 kokosowy