Hi Adamabetsoup,
Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your HP Pavilion dm4-3099se Notebook and sound not working after plugging in a surround sound. Shows me in the listing for your Logitech z-506 does not support the connection on the laptop headphone or mic.
Thanks.