Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
static noise on two different sound cards [invalid]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Thu Oct 20, 2016 5:03 pm    Post subject: static noise on two different sound cards [invalid] Reply with quote

Greetings all,

I've encountered a strange issue on my machine, for some reason playing a mp3, flac or youtube renders static sound out of the speakers.
I get the same when trying an usb card.
the issue reproduces on latest gentoo sources, gs-4.7.0 and gs-4.6.0
I've also tried to downgrade media-sound/alsa-utils and media-libs/alsa-lib but the issue still persists.
here are some outputs:
Code:
dagg@NCC-5001-D ~ $ eix -I alsa
[I] dev-python/pyalsa
     Available versions:  1.0.26-r1 (~)1.0.29 {PYTHON_TARGETS="pypy python2_7"}
     Installed versions:  1.0.29(21:06:36 03/23/15)(PYTHON_TARGETS="python2_7 -pypy")
     Homepage:            http://alsa-project.org/
     Description:         Python bindings for ALSA library

[I] media-libs/alsa-lib
     Available versions:  1.0.29 (~)1.1.1 [m](~)1.1.2 {alisp debug doc python ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="uclibc" PYTHON_TARGETS="python2_7"}
     Installed versions:  1.1.1(07:53:17 10/20/16)(python -alisp -debug -doc ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" ELIBC="-uclibc" PYTHON_TARGETS="python2_7")
     Homepage:            http://www.alsa-project.org/
     Description:         Advanced Linux Sound Architecture Library

[I] media-sound/alsa-tools
     Available versions:  (0.9) 1.0.28 1.0.29 (~)1.1.0
       {fltk gtk ALSA_CARDS="emu10k1 emu10k1x hdsp hdspm ice1712 mixart pcxhr rme32 rme96 sb16 sbawe sscape usb-usx2y vx222"}
     Installed versions:  1.1.0(0.9)(12:59:13 01/08/16)(gtk -fltk ALSA_CARDS="-emu10k1 -emu10k1x -hdsp -hdspm -ice1712 -mixart -pcxhr -rme32 -rme96 -sb16 -sbawe -sscape -usb-usx2y -vx222")
     Homepage:            http://www.alsa-project.org/
     Description:         Advanced Linux Sound Architecture tools

[I] media-sound/alsa-utils
     Available versions:  (0.9) 1.0.29 (~)1.1.1 [m](~)1.1.2
       {bat doc +libsamplerate +ncurses nls selinux}
     Installed versions:  1.1.1(0.9)(07:54:10 10/20/16)(libsamplerate ncurses nls -bat -doc -selinux)
     Homepage:            http://www.alsa-project.org/
     Description:         Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)

Found 4 matches
dagg@NCC-5001-D ~ $ emerge --info
setlocale: unsupported locale setting
setlocale: unsupported locale setting
Portage 2.3.2 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r2, 4.8.2-gentoo x86_64)
=================================================================
System uname: Linux-4.8.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    14878584 total,  10522940 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Thu, 20 Oct 2016 04:30:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.22.2::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /mnt/portage/tree/official
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --timeout=180

Utopia_Platinia
    location: /mnt/portage/tree/overlay
    masters: gentoo
    priority: 0

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 1

tox-overlay
    location: /var/lib/layman/tox-overlay
    masters: gentoo
    priority: 2

palemoon
    location: /var/lib/layman/palemoon
    masters: gentoo
    priority: 3

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 4

Installed sets: @openwrt-prerequisites
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA FraunhoferFDK dlj-1.1 skype-4.0.0.7-copyright Broadcom PUEL googleearth LOKI-EULA AdobeFlash-11.x RTCW-ETEULA ut2003 MakeMKV-EULA Q3AEULA TeamViewer"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.isoc.org.il/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=180"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aio alsa amd64 amr audiofile avx bash-completion berkdb bidi branding bzip2 c++0x cairo cdda cdparanoia cdr cjk cleartype cli consolekit cracklib crypt css cups curl cxx dbus declarative device-mapper dga dri drm dts dv dvb dvd dvdr dvdread edb emboss encode exif faad fam ffmpeg firefox flac ftp gallium gdbm gif glamor gphoto2 gpm gtk iconv icq icu id3tag imagemagick java javascript jpeg jpeg2k kde kipi lame lcms ldap libnotify lua lzma mad matroska mmx mmxext mng modules mp3 mp4 mpeg mtp multilib nas ncurses nls nptl nsplugin ogg openal openexr opengl openmp pam pango pcre pdf perl phonon php plasma png policykit ppds private-headers python qml qt3support qt5 quicktime readline real samba scanner sdl seccomp semantic-desktop session smp sndfile spell srt sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype udev udisks udisks2 unicode upower usb v4l v4l2 vaapi vcd vdpau vorbis vpx wavpack widgets wifi wma wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xosd xrandr xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="he es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en he es" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 arm aarch64" QEMU_USER_TARGETS="x86_64 arm aarch64" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="v4l radeon r600 intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
dagg@NCC-5001-D ~ $ uname -a
Linux NCC-5001-D 4.8.2-gentoo #1 SMP PREEMPT Mon Oct 17 15:13:57 IDT 2016 x86_64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz GenuineIntel GNU/Linux
dagg@NCC-5001-D ~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, ALC889 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC889 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI_1,DEV=0
    HDA ATI HDMI, HDMI 0
    HDMI Audio Output
