[alsa-devel] Constant noise on HDA ALC275

Julien Danjou julien at danjou.info
Mon Oct 8 18:52:26 CEST 2012


On Mon, Oct 08 2012, Takashi Iwai wrote:

> Yep, as David pointed out, the beep control overrides the amp setup.
> And your previous result suggested that we shouldn't use this beep
> path either (except for unmuting it), otherwise you get a noise
> again.
>
> So, the patch below is the revised version.  It removes the beep
> control but still opens the path to NID 0x1d.

It does remove the beep control, and I think it therefore break the beep
functionnality: I've no sound when echoing '\a'. But that's likely to be
expected anyhow. :-/

But yeah, definitely, I've no noise anymore in this case with this
patch.

Now, I can still make the noise come back when "speaker" or "master" is
muted. This is definitely not a side effect of your patch, I just didn't
raise it before.



This diff is between "no noise" (= just loaded the module with your
patch) and "noise with master muted":

diff -u /tmp/no-noise.txt /tmp/noise-master-mute.txt
--- /tmp/no-noise.txt	2012-10-08 18:36:44.601047347 +0200
+++ /tmp/noise-master-mute.txt	2012-10-08 18:37:02.221050163 +0200
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################

-!!Script ran on: Mon Oct  8 16:36:44 UTC 2012
+!!Script ran on: Mon Oct  8 16:37:02 UTC 2012


 !!Linux Distribution
@@ -260,7 +260,7 @@
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Control: name="Speaker Phantom Jack", index=0, device=0
   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
-  Amp-Out vals:  [0x00 0x00]
+  Amp-Out vals:  [0x80 0x80]
   Pincap 0x00010050: OUT EAPD Balanced
   EAPD 0x2: EAPD
   Pin Default 0x90170110: [Fixed] Speaker at Int N/A




This diff is between "no noise" (= just loaded the module with your
patch) and "noise with speaker muted":

diff -u /tmp/no-noise.txt /tmp/noise-speaker-mute.txt
--- /tmp/no-noise.txt	2012-10-08 18:36:44.601047347 +0200
+++ /tmp/noise-speaker-mute.txt	2012-10-08 18:37:10.913051519 +0200
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################

-!!Script ran on: Mon Oct  8 16:36:44 UTC 2012
+!!Script ran on: Mon Oct  8 16:37:10 UTC 2012


 !!Linux Distribution
@@ -260,7 +260,7 @@
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Control: name="Speaker Phantom Jack", index=0, device=0
   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
-  Amp-Out vals:  [0x00 0x00]
+  Amp-Out vals:  [0x80 0x80]
   Pincap 0x00010050: OUT EAPD Balanced
   EAPD 0x2: EAPD
   Pin Default 0x90170110: [Fixed] Speaker at Int N/A



Now, I've discovered one more thing, don't know if you know. This is how
I managed to REALLY mute the speakers, the noise, everything (even
playing a sound file with everything unmuted makes no sound):

% diff -u /tmp/sound.txt /tmp/no-sound-at-all.txt
--- /tmp/sound.txt	2012-10-08 18:48:02.605161041 +0200
+++ /tmp/no-sound-at-all.txt	2012-10-08 18:47:50.453158964 +0200
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################
 
-!!Script ran on: Mon Oct  8 16:48:02 UTC 2012
+!!Script ran on: Mon Oct  8 16:47:50 UTC 2012
 
 
 !!Linux Distribution
@@ -267,7 +267,7 @@
     Conn = Analog, Color = Unknown
     DefAssociation = 0x1, Sequence = 0x0
     Misc = NO_PRESENCE
-  Pin-ctls: 0x40: OUT
+  Pin-ctls: 0x00:
   Power states:  D0 D1 D2 D3 EPSS
   Power: setting=D0, actual=D0
   Connection: 2



When doing that, I cannot hear anything, because it seems to disconnect
the speakers. My idea would be to set this pin to 0x00 instead of 0x40
when "Speakers" are set to mute (I don't know about master though).
WDYT?

Attached all the files.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: noise-master-mute.txt.gz
Type: application/octet-stream
Size: 2883 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20121008/daf4e122/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noise-speaker-mute.txt.gz
Type: application/octet-stream
Size: 2885 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20121008/daf4e122/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-noise.txt.gz
Type: application/octet-stream
Size: 2877 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20121008/daf4e122/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-sound-at-all.txt.gz
Type: application/octet-stream
Size: 2876 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20121008/daf4e122/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sound.txt.gz
Type: application/octet-stream
Size: 2870 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20121008/daf4e122/attachment-0009.obj>
-------------- next part --------------


This sound card seems really weird. :)

-- 
Julien Danjou
# Free Software hacker & freelance
# http://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20121008/daf4e122/attachment-0001.sig>


More information about the Alsa-devel mailing list