You are not logged in.

#1 2014-07-15 17:26:39

Ploppz
Member
Registered: 2013-09-14
Posts: 311

[Solved] Extreme sound issues with alsa

Hi. At first I just couldn't get any sound, on my laptop, using alsa.

mpc play said "ERROR: Failed to open audio output"
speaker-test said "Playback open error: -2,No such file or directory"

I tried this, since I guess I do have onboard Intel sound card.. idk how I can know for sure. Anyway, after that I blacklisted that thing, a constant white noise came from my laptop; not too annoying. I rebooted and when I booted again to Arch, my pc made a continous, wrenching and extremely loud tone. The tone is not clean, it has small variations of pitch, thus it sounds like two giant metal things clench together, like a train breaking; I don't have any first hand experience on that field though. I forced it to shut off, connected my headphones and that's the reason I can write this post on my laptop atm. I removed /etc/modprobe.d/modprobe.conf (it didn't exist before I tried this fix), and rebooted. However the problem persists, and I have no idea what to do. I can't use my laptop if this continues.

Thank you in advance.

Last edited by Ploppz (2014-07-19 09:10:08)

Offline

#2 2014-07-15 17:31:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,529
Website

Re: [Solved] Extreme sound issues with alsa

I have no idea what the new noise issue is.  But the intial problem simply sounds like not having an active login session.  Do amixer / speaker-test work in a tty and/or is this only a problem in X (this =  no access to speaker-test)?  If so, how do you start X?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2014-07-15 17:38:43

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: [Solved] Extreme sound issues with alsa

I use startx to start X.
amixer and alsamixer work in tty, but speaker-test still says the same error. I still have my headphones connected btw, in order to disable that wrenching sound. E: amixer and alsamixer both work in X as well.

Last edited by Ploppz (2014-07-15 17:40:21)

Offline

#4 2014-07-16 03:56:49

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Solved] Extreme sound issues with alsa

The sound issue is probably related to sample rate or other basic sound hardware parameters. I have witnessed/heard that dreaded noise (or at least something similar judging from your description) on multiple occasions. It usually happens on my setup when one applications (or a sound server like jack) uses the sound device at a specified sample rate, and another overrides that (manually setting another sample rate through alsamixer). This also resets volume levels to default, in my case to maximum.

I assume that you have an hda compliant sound card and hope your headphones are cheap ones, it would be better to plug in a loose jack or an adapter, should there be a circuit breaking mechanism inside. Also in emergencies as such, using hdajackrestask from alsa-tools package, to disable a output might prove helpful.

The other issue of device not found is probably related to your device not using the default 0,0 combination of card and device number.

To solve these issues, you need to provide information about your hardware and settings:

lspci -nn | grep -i audio; aplay -lL; lsmod | grep ^snd;
amixer -c 0; amixer -c 1; systool -v -m snd_hda_intel

Edit: And please use code tags while posting the outputs, preferably each in separate tags.

Last edited by emeres (2014-07-16 03:58:53)

Offline

#5 2014-07-16 14:33:08

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: [Solved] Extreme sound issues with alsa

Thanks for replies. Note that the sound starts as soon as I have pressed enter in the OS selection screen during boot - I suppose no applications should use the sound device at that time.

Also, when plugging in headphones, there is no sound coming through them when I plug them in I think. Also, I have a volume slide on them so it's fine.

pkgfile hdajackrestasks gives no results, and it's not in alsa-tools either.

$ lspci -nn | grep -i audio; aplay -lL; lsmod | grep ^snd

