Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: nicki419 on May 09, 2022, 05:23:08 AM

Title: iPod Classic 5th - 7th Gen - Change Clicker Speaker Frequency
Post by: nicki419 on May 09, 2022, 05:23:08 AM
Recently, I modded my iPod to replace the clicker speaker with a Taptic Engine. I noticed that the vibrations are far less noticeable in Rockbox than they are in the stock firmware. Rockbox therefore seems to handle the clicker speaker differently than the stock OS. I wanted to ask how to change the frequency of said speaker. The Taptic Engine has a resonating frequency of around 50hz, which I would like for maximum haptic feedback.
Any help is appreciated!
Title: Re: iPod Classic 5th - 7th Gen - Change Clicker Speaker Frequency
Post by: saratoga on May 09, 2022, 07:15:39 AM
See https://git.rockbox.org/cgit/rockbox.git/tree/firmware/target/arm/ipod/piezo.c

If you change the piezo you may need to experiment with how to best drive the new one.
Title: Re: iPod Classic 5th - 7th Gen - Change Clicker Speaker Frequency
Post by: nicki419 on May 09, 2022, 02:40:29 PM
See https://git.rockbox.org/cgit/rockbox.git/tree/firmware/target/arm/ipod/piezo.c

If you change the piezo you may need to experiment with how to best drive the new one.

Thank you for the answer! I'm unfortunately not too familiar with the rockbox source code and C, so could you please tell me what parts of the code I would have to change to start experimenting? Many thanks!
Title: Re: iPod Classic 5th - 7th Gen - Change Clicker Speaker Frequency
Post by: nicki419 on May 10, 2022, 10:55:29 AM
See https://git.rockbox.org/cgit/rockbox.git/tree/firmware/target/arm/ipod/piezo.c

If you change the piezo you may need to experiment with how to best drive the new one.

So, I tried modifying the file a little, but whatever I do, the contents of the resulting .rockbox build remain the same, as is the clicker speaker behavior. I really don't know what to do at this point...
Title: Re: iPod Classic 5th - 7th Gen - Change Clicker Speaker Frequency
Post by: saratoga on May 10, 2022, 04:19:03 PM
That is the clicker code for the 5th gen.  Where you testing a 5th gen build or something else? 
Title: Re: iPod Classic 5th - 7th Gen - Change Clicker Speaker Frequency
Post by: nicki419 on May 10, 2022, 04:38:27 PM
That is the clicker code for the 5th gen.  Where you testing a 5th gen build or something else?

I see, it makes sense that it does not work, then. I'm running a 7th gen. I thought the code was identical through gen 5 - 7.
Title: Re: iPod Classic 5th - 7th Gen - Change Clicker Speaker Frequency
Post by: saratoga on May 10, 2022, 09:13:59 PM
Here is the file for your device:  https://git.rockbox.org/cgit/rockbox.git/tree/firmware/target/arm/s5l8702/ipod6g/piezo-6g.c