Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 2015 10:31:26 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        multimedia@freebsd.org
Subject:   Sound OK using built-in speakers, but loud "static" with headphones
Message-ID:  <20150416173126.GG36163@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--L1c6L/cjZjI9d0Eq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

This is on a fairly new laptop (ref.
<https://wiki.freebsd.org/Laptops/Dell_Precision_M4800>, so there is
some probability that there's an electrical or mechanical issue with the
hardware... but I'd like to eliminate other possibilities before losing
the ability to use the machine for several days.

The static is loud enough that a colleage (whose cube is diagonally
across the aisle from mine at work) heard it (and thought at first
that it was an exceptionally busy disk drive).

At the moment, the laptop is running:

FreeBSD g1-254.catwhisker.org 10.1-STABLE FreeBSD 10.1-STABLE #38  r281579M=
/281599:1001512: Thu Apr 16 04:27:12 PDT 2015     root@g1-254.catwhisker.or=
g:/common/S1/obj/usr/src/sys/CANARY  i386

(I have recent stable/10 & head for both i386 & amd64 readily
available -- though the head/i386 is a couple of days old: kernels
built both yesterday & today panic early in the boot process,
apparently during hda probes. amd64 doesn't exhibit that.)

/dev/sndstat says:

Installed devices:
pcm0: <NVIDIA (0x0042) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0042) (HDMI/DP 8ch)> (play)
pcm2: <Realtek (0x0292) (Analog 2.0+HP/2.0)> (play/rec) default
pcm3: <Realtek (0x0292) (Analog)> (play/rec)


The auto-created devices relevant to the above:

crw-rw-rw-  1 root  wheel  0x9e Apr 16 06:05:04 2015 /dev/dsp0.0
crw-rw-rw-  1 root  wheel  0xa5 Apr 16 06:05:04 2015 /dev/dsp0.1
crw-rw-rw-  1 root  wheel  0x9f Apr 16 06:05:04 2015 /dev/dsp1.0
crw-rw-rw-  1 root  wheel  0xa3 Apr 16 06:05:04 2015 /dev/dsp1.1
crw-rw-rw-  1 root  wheel  0xa2 Apr 16 09:21:58 2015 /dev/dsp2.1
crw-rw-rw-  1 root  wheel  0xa1 Apr 16 06:05:04 2015 /dev/dsp3.0
crw-rw-rw-  1 root  wheel  0xa4 Apr 16 06:05:04 2015 /dev/dsp3.1
crw-rw-rw-  1 root  wheel  0x4c Apr 16 06:01:12 2015 /dev/mixer0
crw-rw-rw-  1 root  wheel  0x4d Apr 16 06:01:12 2015 /dev/mixer1
crw-rw-rw-  1 root  wheel  0x4e Apr 16 06:01:12 2015 /dev/mixer2
crw-rw-rw-  1 root  wheel  0x4f Apr 16 06:01:12 2015 /dev/mixer3
cr--r--r--  1 root  wheel   0x5 Apr 16 06:44:42 2015 /dev/sndstat

Relevant excerpts from dmesg:
=2E..
vgapci0: Boot video device
hdac0: <NVIDIA (0x0e1b) HDA Controller> mem 0xf5080000-0xf5083fff irq 17 at=
 device 0.1 on pci1
xhci0: <Intel Lynx Point USB 3.0 controller> mem 0xf7120000-0xf712ffff irq =
16 at device 20.0 on pci0
=2E..
usbus1 on ehci0
hdac1: <Intel Lynx Point HDA Controller> mem 0xf7130000-0xf7133fff irq 22 a=
t device 27.0 on pci0
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
=2E..
load_dn_sched dn_sched WF2Q+ loaded
hdacc0: <NVIDIA (0x0042) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x0042) Audio Function Group> at nid 1 on hdacc0
pcm0: <NVIDIA (0x0042) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm1: <NVIDIA (0x0042) (HDMI/DP 8ch)> at nid 7 on hdaa0
hdacc1: <Realtek (0x0292) HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek (0x0292) Audio Function Group> at nid 1 on hdacc1
pcm2: <Realtek (0x0292) (Analog 2.0+HP/2.0)> at nid 20,21 and 24,25 on hdaa1
pcm3: <Realtek (0x0292) (Analog)> at nid 22 and 18 on hdaa1
usbus1: 480Mbps High Speed USB v2.0
=2E...

Relevant excerpts from output of "pciconf -lv":
=2E..
hdac1@pci0:0:27:0:      class=3D0x040300 card=3D0x05cc1028 chip=3D0x8c20808=
6 rev=3D0x04 hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D 'Lynx Point High Definition Audio Controller'
    class      =3D multimedia
    subclass   =3D HDA