default:CARD=Device
    Generic USB Audio Device, USB Audio
    Default Audio Device
sysdefault:CARD=Device
    Generic USB Audio Device, USB Audio
    Default Audio Device
front:CARD=Device,DEV=0
    Generic USB Audio Device, USB Audio
    Front speakers
surround21:CARD=Device,DEV=0
    Generic USB Audio Device, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Device,DEV=0
    Generic USB Audio Device, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
    Generic USB Audio Device, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
    Generic USB Audio Device, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
    Generic USB Audio Device, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
    Generic USB Audio Device, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
    Generic USB Audio Device, USB Audio
    IEC958 (S/PDIF) Digital Audio Output


and the latest kernel config can be found at https://paste.pound-python.org/show/ql55JQD7CfAkUlHrp9Au/

any hints that can help me figure out what is the matter?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein


Last edited by DaggyStyle on Sat Oct 22, 2016 10:21 am; edited 1 time in total
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Fri Oct 21, 2016 5:53 am    Post subject: Reply with quote

According to emerge -info you have in /etc/portage/make.conf
Code:
ALSA_CARDS="hda-intel usb-audio"

This variable is not configure by me and emerge -info give me this
Code:
 ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"

So, try to comment the ALSA_CARDS and do an
Code:
emerge -aDNuv @world

to see if emerge will change something. You may need the alsa-firmware package to be emerge.

You can mute all non needed channels for the sound output to see if the noise dissapear.
_________________
Paul
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Fri Oct 21, 2016 6:33 am    Post subject: Reply with quote

Something hardware related, ground loop or whatnot. You could try with a liveCD just to make sure this is not Gentoo related.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Fri Oct 21, 2016 10:30 am    Post subject: Reply with quote

Logicien wrote:
According to emerge -info you have in /etc/portage/make.conf
Code:
ALSA_CARDS="hda-intel usb-audio"

This variable is not configure by me and emerge -info give me this
Code:
 ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"

So, try to comment the ALSA_CARDS and do an
Code:
emerge -aDNuv @world

to see if emerge will change something. You may need the alsa-firmware package to be emerge.

thanks for the tips, will try commenting ALSA_CARDS out, if it doesn't work, will try alsa-firmware (I highly doubt this is the issue but still).

Logicien wrote:

You can mute all non needed channels for the sound output to see if the noise dissapear.

good idea, will try that too.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Fri Oct 21, 2016 10:32 am    Post subject: Reply with quote

Buffoon wrote:
Something hardware related, ground loop or whatnot. You could try with a liveCD just to make sure this is not Gentoo related.

I highly doubt this is a hw issue as it happens on two distinct devices which are connected via different interface (pci and usb).
I'll try the livecd issue although I'm pretty sure this is a Gentoo issue.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Fri Oct 21, 2016 10:35 am    Post subject: Reply with quote

Logicien wrote:

You can mute all non needed channels for the sound output to see if the noise dissapear.

muting the front bar makes the noise disappear.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Sat Oct 22, 2016 10:23 am    Post subject: Reply with quote

crap, I did it again, it all started when I got static noise on a youtube video.
then it continued when I used aplay to test the speakers.
alas, aplay doesn't support mp3 nor flac.

now everything works great, sorry for wasting you time...
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sat Oct 22, 2016 12:10 pm    Post subject: Reply with quote

What do you mean by invalid in your title? It look funny enough to smile.

:D
_________________
Paul
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Sat Oct 22, 2016 6:13 pm    Post subject: Reply with quote

I guess it means there is something wrong with analog part of the sound. Has nuttin' to do with digital processing on the mobo nor the software.
Back to top
View user's profile Send private message
ian.au
l33t
l33t


Joined: 07 Apr 2011
Posts: 606
Location: Australia

PostPosted: Sat Oct 22, 2016 11:39 pm    Post subject: Reply with quote

Logicien wrote:
What do you mean by invalid in your title? It look funny enough to smile.

:D

I think he's referring to that ubiquitous device installed between keyboard and chair :lol:
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Sun Oct 23, 2016 10:42 am    Post subject: Reply with quote

Logicien wrote:
What do you mean by invalid in your title? It look funny enough to smile.

:D

nicer way to say that the user is a dumbass yet again (not the first time I did the exact same thing).

Buffoon wrote:
I guess it means there is something wrong with analog part of the sound. Has nuttin' to do with digital processing on the mobo nor the software.

nope, I was trying to play a compressed file with aplay and it seems to unable to decode it or play it, resulting with a static noise

ian.au wrote:
Logicien wrote:
What do you mean by invalid in your title? It look funny enough to smile.

:D

I think he's referring to that ubiquitous device installed between keyboard and chair :lol:

you are wrong, that is the biggest virus there it, as it wasn't able to cause any damage it wasn't a virus. I think one can refer to it as a misconfigured daemon.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
ian.au
l33t
l33t


Joined: 07 Apr 2011
Posts: 606
Location: Australia

PostPosted: Sun Oct 23, 2016 9:21 pm    Post subject: Reply with quote

DaggyStyle wrote:
ian.au wrote:

I think he's referring to that ubiquitous device installed between keyboard and chair :lol:

you are wrong,

Hardly the first time...
Quote:
that is the biggest virus there it, as it wasn't able to cause any damage it wasn't a virus. I think one can refer to it as a misconfigured daemon.

:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum