VT1708 clicks & pops
Hi,
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002
I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
I've tested on the EX15000G using a few different driver versions. One is essentially the version from Ubuntu 10.04, but rebuilt due to unrelated kernel changes. The other is alsa-driver snapshot alsa-driver-1.0.24.72.g7c48f.1314.geb1d0.
You can find output from alsa-info.sh as follows:
EX15000G (using Ubuntu 10.04 driver):
http://www.alsa-project.org/db/?f=ea56226a7917391d6adf9078650d3a9395f51b17
EX15000G (using driver from alsa-driver-1.0.24.72.g7c48f.1314.geb1d0):
http://www.alsa-project.org/db/?f=d0265991ec3e975820dc439470aea1df925ca1db
VB8002 (using Ubuntu 10.04 driver):
http://www.alsa-project.org/db/?f=611cc772a3fab7552bbda193b6ad7998f66a60fb
Any ideas what the problem might be?
Thanks,
Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com
Hi,
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
Maybe this issue would be more approachable if I could produce it without PulseAudio involved?
Incidentally, these boards both produce a crackling/static sound when PulseAudio is playing and the PCM mixer is turned all the way down. I have seen scattered reports of this in various bug trackers. The problem does not occur when playing via alsa directly. One thing I have noticed is that the crackling noise follows the rhythm of the music being played. It actually sounds like the music has been heavily distorted (i.e. via extreme digital clipping) and then attenuated significantly.
It seems likely that there are driver issues that PulseAudio is exposing. What can I do to track them down?
Thanks,
Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com
At Mon, 19 Sep 2011 19:14:13 -0400,
Quoted 9 lines · Forest Bond
Hi,
Quoted 5 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002
Quoted 7 lines
Quoted 4 lines
I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
Maybe this issue would be more approachable if I could produce it without PulseAudio involved?
Yes.
Quoted 10 lines
Incidentally, these boards both produce a crackling/static sound when PulseAudio is playing and the PCM mixer is turned all the way down. I have seen scattered reports of this in various bug trackers. The problem does not occur when playing via alsa directly. One thing I have noticed is that the crackling noise follows the rhythm of the music being played. It actually sounds like the music has been heavily distorted (i.e. via extreme digital clipping) and then attenuated significantly.
It seems likely that there are driver issues that PulseAudio is exposing. What can I do to track them down?
Is the problem related with the driver version? You mentioned the difference of drivers installed on your systems.
If it's a regression of the driver, it'd be easier to figure out.
Other than that, I'd try to adjust PA, e.g. try tsched=0. Usually this kind of problem is because of inaccurate playback position reporting from the hardware. PA relies (too much) on the playback position as default.
Takashi
Hi Takashi,
Thanks for your response.
Quoted 14 lines · Takashi Iwai
At Mon, 19 Sep 2011 19:14:13 -0400,
Quoted 12 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
Quoted 4 lines
Quoted 2 lines
Maybe this issue would be more approachable if I could produce it without PulseAudio involved?
Yes.
Heh, I guess I'm probably not going to be able to do that very easily.
Quoted 8 lines
Quoted 8 lines
Incidentally, these boards both produce a crackling/static sound when PulseAudio is playing and the PCM mixer is turned all the way down. I have seen scattered reports of this in various bug trackers. The problem does not occur when playing via alsa directly. One thing I have noticed is that the crackling noise follows the rhythm of the music being played. It actually sounds like the music has been heavily distorted (i.e. via extreme digital clipping) and then attenuated significantly.
Quoted 6 lines
Quoted 2 lines
It seems likely that there are driver issues that PulseAudio is exposing. What can I do to track them down?
Is the problem related with the driver version? You mentioned the difference of drivers installed on your systems.
If it's a regression of the driver, it'd be easier to figure out.
No, the issue occurs with both driver versions.
Quoted 4 lines
Other than that, I'd try to adjust PA, e.g. try tsched=0. Usually this kind of problem is because of inaccurate playback position reporting from the hardware. PA relies (too much) on the playback position as default.
Using tsched=0 fixes the pops and clicks on the EX15000G. Any idea why I might see problems on one board but not the other given how similar they are?
The crackling with PCM volume set to 0 persists with tsched=0. It seems unlikely that this isn't driver or hardware issue. But fixing the pops and clicks without using tsched=0 is more important to me. If you can provide suggestions as to where I might start looking, I would be happy to try and come up with a fix.
Thanks,
Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com
At Tue, 20 Sep 2011 15:05:34 -0400,
Quoted 44 lines · Forest Bond
Hi Takashi,
Thanks for your response.
Quoted 14 lines · Takashi Iwai
At Mon, 19 Sep 2011 19:14:13 -0400,
Quoted 12 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
Quoted 4 lines
Quoted 2 lines
Maybe this issue would be more approachable if I could produce it without PulseAudio involved?
Yes.
Heh, I guess I'm probably not going to be able to do that very easily.
Quoted 8 lines
Quoted 8 lines
Incidentally, these boards both produce a crackling/static sound when PulseAudio is playing and the PCM mixer is turned all the way down. I have seen scattered reports of this in various bug trackers. The problem does not occur when playing via alsa directly. One thing I have noticed is that the crackling noise follows the rhythm of the music being played. It actually sounds like the music has been heavily distorted (i.e. via extreme digital clipping) and then attenuated significantly.
Quoted 6 lines
Quoted 2 lines
It seems likely that there are driver issues that PulseAudio is exposing. What can I do to track them down?
Is the problem related with the driver version? You mentioned the difference of drivers installed on your systems.
If it's a regression of the driver, it'd be easier to figure out.No, the issue occurs with both driver versions.
Quoted 7 lines
Quoted 4 lines
Other than that, I'd try to adjust PA, e.g. try tsched=0. Usually this kind of problem is because of inaccurate playback position reporting from the hardware. PA relies (too much) on the playback position as default.
Using tsched=0 fixes the pops and clicks on the EX15000G. Any idea why I might see problems on one board but not the other given how similar they are?
Do they have the same HD-audio controller chip (VIA one)? Usually it's an issue of controller chip, not codec chips, so I wonder if they behave differently even with a same controller.
Quoted 1 line
The crackling with PCM volume set to 0 persists with tsched=0.
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
Quoted 5 lines
It seems
unlikely that this isn't driver or hardware issue. But fixing the pops and clicks without using tsched=0 is more important to me. If you can provide suggestions as to where I might start looking, I would be happy to try and come up with a fix.
As mentioned, the usual problem is the inaccurate DMA position reporting, especially when tsched=0 helped. It means a problem of HD-audio controller. We have already many workarounds in the driver code, but more investigations are needed in such a case...
Takashi
Hi Takashi,
Quoted 43 lines · Takashi Iwai
Quoted 42 lines · Forest Bond
Quoted 12 lines · Takashi Iwai
Quoted 11 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
Quoted 4 lines
Quoted 2 lines
Maybe this issue would be more approachable if I could produce it without PulseAudio involved?
Yes.
Heh, I guess I'm probably not going to be able to do that very easily.
Quoted 8 lines
Quoted 8 lines
Incidentally, these boards both produce a crackling/static sound when PulseAudio is playing and the PCM mixer is turned all the way down. I have seen scattered reports of this in various bug trackers. The problem does not occur when playing via alsa directly. One thing I have noticed is that the crackling noise follows the rhythm of the music being played. It actually sounds like the music has been heavily distorted (i.e. via extreme digital clipping) and then attenuated significantly.
Quoted 6 lines
Quoted 2 lines
It seems likely that there are driver issues that PulseAudio is exposing. What can I do to track them down?
Is the problem related with the driver version? You mentioned the difference of drivers installed on your systems.
If it's a regression of the driver, it'd be easier to figure out.No, the issue occurs with both driver versions.
Quoted 4 lines
Other than that, I'd try to adjust PA, e.g. try tsched=0. Usually this kind of problem is because of inaccurate playback position reporting from the hardware. PA relies (too much) on the playback position as default.
Quoted 6 lines
Quoted 2 lines
Using tsched=0 fixes the pops and clicks on the EX15000G. Any idea why I might see problems on one board but not the other given how similar they are?
Do they have the same HD-audio controller chip (VIA one)? Usually it's an issue of controller chip, not codec chips, so I wonder if they behave differently even with a same controller.
I'm not really sure how to identify the controller chip. alsa-info.sh output is here:
EX15000G:
http://www.alsa-project.org/db/?f=ea56226a7917391d6adf9078650d3a9395f51b17
VB8002:
http://www.alsa-project.org/db/?f=611cc772a3fab7552bbda193b6ad7998f66a60fb
As I understand it the VT1708 is the codec chip. Is the audio controller part of the south bridge? Both report having a VT8237.
Quoted 4 lines
Quoted 1 line
The crackling with PCM volume set to 0 persists with tsched=0.
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
1:0.9.22+stable-queue-24-g67d18-0ubuntu3 from Ubuntu Lucid.
Quoted 2 lines
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
I do not use the PA mixer. The noise is present with ALSA's PCM control set to zero (-51dB). If I move the PCM control up one tick (to -50.8dB) the noise goes away.
Quoted 9 lines
Quoted 4 lines
It seems unlikely that this isn't driver or hardware issue. But fixing the pops and clicks without using tsched=0 is more important to me. If you can provide suggestions as to where I might start looking, I would be happy to try and come up with a fix.
As mentioned, the usual problem is the inaccurate DMA position reporting, especially when tsched=0 helped. It means a problem of HD-audio controller. We have already many workarounds in the driver code, but more investigations are needed in such a case...
Again, I'm happy to spend the time needed to get this fixed. If you can provide hints on where to look, that would be great. Can you point me at some git commits that fixed similar issues? I checked the git log but did not find any such commits that changed patch_via.c.
Thanks,
Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com
At Wed, 21 Sep 2011 10:35:10 -0400,
Quoted 57 lines · Forest Bond
Hi Takashi,
Quoted 43 lines · Takashi Iwai
Quoted 42 lines · Forest Bond
Quoted 12 lines · Takashi Iwai
Quoted 11 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
Quoted 4 lines
Quoted 2 lines
Maybe this issue would be more approachable if I could produce it without PulseAudio involved?
Yes.
Heh, I guess I'm probably not going to be able to do that very easily.
Quoted 8 lines
Quoted 8 lines
Incidentally, these boards both produce a crackling/static sound when PulseAudio is playing and the PCM mixer is turned all the way down. I have seen scattered reports of this in various bug trackers. The problem does not occur when playing via alsa directly. One thing I have noticed is that the crackling noise follows the rhythm of the music being played. It actually sounds like the music has been heavily distorted (i.e. via extreme digital clipping) and then attenuated significantly.
Quoted 6 lines
Quoted 2 lines
It seems likely that there are driver issues that PulseAudio is exposing. What can I do to track them down?
Is the problem related with the driver version? You mentioned the difference of drivers installed on your systems.
If it's a regression of the driver, it'd be easier to figure out.No, the issue occurs with both driver versions.
Quoted 4 lines
Other than that, I'd try to adjust PA, e.g. try tsched=0. Usually this kind of problem is because of inaccurate playback position reporting from the hardware. PA relies (too much) on the playback position as default.
Quoted 6 lines
Quoted 2 lines
Using tsched=0 fixes the pops and clicks on the EX15000G. Any idea why I might see problems on one board but not the other given how similar they are?
Do they have the same HD-audio controller chip (VIA one)? Usually it's an issue of controller chip, not codec chips, so I wonder if they behave differently even with a same controller.
I'm not really sure how to identify the controller chip.
alsa-info.shoutput is here:
Quoted 8 lines
EX15000G:
http://www.alsa-project.org/db/?f=ea56226a7917391d6adf9078650d3a9395f51b17VB8002:
http://www.alsa-project.org/db/?f=611cc772a3fab7552bbda193b6ad7998f66a60fbAs I understand it the VT1708 is the codec chip. Is the audio controller part of the south bridge? Both report having a VT8237.
Yes, and it's VT1708 also meaning a controller chip, apparently. The controller chip is what PCI ID shows.
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
The crackling with PCM volume set to 0 persists with tsched=0.
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
Quoted 8 lines
1:0.9.22+stable-queue-24-g67d18-0ubuntu3 from Ubuntu Lucid.
Quoted 2 lines
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
I do not use the PA mixer. The noise is present with ALSA's PCM control set to zero (-51dB). If I move the PCM control up one tick (to -50.8dB) the noise goes away.
OK, then it's an issue in the sound driver.
Could you give alsa-info.sh outputs both mute-with-noise and without noise for comparison?
Quoted 10 lines
Quoted 9 lines
Quoted 4 lines
It seems unlikely that this isn't driver or hardware issue. But fixing the pops and clicks without using tsched=0 is more important to me. If you can provide suggestions as to where I might start looking, I would be happy to try and come up with a fix.
As mentioned, the usual problem is the inaccurate DMA position reporting, especially when tsched=0 helped. It means a problem of HD-audio controller. We have already many workarounds in the driver code, but more investigations are needed in such a case...
Quoted 4 lines
Again, I'm happy to spend the time needed to get this fixed. If you can provide hints on where to look, that would be great. Can you point me at some git commits that fixed similar issues? I checked the git log but did not find any such commits that changed
patch_via.c.
Well, there are a few possible causes. If it's something wrong in the codec side, it can be a PM code. The latest driver has a mixer enum "Dynamic Power-Control". Try to disable it.
OTOH, if it's in the controller side, where you need to take a look at is hda_intel.c, or sometimes hda_codec.c.
Takashi
Hi Takashi,
Quoted 82 lines · Takashi Iwai
At Wed, 21 Sep 2011 10:35:10 -0400,
Quoted 57 lines · Forest Bond
Hi Takashi,
Quoted 43 lines · Takashi Iwai
Quoted 42 lines · Forest Bond
Quoted 12 lines · Takashi Iwai
Quoted 11 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
Quoted 4 lines
Quoted 2 lines
Maybe this issue would be more approachable if I could produce it without PulseAudio involved?
Yes.
Heh, I guess I'm probably not going to be able to do that very easily.
Quoted 8 lines
Quoted 8 lines
Incidentally, these boards both produce a crackling/static sound when PulseAudio is playing and the PCM mixer is turned all the way down. I have seen scattered reports of this in various bug trackers. The problem does not occur when playing via alsa directly. One thing I have noticed is that the crackling noise follows the rhythm of the music being played. It actually sounds like the music has been heavily distorted (i.e. via extreme digital clipping) and then attenuated significantly.
Quoted 6 lines
Quoted 2 lines
It seems likely that there are driver issues that PulseAudio is exposing. What can I do to track them down?
Is the problem related with the driver version? You mentioned the difference of drivers installed on your systems.
If it's a regression of the driver, it'd be easier to figure out.No, the issue occurs with both driver versions.
Quoted 4 lines
Other than that, I'd try to adjust PA, e.g. try tsched=0. Usually this kind of problem is because of inaccurate playback position reporting from the hardware. PA relies (too much) on the playback position as default.
Quoted 6 lines
Quoted 2 lines
Using tsched=0 fixes the pops and clicks on the EX15000G. Any idea why I might see problems on one board but not the other given how similar they are?
Do they have the same HD-audio controller chip (VIA one)? Usually it's an issue of controller chip, not codec chips, so I wonder if they behave differently even with a same controller.
I'm not really sure how to identify the controller chip.
alsa-info.shoutput is here:Quoted 8 lines
EX15000G:
http://www.alsa-project.org/db/?f=ea56226a7917391d6adf9078650d3a9395f51b17VB8002:
http://www.alsa-project.org/db/?f=611cc772a3fab7552bbda193b6ad7998f66a60fbAs I understand it the VT1708 is the codec chip. Is the audio controller part of the south bridge? Both report having a VT8237.
Yes, and it's VT1708 also meaning a controller chip, apparently. The controller chip is what PCI ID shows.
Quoted 10 lines
Quoted 4 lines
Quoted 1 line
The crackling with PCM volume set to 0 persists with tsched=0.
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
1:0.9.22+stable-queue-24-g67d18-0ubuntu3 from Ubuntu Lucid.
Quoted 2 lines
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
Quoted 7 lines
Quoted 3 lines
I do not use the PA mixer. The noise is present with ALSA's PCM control set to zero (-51dB). If I move the PCM control up one tick (to -50.8dB) the noise goes away.
OK, then it's an issue in the sound driver.
Could you givealsa-info.shoutputs both mute-with-noise and without noise for comparison?
With noise:
http://www.alsa-project.org/db/?f=c8119c27951479731f1ba6d8ea62cd3ad91aec1a
Without noise:
http://www.alsa-project.org/db/?f=f40d02f0286a64946bec2ff4243c15ea86e5ea59
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 4 lines
It seems unlikely that this isn't driver or hardware issue. But fixing the pops and clicks without using tsched=0 is more important to me. If you can provide suggestions as to where I might start looking, I would be happy to try and come up with a fix.
As mentioned, the usual problem is the inaccurate DMA position reporting, especially when tsched=0 helped. It means a problem of HD-audio controller. We have already many workarounds in the driver code, but more investigations are needed in such a case...
Quoted 8 lines
Quoted 4 lines
Again, I'm happy to spend the time needed to get this fixed. If you can provide hints on where to look, that would be great. Can you point me at some git commits that fixed similar issues? I checked the git log but did not find any such commits that changed
patch_via.c.Well, there are a few possible causes. If it's something wrong in the codec side, it can be a PM code. The latest driver has a mixer enum "Dynamic Power-Control". Try to disable it.
Okay, I'll give this a try.
Quoted 2 lines
OTOH, if it's in the controller side, where you need to take a look at is
hda_intel.c, or sometimeshda_codec.c.
Thanks for the info.
-Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com
Hi Takashi,
Quoted 15 lines · Takashi Iwai
Quoted 14 lines · Forest Bond
Quoted 13 lines · Takashi Iwai
Quoted 12 lines · Forest Bond
Quoted 11 lines · Takashi Iwai
Quoted 10 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
[...]
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
As mentioned, the usual problem is the inaccurate DMA position reporting, especially when tsched=0 helped. It means a problem of HD-audio controller. We have already many workarounds in the driver code, but more investigations are needed in such a case...
Quoted 8 lines
Quoted 4 lines
Again, I'm happy to spend the time needed to get this fixed. If you can provide hints on where to look, that would be great. Can you point me at some git commits that fixed similar issues? I checked the git log but did not find any such commits that changed
patch_via.c.Well, there are a few possible causes. If it's something wrong in the codec side, it can be a PM code. The latest driver has a mixer enum "Dynamic Power-Control". Try to disable it.
This control is not enabled for the VT1708 codec because the set_widgets_power_state function pointer is not defined for this codec. I assume the hardware doesn't support the underlying feature? Or maybe it is just not implemented yet in the driver?
Thanks,
Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com
Hi Takashi,
Quoted 16 lines · Takashi Iwai
Quoted 15 lines · Forest Bond
Quoted 14 lines · Takashi Iwai
Quoted 13 lines · Forest Bond
Quoted 11 lines · Takashi Iwai
Quoted 10 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
The crackling with PCM volume set to 0 persists with tsched=0.
[...]
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
1:0.9.22+stable-queue-24-g67d18-0ubuntu3 from Ubuntu Lucid.
Quoted 2 lines
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
Quoted 7 lines
Quoted 3 lines
I do not use the PA mixer. The noise is present with ALSA's PCM control set to zero (-51dB). If I move the PCM control up one tick (to -50.8dB) the noise goes away.
OK, then it's an issue in the sound driver.
Could you givealsa-info.shoutputs both mute-with-noise and without noise for comparison?
I guess we can ignore this one for now. I do not have this problem using a recent alsa-driver snapshot. The PCM control does not go below -40.25dB with this version. It's possible the new driver simply doesn't allow the control to be set to a problematic value.
I will note, however, that the master control with the snapshot has a minimum value of 0dB and a maximum of 6.75dB, and that the audio is barely audible at 0dB. I have to crank the master control all the way up to get the same volume as the old driver set to 0dB. Maybe I can come up with a fix for this.
Thanks,
Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com
At Wed, 21 Sep 2011 13:55:53 -0400,
Quoted 39 lines · Forest Bond
Hi Takashi,
Quoted 16 lines · Takashi Iwai
Quoted 15 lines · Forest Bond
Quoted 14 lines · Takashi Iwai
Quoted 13 lines · Forest Bond
Quoted 11 lines · Takashi Iwai
Quoted 10 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
The crackling with PCM volume set to 0 persists with tsched=0.
[...]
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
1:0.9.22+stable-queue-24-g67d18-0ubuntu3 from Ubuntu Lucid.
Quoted 2 lines
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
Quoted 7 lines
Quoted 3 lines
I do not use the PA mixer. The noise is present with ALSA's PCM control set to zero (-51dB). If I move the PCM control up one tick (to -50.8dB) the noise goes away.
OK, then it's an issue in the sound driver.
Could you givealsa-info.shoutputs both mute-with-noise and without noise for comparison?
Quoted 7 lines
I guess we can ignore this one for now. I do not have this problem using a recent alsa-driver snapshot. The PCM control does not go below -40.25dB with this version. It's possible the new driver simply doesn't allow the control to be set to a problematic value.
I will note, however, that the master control with the snapshot has a minimum value of 0dB and a maximum of 6.75dB,
That's odd.
Quoted 3 lines
and that the audio is barely audible at
0dB. I have to crank the master control all the way up to get the same volume as the old driver set to 0dB. Maybe I can come up with a fix for this.
For debugging, I'd need anyway the alsa-info.sh output from the latest alsa-driver snapshot.
Also, I'm working now on non-snooping mode support, and this might help for fixing some problems like yours. Could you try the patch below (with the snapshot version)?
FYI, the snapshot tarballs are found in
ftp://ftp.suse.com/pub/people/tiwai/snapshot/
while kernel.org is down.
thanks,
Takashi
---
include/sound/pcm.h +2 -0
@@ -1037,6 +1037,8 @@ static inline void snd_pcm_mmap_data_close(struct vm_area_struct *area)atomic_dec (&substream->mmap_count); } +int snd_pcm_lib_default_mmap (struct snd_pcm_substream *substream, +struct vm_area_struct *area);/* mmap for io-memory area */ #if defined(CONFIG_X86 ) || defined(CONFIG_PPC ) || defined(CONFIG_ALPHA )#define SNDRV_PCM_INFO_MMAP_IOMEM SNDRV_PCM_INFO_MMAP
sound/core/pcm_native.c +4 -3
@@ -3156,8 +3156,8 @@ static const struct vm_operations_struct snd_pcm_vm_ops_data_fault = {/* * mmap the DMA buffer on RAM */ -static int snd_pcm_default_mmap (struct snd_pcm_substream *substream, -struct vm_area_struct *area) +int snd_pcm_lib_default_mmap (struct snd_pcm_substream *substream, +struct vm_area_struct *area) { area->vm_flags |=VM_RESERVED ;#ifdef ARCH_HAS_DMA_MMAP_COHERENT
@@ -3177,6 +3177,7 @@ static int snd_pcm_default_mmap(struct snd_pcm_substream *substream, area->vm_ops = &snd_pcm_vm_ops_data_fault;return 0 ; } +EXPORT_SYMBOL_GPL (snd_pcm_lib_default_mmap);/* * mmap the DMA buffer on I/O memory area
@@ -3242,7 +3243,7 @@ int snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file,if (substream->ops->mmap) err = substream->ops->mmap (substream, area);else - err =snd_pcm_default_mmap (substream, area); + err =snd_pcm_lib_default_mmap (substream, area);if (!err)atomic_inc (&substream->mmap_count);return err;
sound/pci/hda/hda_intel.c +111 -16
245 lines not on this page · raw message
Hi Takashi,
Quoted 45 lines · Takashi Iwai
Quoted 36 lines · Forest Bond
Quoted 16 lines · Takashi Iwai
Quoted 15 lines · Forest Bond
Quoted 14 lines · Takashi Iwai
Quoted 13 lines · Forest Bond
Quoted 11 lines · Takashi Iwai
Quoted 10 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
The crackling with PCM volume set to 0 persists with tsched=0.
[...]
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
1:0.9.22+stable-queue-24-g67d18-0ubuntu3 from Ubuntu Lucid.
Quoted 2 lines
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
Quoted 7 lines
Quoted 3 lines
I do not use the PA mixer. The noise is present with ALSA's PCM control set to zero (-51dB). If I move the PCM control up one tick (to -50.8dB) the noise goes away.
OK, then it's an issue in the sound driver.
Could you givealsa-info.shoutputs both mute-with-noise and without noise for comparison?Quoted 7 lines
I guess we can ignore this one for now. I do not have this problem using a recent alsa-driver snapshot. The PCM control does not go below -40.25dB with this version. It's possible the new driver simply doesn't allow the control to be set to a problematic value.
I will note, however, that the master control with the snapshot has a minimum value of 0dB and a maximum of 6.75dB,
Quoted 8 lines
That's odd.
Quoted 3 lines
and that the audio is barely audible at
0dB. I have to crank the master control all the way up to get the same volume as the old driver set to 0dB. Maybe I can come up with a fix for this.For debugging, I'd need anyway the
alsa-info.shoutput from the latest alsa-driver snapshot.
Okay, here you go:
http://www.alsa-project.org/db/?f=8f3da35bd1b615d199f8e71df8b012fbdf5ff690
Quoted 3 lines
Also, I'm working now on non-snooping mode support, and this might help for fixing some problems like yours. Could you try the patch below (with the snapshot version)?
Unfortunately, this doesn't seem to help.
Given the similarities between the working and non-working boards, I was wondering if the BIOS is setting up the chips differently and that is the immediate cause of the problems. In particular:
* There is no set_widgets_power_state function for this chip. If the BIOS enables some power management function on one board but not the other and the driver has no way to disable it, could that cause an issue like this one?
* I see that the VB8002 has "N/A" listed for "Pin Default" for several "Pin Complex" nodes where the EX15000G has "Jack". Is it possible the EX15000G has some nodes configured as AC_JACK_PORT_COMPLEX that should be configured as AC_JACK_PORT_NONE?
It should be clear that I do not have a very good understanding of the HDA spec. I'm assuming the BIOS is responsible for configuring the chip as I've described above. Do any of those problems sound possible to you? If so, are there ways to work around them in the driver?
Thanks,
Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com
At Tue, 27 Sep 2011 17:45:32 -0400,
Quoted 55 lines · Forest Bond
Hi Takashi,
Quoted 51 lines · Takashi Iwai
Quoted 36 lines · Forest Bond
Quoted 16 lines · Takashi Iwai
Quoted 15 lines · Forest Bond
Quoted 14 lines · Takashi Iwai
Quoted 13 lines · Forest Bond
Quoted 11 lines · Takashi Iwai
Quoted 10 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
The crackling with PCM volume set to 0 persists with tsched=0.
[...]
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
1:0.9.22+stable-queue-24-g67d18-0ubuntu3 from Ubuntu Lucid.
Quoted 2 lines
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
Quoted 7 lines
Quoted 3 lines
I do not use the PA mixer. The noise is present with ALSA's PCM control set to zero (-51dB). If I move the PCM control up one tick (to -50.8dB) the noise goes away.
OK, then it's an issue in the sound driver.
Could you givealsa-info.shoutputs both mute-with-noise and without noise for comparison?Quoted 7 lines
I guess we can ignore this one for now. I do not have this problem using a recent alsa-driver snapshot. The PCM control does not go below -40.25dB with this version. It's possible the new driver simply doesn't allow the control to be set to a problematic value.
I will note, however, that the master control with the snapshot has a minimum value of 0dB and a maximum of 6.75dB,
That's odd.
Quoted 3 lines
and that the audio is barely audible at
0dB. I have to crank the master control all the way up to get the same volume as the old driver set to 0dB. Maybe I can come up with a fix for this.
Quoted 6 lines
Quoted 2 lines
For debugging, I'd need anyway the
alsa-info.shoutput from the latest alsa-driver snapshot.Okay, here you go:
http://www.alsa-project.org/db/?f=8f3da35bd1b615d199f8e71df8b012fbdf5ff690
This is the working device, right?
Quoted 6 lines
Quoted 3 lines
Also, I'm working now on non-snooping mode support, and this might help for fixing some problems like yours. Could you try the patch below (with the snapshot version)?
Unfortunately, this doesn't seem to help.
Quoted 7 lines
Given the similarities between the working and non-working boards, I was wondering if the BIOS is setting up the chips differently and that is the immediate cause of the problems. In particular:
* There is no
set_widgets_power_statefunction for this chip. If the BIOS enables some power management function on one board but not the other and the driver has no way to disable it, could that cause an issue like this one?
No, as default the driver powers up all widgets and power down all again at power-saving. The VIA codec driver has an advanced implementation to turn off a few unused widgets even in power-up. And this feature is missing in VT1708. So, it doesn't mean that the driver has no power control. It has.
Quoted 4 lines
* I see that the VB8002 has "N/A" listed for "Pin Default" for several "Pin Complex" nodes where the EX15000G has "Jack". Is it possible the EX15000G has some nodes configured as
AC_JACK_PORT_COMPLEXthat should be configured asAC_JACK_PORT_NONE?
I don't know. You need to check whether the pins are really correctly set up. For example, most of jacks have the detection capability. Then plug/unplug each jack and check the pin-detection e.g. with hda-verb program.
Quoted 4 lines
It should be clear that I do not have a very good understanding of the HDA spec. I'm assuming the BIOS is responsible for configuring the chip as I've described above. Do any of those problems sound possible to you? If so, are there ways to work around them in the driver?
Yes, pins can be easily overridden via sysfs or patch option. See Documentation/sound/alsa/HD-Audio.txt.
Takashi
Hi Takashi,
Quoted 53 lines · Takashi Iwai
Quoted 52 lines · Forest Bond
Quoted 51 lines · Takashi Iwai
Quoted 36 lines · Forest Bond
Quoted 16 lines · Takashi Iwai
Quoted 15 lines · Forest Bond
Quoted 14 lines · Takashi Iwai
Quoted 13 lines · Forest Bond
Quoted 11 lines · Takashi Iwai
Quoted 10 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
The crackling with PCM volume set to 0 persists with tsched=0.
[...]
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
1:0.9.22+stable-queue-24-g67d18-0ubuntu3 from Ubuntu Lucid.
Quoted 2 lines
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
Quoted 7 lines
Quoted 3 lines
I do not use the PA mixer. The noise is present with ALSA's PCM control set to zero (-51dB). If I move the PCM control up one tick (to -50.8dB) the noise goes away.
OK, then it's an issue in the sound driver.
Could you givealsa-info.shoutputs both mute-with-noise and without noise for comparison?Quoted 7 lines
I guess we can ignore this one for now. I do not have this problem using a recent alsa-driver snapshot. The PCM control does not go below -40.25dB with this version. It's possible the new driver simply doesn't allow the control to be set to a problematic value.
I will note, however, that the master control with the snapshot has a minimum value of 0dB and a maximum of 6.75dB,
That's odd.
Quoted 3 lines
and that the audio is barely audible at
0dB. I have to crank the master control all the way up to get the same volume as the old driver set to 0dB. Maybe I can come up with a fix for this.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
For debugging, I'd need anyway the
alsa-info.shoutput from the latest alsa-driver snapshot.Okay, here you go:
http://www.alsa-project.org/db/?f=8f3da35bd1b615d199f8e71df8b012fbdf5ff690
This is the working device, right?
No, this is the one with PA issues and the mixer levels issue I mentioned above. I haven't tested the snapshot driver on the working board, so I don't know if it is also effected by the mixer levels issue.
Quoted 14 lines
Quoted 6 lines
Quoted 3 lines
Also, I'm working now on non-snooping mode support, and this might help for fixing some problems like yours. Could you try the patch below (with the snapshot version)?
Unfortunately, this doesn't seem to help.
Quoted 7 lines
Given the similarities between the working and non-working boards, I was wondering if the BIOS is setting up the chips differently and that is the immediate cause of the problems. In particular:
* There is no
set_widgets_power_statefunction for this chip. If the BIOS enables some power management function on one board but not the other and the driver has no way to disable it, could that cause an issue like this one?
Quoted 5 lines
No, as default the driver powers up all widgets and power down all again at power-saving. The VIA codec driver has an advanced implementation to turn off a few unused widgets even in power-up. And this feature is missing in VT1708. So, it doesn't mean that the driver has no power control. It has.
I see.
Quoted 9 lines
Quoted 4 lines
* I see that the VB8002 has "N/A" listed for "Pin Default" for several "Pin Complex" nodes where the EX15000G has "Jack". Is it possible the EX15000G has some nodes configured as
AC_JACK_PORT_COMPLEXthat should be configured asAC_JACK_PORT_NONE?I don't know. You need to check whether the pins are really correctly set up. For example, most of jacks have the detection capability. Then plug/unplug each jack and check the pin-detection e.g. with hda-verb program.
I probably should have said so earlier, but this board has RCA connectors for most outputs. I'm not sure that pin detection works for these? In any case, the EX15000G and the VB8002 have the exact same the same physical connectors.
The only 1/8" connector is the front panel headphone jack. I checked this pin with hda-verb, and it appears to be setup correctly.
Quoted 7 lines
Quoted 4 lines
It should be clear that I do not have a very good understanding of the HDA spec. I'm assuming the BIOS is responsible for configuring the chip as I've described above. Do any of those problems sound possible to you? If so, are there ways to work around them in the driver?
Yes, pins can be easily overridden via sysfs or patch option. See
Documentation/sound/alsa/HD-Audio.txt.
Okay, thanks for the info.
I experimented more and have some additional information that might be interesting:
1. The clicks and pops sound like they are actually brief snippets of audio that are being played at the wrong time and mixed in with the correct audio.
2. With the old driver, when I mute some of the mixer controls the audio stream becomes silent as expected but I still hear the snippets/clicks and pops for a few seconds. This happens with the Master Front, Headphone, Front, Surround, Center, LFE, and Side elements, although it only seems to happen with the Headphone element when I'm using the rear panel line out (RCA) jacks. I do not see this with the snapshot driver.
#2 in particular is puzzling to me, but maybe that is due to not understanding the hardware well enough.
Thanks,
Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com
Hi Takashi,
Quoted 129 lines · Forest Bond
Quoted 53 lines · Takashi Iwai
Quoted 52 lines · Forest Bond
Quoted 51 lines · Takashi Iwai
Quoted 36 lines · Forest Bond
Quoted 16 lines · Takashi Iwai
Quoted 15 lines · Forest Bond
Quoted 14 lines · Takashi Iwai
Quoted 13 lines · Forest Bond
Quoted 11 lines · Takashi Iwai
Quoted 10 lines · Forest Bond
Quoted 9 lines · Forest Bond
I have two boards with a VT1708:
* VIA EPIA EX15000G
* VIA VB8002I'm using VLC to play audio via PulseAudio to the analog outputs. The VB8002 sounds great, but the EX15000G has random pops and clicks in the output. Both machines are running exactly the same configuration (they are using the same pre-built OS image).
The crackling with PCM volume set to 0 persists with tsched=0.
[...]
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Hrm, which PA version are you using? I remember vaguely a buggy PA SIMD operations in some old PA versions.
1:0.9.22+stable-queue-24-g67d18-0ubuntu3 from Ubuntu Lucid.
Quoted 2 lines
Also, when you mute the mixer (nor the PA's mixer), e.g. via "alsamixer -c0", the noise goes away, right?
Quoted 7 lines
Quoted 3 lines
I do not use the PA mixer. The noise is present with ALSA's PCM control set to zero (-51dB). If I move the PCM control up one tick (to -50.8dB) the noise goes away.
OK, then it's an issue in the sound driver.
Could you givealsa-info.shoutputs both mute-with-noise and without noise for comparison?Quoted 7 lines
I guess we can ignore this one for now. I do not have this problem using a recent alsa-driver snapshot. The PCM control does not go below -40.25dB with this version. It's possible the new driver simply doesn't allow the control to be set to a problematic value.
I will note, however, that the master control with the snapshot has a minimum value of 0dB and a maximum of 6.75dB,
That's odd.
Quoted 3 lines
and that the audio is barely audible at
0dB. I have to crank the master control all the way up to get the same volume as the old driver set to 0dB. Maybe I can come up with a fix for this.Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
For debugging, I'd need anyway the
alsa-info.shoutput from the latest alsa-driver snapshot.Okay, here you go:
http://www.alsa-project.org/db/?f=8f3da35bd1b615d199f8e71df8b012fbdf5ff690
This is the working device, right?
No, this is the one with PA issues and the mixer levels issue I mentioned above. I haven't tested the snapshot driver on the working board, so I don't know if it is also effected by the mixer levels issue.
Quoted 14 lines
Quoted 6 lines
Quoted 3 lines
Also, I'm working now on non-snooping mode support, and this might help for fixing some problems like yours. Could you try the patch below (with the snapshot version)?
Unfortunately, this doesn't seem to help.
Quoted 7 lines
Given the similarities between the working and non-working boards, I was wondering if the BIOS is setting up the chips differently and that is the immediate cause of the problems. In particular:
* There is no
set_widgets_power_statefunction for this chip. If the BIOS enables some power management function on one board but not the other and the driver has no way to disable it, could that cause an issue like this one?Quoted 5 lines
No, as default the driver powers up all widgets and power down all again at power-saving. The VIA codec driver has an advanced implementation to turn off a few unused widgets even in power-up. And this feature is missing in VT1708. So, it doesn't mean that the driver has no power control. It has.
I see.
Quoted 9 lines
Quoted 4 lines
* I see that the VB8002 has "N/A" listed for "Pin Default" for several "Pin Complex" nodes where the EX15000G has "Jack". Is it possible the EX15000G has some nodes configured as
AC_JACK_PORT_COMPLEXthat should be configured asAC_JACK_PORT_NONE?I don't know. You need to check whether the pins are really correctly set up. For example, most of jacks have the detection capability. Then plug/unplug each jack and check the pin-detection e.g. with hda-verb program.
I probably should have said so earlier, but this board has RCA connectors for most outputs. I'm not sure that pin detection works for these? In any case, the EX15000G and the VB8002 have the exact same the same physical connectors.
The only 1/8" connector is the front panel headphone jack. I checked this pin with hda-verb, and it appears to be setup correctly.
Quoted 7 lines
Quoted 4 lines
It should be clear that I do not have a very good understanding of the HDA spec. I'm assuming the BIOS is responsible for configuring the chip as I've described above. Do any of those problems sound possible to you? If so, are there ways to work around them in the driver?
Yes, pins can be easily overridden via sysfs or patch option. See
Documentation/sound/alsa/HD-Audio.txt.Okay, thanks for the info.
I experimented more and have some additional information that might be interesting:
1. The clicks and pops sound like they are actually brief snippets of audio that are being played at the wrong time and mixed in with the correct audio.
2. With the old driver, when I mute some of the mixer controls the audio stream becomes silent as expected but I still hear the snippets/clicks and pops for a few seconds. This happens with the Master Front, Headphone, Front, Surround, Center, LFE, and Side elements, although it only seems to happen with the Headphone element when I'm using the rear panel line out (RCA) jacks. I do not see this with the snapshot driver.
Quoted 2 lines
#2 in particular is puzzling to me, but maybe that is due to not understanding the hardware well enough.
FYI, I tracked down the root cause of the clicks and pops and it's a PulseAudio issue. I'll follow up with the PA devs. It's a pretty interesting problem, so I'll probably Cc you if that's okay.
Please note that the mixer issue affecting the snapshot driver is still outstanding. I'm happy to test a fix if that's helpful. It is not an urgent matter for me, though, as the older driver version works fine.
Thanks for all of your help!
-Forest
Signature · 3 lines
Forest Bond http://www.alittletooquiet.net http://www.rapidrollout.com