Description of problem: Playing any sound and having the volume above 60-65% results in a clipping sound. The more you raise the volume, the more audible is the clipping. Sound card is intel alc662 and I use snd_intel_hda driver. Pulseaudio is enabled. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Set volume at a high level 2. Play any sound(e.g mp3,flash video) 3.
CC: (none) => dtsiamasiotis
Thanks for the bug report :) Can you please attach the output of the following commands: pacmd ls and amixer -c0 Please run those commands while playing some audio in which you can hear the clipping. Then just copy/paste the output into a file and attach it here. Many thanks.
Keywords: (none) => Triaged
Status: NEW => ASSIGNED
Created attachment 2372 [details] pacmd ls command
Created attachment 2373 [details] amixer -c0 command
Hiya, Thanks for providing this information. Interestingly it looks as if things are setup mostly OK. What is slightly odd however is that the underlying ASLA volume is set to -6dB while the requested volume is only -1.39dB. This would indicate that ALSA is attenuating more than we would like and thus we have to amplify slightly in software. While this could result in some loss of quality, especially at such high volumes, I wouldn't have expected it to result in too much clipping - can't rule it out tho'. Can you do the exactly same setup (ideally inspecting the outputs again while recreating the test conditions to ensure that the pacmd ls shows -1.39dB (just search for it in the attachment to see where you should look!) and that amixer output shows -6dB (ditto)) and also run: "pacmd dump-volumes"? This shows a bit more detailed debug about the volumes we have to use to get the correct end result. If this result doesn't show anything useful, I'd have to suspect that the dB information provided by the h/w is just incorrect (this is semi-common). I have a tool that can help you measure this and can create a config file that you can use in PA to test an updated map table before we bundle up the data and send it upstream to ALSA. But we can go into more detail about that when the time comes. /me wonders if he can find his 'Paradise Lost' t-shirt from his metal days :p
Unfortunately I can't reproduce the same output. Pacmd ls shows -1.43dB and that's the closest to -1.39 I can get while amixer -c0 shows -1.00dB. The difference is much smaller now but the clipping remains the same
Created attachment 2417 [details] pacmd dump-volumes
Hello. I tried a solution I found in a forum. I created the file /etc/modprobe.d/alsa-base.conf and added the line "options snd-hda-intel model=generic". That solved my problem. The volume is now at 100% and I hear no clipping.
Keywords: (none) => PATCH
Thanks for reporting - I forgot to close the bug at the time, but feel free to do so yourself when you find a solution :)
Status: ASSIGNED => RESOLVEDResolution: (none) => FIXED