00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=PCH
    HDA Intel PCH, VT1802 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: VT1802 Analog [VT1802 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: VT1802 Alt Analog [VT1802 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
grep: bin: Is a directory
grep: books: Is a directory
grep: bspwm-old: Is a directory
grep: copyofsd: Is a directory
grep: db: Is a directory
grep: Desktop: Is a directory
grep: documents: Is a directory
grep: Downloads: Is a directory
grep: downloads: Is a directory
grep: FDT: Is a directory
grep: games: Is a directory
grep: kisrti: Is a directory
grep: misc: Is a directory
grep: movies: Is a directory
grep: notes: Is a directory
grep: output: Is a directory
grep: pics: Is a directory
grep: PKGBUILD: Is a directory
grep: prms: Is a directory
grep: programs: Is a directory
grep: scripts: Is a directory
grep: Sync: Is a directory
grep: VirtualBox VMs: Is a directory
weechat.conf:bar_more_down = "++"
weechat.conf:bar_more_left = "<<"
weechat.conf:bar_more_right = ">>"
weechat.conf:bar_more_up = "--"
weechat.conf:bar_more = lightmagenta
weechat.conf:[bar]
weechat.conf:isetbar.color_bg = default
weechat.conf:isetbar.color_delim = default
weechat.conf:isetbar.color_fg = default
weechat.conf:isetbar.conditions = ""
weechat.conf:isetbar.filling_left_right = vertical
weechat.conf:isetbar.filling_top_bottom = horizontal
weechat.conf:isetbar.hidden = on
weechat.conf:isetbar.items = "isetbar_help"
weechat.conf:isetbar.position = top
weechat.conf:isetbar.priority = 0
weechat.conf:isetbar.separator = on
weechat.conf:isetbar.size = 3
weechat.conf:isetbar.size_max = 3
weechat.conf:isetbar.type = window
weechat.conf:meta-meta2-23~ = "/bar scroll nicklist * b"
weechat.conf:meta-meta2-24~ = "/bar scroll nicklist * e"
weechat.conf:meta2-20~ = "/bar scroll title * -30%"
weechat.conf:meta2-21~ = "/bar scroll title * +30%"
weechat.conf:meta2-23~ = "/bar scroll nicklist * -100%"
weechat.conf:meta2-24~ = "/bar scroll nicklist * +100%"
weechat.conf:@bar(input):button2 = "/input grab_mouse_area"
weechat.conf:@bar(nicklist):button1-gesture-down = "/bar scroll nicklist ${_window_number} +100%"
weechat.conf:@bar(nicklist):button1-gesture-down-long = "/bar scroll nicklist ${_window_number} e"
weechat.conf:@bar(nicklist):button1-gesture-up = "/bar scroll nicklist ${_window_number} -100%"
weechat.conf:@bar(nicklist):button1-gesture-up-long = "/bar scroll nicklist ${_window_number} b"
weechat.conf:@bar:wheeldown = "/bar scroll ${_bar_name} ${_window_number} +20%"
weechat.conf:@bar:wheelup = "/bar scroll ${_bar_name} ${_window_number} -20%"
grep: weechat-copy: Is a directory
grep: workspace: Is a directory

$ amixer -c 0; systool -v -m snd_hda_intel

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 42
  Mono: Playback 33 [79%] [-13.50dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 42
  Mono:
  Front Left: Playback 38 [90%] [-6.00dB] [on]
  Front Right: Playback 38 [90%] [-6.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 42
  Mono:
  Front Left: Playback 38 [90%] [-6.00dB] [on]
  Front Right: Playback 38 [90%] [-6.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 201 [79%] [-10.80dB]
  Front Right: Playback 201 [79%] [-10.80dB]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.75dB]
  Front Right: 3 [100%] [30.75dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [30.00dB] [on]
  Front Right: Capture 31 [100%] [30.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 81 [68%] [10.50dB]
  Front Right: Capture 81 [68%] [10.50dB]
Simple mixer control 'Dynamic Power-Control',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Independent HP',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Internal Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.75dB]
  Front Right: 3 [100%] [30.75dB]
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Module = "snd_hda_intel"

  Attributes:
    coresize            = "22549"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "0"
    taint               = ""
    uevent              = <store method only>

  Parameters:
    align_buffer_size   = "-1"
    bdl_pos_adj         = "1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    beep_mode           = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    enable_msi          = "-1"
    enable              = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    id                  = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    index               = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    jackpoll_ms         = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    model               = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    patch               = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    position_fix        = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    power_save          = "0"
    power_save_controller= "Y"
    probe_mask          = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    probe_only          = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    single_cmd          = "N"
    snoop               = "Y"

  Sections:
    .bss                = "0xffffffffa0048c80"
    .data               = "0xffffffffa0048200"
    .data.unlikely      = "0xffffffffa00489d0"
    .exit.text          = "0xffffffffa004689f"
    .gnu.linkonce.this_module= "0xffffffffa0048a00"
    .init.text          = "0xffffffffa0082000"
    .note.gnu.build-id  = "0xffffffffa00468b4"
    .rodata             = "0xffffffffa0046900"
    .rodata.str1.1      = "0xffffffffa00477c2"
    .rodata.str1.8      = "0xffffffffa0047b70"
    .smp_locks          = "0xffffffffa0047e58"
    .strtab             = "0xffffffffa0084558"
    .symtab             = "0xffffffffa0082020"
    .text               = "0xffffffffa0044000"
    __mcount_loc        = "0xffffffffa0048088"
    __param             = "0xffffffffa0047e68"
    __verbose           = "0xffffffffa0048840"

Last edited by Ploppz (2014-07-16 14:41:45)

Offline

#6 2014-07-16 15:09:03

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Solved] Extreme sound issues with alsa

Ploppz wrote:

Note that the sound starts as soon as I have pressed enter in the OS selection screen during boot - I suppose no applications should use the sound device at that time.

It happens just after initialization. This state can very well be sustained after downtime in my experience, sometimes a reboot is necessary to be able to change settings of the sound card.

Ploppz wrote:

pkgfile hdajackrestasks gives no results, and it's not in alsa-tools either.

Really?

$ pacman -Ql alsa-tools | grep hdajack
alsa-tools /usr/bin/hdajackretask

Please refrain from blindly copying and pasting. Grepping sound modules from lsmod obviously was not run properly, you may need to escape '^' with a backslash in your shell[s_ configuration]. Be so kind and correct that. Probably nothing new there, but to avoid surprises run it. I meant using tags for separate commands, but I will get through this.

Try to initialize the card from the console:

sudo alsactl init; sudo alsactl restore

You have one of those cards where every setup is only one device. Turn the capture, mics and digital down, then disable auto-mute, loopback mixing, dynamic power-control (what is that?) and iec958. Reboot. I would try changing every option just to make sure.

Post codec information:

cat /proc/asound/card*/codec*

You may also want to run hdajackretask and disable and enable that port or all of them.

Offline

#7 2014-07-16 16:48:59

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: [Solved] Extreme sound issues with alsa

Sorry,

$ lsmod | grep \^snd

snd_hda_codec_hdmi     40396  1 
snd_hda_codec_via      20518  1 
snd_hda_codec_generic    56366  1 snd_hda_codec_via
snd_hda_intel          22549  0 
snd_hda_controller     22911  1 snd_hda_intel
snd_hda_codec         104665  5 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep               6652  1 snd_hda_codec
snd_pcm                83207  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              19294  1 snd_pcm
snd                    61276  8 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_via,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel

$ cat /proc/asound/card*/codec*

Codec: VIA VT1802
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x11068446
Subsystem Id: 0x15580550
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x08 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="VT1802 Analog", type="Audio", device=0
  Device: name="VT1802 Alt Analog", type="Audio", device=2
  Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
  Amp-Out vals:  [0x1d 0x1d]
  Converter: stream=5, channel=0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x09 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
  Amp-Out vals:  [0x1d 0x1d]
  Converter: stream=5, channel=0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0d [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0e [Audio Output] wcaps 0x611: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x0f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x10 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="VT1802 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x1f 0x1f]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x1e
Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x8b 0x8b]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x1f
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x00 0x00]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x34 0x21
Node 0x15 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x00 0x00]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x35 0x21
Node 0x16 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x17 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x18 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x38 0x21
Node 0x19 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1b [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1c [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x3c 0x21
Node 0x1d [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1e [Audio Selector] wcaps 0x300501: Stereo
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 5
     0x2b 0x2a 0x29* 0x21 0x30
Node 0x1f [Audio Selector] wcaps 0x300501: Stereo
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 5
     0x2b* 0x2a 0x29 0x21 0x30
Node 0x20 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x21 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
  Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Internal Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Internal Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x1f 0x1f] [0x80 0x80] [0x1f 0x1f]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 3
     0x2b 0x2a 0x29
  In-driver Connection: 4
     0x2b 0x2a 0x29 0x08
Node 0x22 [Beep Generator Widget] wcaps 0x70040c: Mono Amp-Out
  Amp-Out caps: ofs=0x0a, nsteps=0x12, stepsize=0x05, mute=1
  Amp-Out vals:  [0x0a]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x23 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x24 [Pin Complex] wcaps 0x40050d: Stereo Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
    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]
  Pincap 0x00010050: OUT EAPD Balanced
  EAPD 0x3: BALANCED EAPD
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x14* 0x3e
Node 0x25 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Front Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0221401f: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x15
Node 0x26 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x27 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x28 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x422140f0: [N/A] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x18
Node 0x29 [Pin Complex] wcaps 0x400481: Stereo
  Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Internal Mic Phantom Jack", index=0, device=0
  Pincap 0x00002324: IN Detect
    Vref caps: HIZ 50 100
  Pin Default 0x90a701f0: [Fixed] Mic at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x2a [Pin Complex] wcaps 0x400481: Stereo
  Pincap 0x00002324: IN Detect
    Vref caps: HIZ 50 100
  Pin Default 0x418130f0: [N/A] Line In at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x2b [Pin Complex] wcaps 0x400481: Stereo
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Jack", index=0, device=0
  Pincap 0x00002324: IN Detect
    Vref caps: HIZ 50 100
  Pin Default 0x01a190f0: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x2c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x2d [Pin Complex] wcaps 0x400701: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x474411f0: [N/A] SPDIF Out at Ext Rear Panel
    Conn = RCA, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x0e
Node 0x2e [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x2f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x30 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x50a600f0: [N/A] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x31 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x32 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x33 [Pin Complex] wcaps 0x40050c: Mono Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80]
  Pincap 0x00000010: OUT
  Pin Default 0x501701f0: [N/A] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x3e
  In-driver Connection: 1
     0x1c
Node 0x34 [Audio Selector] wcaps 0x300501: Stereo
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x08 0x09*
Node 0x35 [Audio Selector] wcaps 0x300501: Stereo
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x08* 0x09
Node 0x36 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x37 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x38 [Audio Selector] wcaps 0x300501: Stereo
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x08* 0x09
Node 0x39 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x3a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x3b [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x3c [Audio Selector] wcaps 0x300501: Stereo
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x08* 0x09
Codec: Intel PantherPoint HDMI
Address: 3
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862806
Subsystem Id: 0x15580550
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0, Clock-stop-OK
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x58560010: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="HDMI/DP,pcm=3 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="ELD", index=0, device=3
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560020: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x03
Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x58560030: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x04
Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono

About that hdajackretask: forgot that I need a new terminal to reload path..

I did alsactl init and restore, and changed a lot of options in alsamixer - muted and disabled almost everything, and will now reboot and edit this post.

E: Indeed, the sounds are gone now. However, there is still no sound, and I get the same error from speaker-test and mpc.

Btw, "I meant using tags for separate commands" - what do you mean by tags? Just that I should run them separately?

Last edited by Ploppz (2014-07-16 17:01:55)

Offline

#8 2014-07-16 17:38:29

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Solved] Extreme sound issues with alsa

Code tags [_code_][_/code_] tags without the underscores. easier to read and distinct between commands if every one gets its own pair.

What is the output of these speaker-test commands (post them in one if you want):

speaker-test -c 2 -t wav -D plughw:PCH
speaker-test -c 8 -t wav -D default:PCH
speaker-test -c 8 -t wav -D plughw:PCH
speaker-test -c 8 -t wav -D plughw:PCH,1
speaker-test -c 8 -t wav -D plughw:PCH,2

I think channels might be mapped incorrectly. I would keep auto-mute, iec958 and other functions disabled for now. You may want to play with other parameters as well.

Last edited by emeres (2014-07-16 17:39:04)

Offline

#9 2014-07-17 15:48:57

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: [Solved] Extreme sound issues with alsa

I want auto-mute enabled, because else plugging in a jack won't mute the bad sounds. I don't have any iec958 option. Booleans are: Auto-Mute, Dynamic Power, Independent HP, Loopback Mixing.

$ speaker-test -c 2 -t wav -D plughw:PCH

speaker-test 1.0.28

Playback device is plughw:PCH
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
Time per period = 10,929076
 0 - Front Left
 1 - Front Right

It loops the last three lines infinitely apparently.

$ speaker-test -c 8 -t wav -D default:PCH

speaker-test 1.0.28

Playback device is default:PCH
Stream parameters are 48000Hz, S16_LE, 8 channels
WAV file(s)
ALSA lib conf.c:4705:(snd_config_expand) Unknown parameters PCH
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default:PCH
Playback open error: -22,Invalid argument

$ speaker-test -c 8 -t wav -D plughw:PCH

speaker-test 1.0.28

Playback device is plughw:PCH
Stream parameters are 48000Hz, S16_LE, 8 channels
WAV file(s)
Playback open error: -16,Device or resource busy

$ speaker-test -c 8 -t wav -D plughw:PCH,1

speaker-test 1.0.28

Playback device is plughw:PCH,1
Stream parameters are 48000Hz, S16_LE, 8 channels
WAV file(s)
Playback open error: -2,No such file or directory

$ speaker-test -c 8 -t wav -D plughw:PCH,2

speaker-test 1.0.28

Playback device is plughw:PCH,2
Stream parameters are 48000Hz, S16_LE, 8 channels
WAV file(s)
Playback open error: -16,Device or resource busy

Edit: Note: there is a short (and very loud) BEEP when I run scrot!

Last edited by Ploppz (2014-07-17 19:14:40)

Offline

#10 2014-07-17 16:19:56

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Solved] Extreme sound issues with alsa

Ploppz wrote:

I want auto-mute enabled, because else plugging in a jack won't mute the bad sounds. I don't have any iec958 option. Booleans are: Auto-Mute, Dynamic Power, Independent HP, Loopback Mixing.

Keep auto-mute enabled afterwards, now the priority is to get the sound working again. You do have iec958 in one form or another:

Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

It may be called S/PDIF in alsamixer, or simply use:

amixer sset 'IEC958' off

You had several resource busy messages. To see what is using the device run:

fuser -v /dev/snd/*

And if necessary kill those applications, run the speaker-test again. Test the setup with speaker-test only for now, when that works alright, you can use other applications. The point of this is to get the right channel map ('-m' switch) for your hardware should it be necessary and to see what should be the default device. You can use '-l 5' switch for five loops. For more information read the manual:

man speaker-test

Edit:

Try also:

speaker-test -c 8 -l 5 -t wav -D plug:surround71

Maybe disabling independent hp on the codec level will help:

echo 'indep_hp = false' > /sys/class/sound/hwC0D0/hints
echo 1 > /sys/class/sound/hwC0D0/reconfig

Last edited by emeres (2014-07-17 16:48:40)

Offline

#11 2014-07-17 19:22:58

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: [Solved] Extreme sound issues with alsa

The fuser command did not give any output at all. I set IEC958 off. When you say -m, are you talking about speaker-test? But what should I put after -m? Btw, I'm very thankful that you're helping me.

Aand then I read the rest of your post (the edit), and the speaker-test with several options you privided, works (it says front left, front right)! I then did your last commands (echo ..); didn't have any immediate effect but I guess I should reboot then.

PS: Look at the edit of my last post.

Offline

#12 2014-07-17 20:34:24

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Solved] Extreme sound issues with alsa

You can try that last command with front, surround21, surround51 or whatever suits you best, instead of surround71. If you want stereo output only and front works, use that.

The last step would be setting the device you choose as default using ~/.asoundrc:

pcm.!default {	type plug;
		slave.pcm {	@func getenv
				vars [ ALSA_DEFAULT_PCM ]
				default "surround71";	}	}

After that simply running speaker-test should output sound and your 'device not found' errors should disappear. You will be also able to select the default pcm device when running an application using 'env' for example:

env ALSA_DEFAULT_PCM=surround21 speaker-test

The mpc issue could be related to wrongly configured mpd server, should that be the case, start a new thread. As for the loud beep, that looks like the internal speaker, you should be able to disable it by removing pcspkr module and blacklisting it:

$ sudo rmmod pcskpr; scrot; # there
# should be no beep, maybe it is 
# emulated by the sound card though
$ cat /etc/modprobe.d/50-nobeep.conf
blacklist pcspkr

Last edited by emeres (2014-07-17 20:36:15)

Offline

#13 2014-07-19 09:09:53

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: [Solved] Extreme sound issues with alsa

Thank you so much!

Offline

#14 2014-07-19 22:13:27

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Solved] Extreme sound issues with alsa

You are welcome.

Offline

Board footer

Powered by FluxBB