Bug 6075 - Clipping sound when volume is above 60%-65%
Summary: Clipping sound when volume is above 60%-65%
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords: PATCH, Triaged
Depends on:
Blocks:
 
Reported: 2012-05-24 22:46 CEST by Dimitris Tsiamasiotis
Modified: 2013-06-14 00:57 CEST (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
pacmd ls command (24.83 KB, text/plain)
2012-05-25 15:12 CEST, Dimitris Tsiamasiotis
Details
amixer -c0 command (3.74 KB, text/plain)
2012-05-25 15:12 CEST, Dimitris Tsiamasiotis
Details
pacmd dump-volumes (599 bytes, text/plain)
2012-06-03 20:36 CEST, Dimitris Tsiamasiotis
Details

Description Dimitris Tsiamasiotis 2012-05-24 22:46:23 CEST
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.
Dimitris Tsiamasiotis 2012-05-24 22:46:31 CEST

CC: (none) => dtsiamasiotis

Comment 1 Colin Guthrie 2012-05-24 23:42:38 CEST
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

Colin Guthrie 2012-05-24 23:42:48 CEST

Status: NEW => ASSIGNED

Comment 2 Dimitris Tsiamasiotis 2012-05-25 15:12:09 CEST
Created attachment 2372 [details]
pacmd ls command
Comment 3 Dimitris Tsiamasiotis 2012-05-25 15:12:40 CEST
Created attachment 2373 [details]
amixer -c0 command
Comment 4 Colin Guthrie 2012-05-25 16:09:26 CEST
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
Comment 5 Dimitris Tsiamasiotis 2012-05-26 01:31:51 CEST
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
Comment 6 Dimitris Tsiamasiotis 2012-06-03 20:36:16 CEST
Created attachment 2417 [details]
pacmd dump-volumes
Comment 7 Dimitris Tsiamasiotis 2012-08-14 23:18:23 CEST
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.
Manuel Hiebel 2012-08-18 15:52:53 CEST

Keywords: (none) => PATCH

Comment 8 Colin Guthrie 2013-06-14 00:57:11 CEST
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 => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.