Sometimes the audio jack your are trying to input in could be defected inside.If it is working perfectly in windows 7 then you should try to install windows 8 again and check it again as some drivers would have been left during the installation.
If this doesn't help then try downloading latest drivers for your device.