Though all this might be needed and maybe even OK for the built in speakers
it's probably worth it to review and rework the sw-side audio chain when using headset connector, particularly when using it for 0dB line-out to any home-stereo or even professional equipment. Alas it's not possible to auto-detect whether headphones or a 3.5mm->2*cinch Line-In cable is connected, so any such adjustment has to happen by triggering it from a sort of GUI.
For first experiments it might be worth it to completely shut down PulseAudio and use the plain ALSA for audio output. CAVEAT: this scenario is known to potentially blow your speakers in N900. PS: I don't think the class-D amp by itself is that bad. Cheers jOERG