=2E..
hdac0@pci0:1:0:1:       class=3D0x040300 card=3D0x05cc1028 chip=3D0x0e1b10d=
e rev=3D0xa1 hdr=3D0x00
    vendor     =3D 'NVIDIA Corporation'
    class      =3D multimedia
    subclass   =3D HDA
=2E...

The "hw.snd" sysctl OIDs:
g1-254(10.1-S)[14] sysctl hw.snd.|sort
hw.snd.compat_linux_mmap: 0
hw.snd.default_auto: 0
hw.snd.default_unit: 2
hw.snd.feeder_eq_exact_rate: 0
hw.snd.feeder_eq_presets: PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,8=
8200,96000,176400,192000
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.feeder_rate_quality: 1
hw.snd.feeder_rate_round: 25
hw.snd.latency: 5
hw.snd.latency_profile: 1
hw.snd.maxautovchans: 16
hw.snd.report_soft_formats: 1
hw.snd.report_soft_matrix: 1
hw.snd.verbose: 0
hw.snd.version: 2009061500/i386
hw.snd.vpc_0db: 45
hw.snd.vpc_autoreset: 1
hw.snd.vpc_mixer_bypass: 1
hw.snd.vpc_reset: 0
g1-254(10.1-S)[15]=20

Output of "mixer" when the effect is perceived:

g1-254(10.1-S)[23] foreach n ( `jot 4 0` )
foreach? echo "/dev/mixer${n}:"
foreach? mixer -f /dev/mixer$n
foreach? echo ""
foreach? end
/dev/mixer0:
Mixer vol      is currently set to   0:0
Mixer pcm      is currently set to   0:0

/dev/mixer1:
Mixer vol      is currently set to   0:0
Mixer pcm      is currently set to   0:0

/dev/mixer2:
Mixer vol      is currently set to   0:0
Mixer pcm      is currently set to 100:100
Mixer speaker  is currently set to  59:59
Mixer line     is currently set to   1:1
Mixer mic      is currently set to  67:67
Mixer mix      is currently set to  37:37
Mixer rec      is currently set to  37:37
Mixer igain    is currently set to   0:0
Mixer ogain    is currently set to 100:100
Recording source: mic

/dev/mixer3:
Mixer vol      is currently set to   0:0
Mixer pcm      is currently set to   0:0
Mixer rec      is currently set to  37:37
Mixer igain    is currently set to   0:0
Mixer ogain    is currently set to   0:0
Mixer monitor  is currently set to  56:56
Recording source: monitor

g1-254(10.1-S)[28]=20


(I had manually set vol & pcm to 0 for mixer0 & mixer1, and set vol
to 0 for mixer2 & mixer3.)

If I set vol to (say) 85 for mixer2 (default), the static remains
the same, but I am able to (also) hear the intended audio.

Using the (internal/system) speakers, sound Just Works as I'm used
to -- but a bit more disruptive at work than I'd prefer for viewing
& listening to an instructional video.

How may I diagnose this?

Thanks!

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Those who murder in the name of God or prophet are blasphemous cowards.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--L1c6L/cjZjI9d0Eq
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJVL/HuXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4
QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk76c0P/j3rIm0bfvNYBEciBxKUEd4y
+JlXP/oVJHY7H13de8mVK4ZOeOshCLQXa6S2nzN6wWYqCz71kwFptCT92FjbLjud
E4A0gvEWc5yLbXTNNWtVV6n0UZ/26uwPwmJww00c2vN6hVBgLrxA8TxadnSUMo8T
hMRqA6RmwzSHOukAiAijeBeiModECmC7HJ73MkHE1wbwJkAVdG+eV3KZ35GkrR3v
Twq7UoMAXNUGFJjPmUH/RIhMWbyJmb991HmYN9NelGvd33/wTT0fBHUMASLq5rip
PEyMXD421Tr3P0dze49i81q5EHzFVeA0Wko74uwEApIQ/0sZgIGq6sAQzWPPL+3u
x4DyFp3AzNR5eJTBD3v/ksrz4oyV4WAuJXftbIuXcAMEyb0grHr96Q9Q4VhO1N7V
ZWLCd8mUaVzYUEoryUlO0zRXGR8IThZUl9KEognVcSRFZqZN5H+t3zcPleLqr5xd
MOiU8WgobOmx59MuJm719d0yUVwpNDprA9P/nrnxRg72KIFzuYqQpoQDEtQRogb2
4x4CJuGwOVfvp7xOHO7ijVskXo9P2HuaRUU/zphi3Bn5j/Qri3deioFlZz0725NI
zSYxIGT8po98iZRkBtbkJThGeQxSwtkCPorg6JWrPPfKK/Ja8rFH4JgiV8qOzf/E
9yDMCclqD5ln66eIM+Qg
=1C10
-----END PGP SIGNATURE-----

--L1c6L/cjZjI9d0Eq--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150416173126.GG36163>