You are not logged in.

#1 2014-05-26 15:53:19

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

[SOLVED] Sound stops working after a few minutes

Hello,

Since yesterday I'm having a weird problem and I have no idea what to look for to solve it.

When I boot my laptop, the sound works perfectly (I use pulseaudio). But after a few minutes (sometimes 1 minute, sometimes 30 or 40) the sound suddenly stops working. I've had that laptop for a 6 or 7 weeks, and I've had no issue with sound whatsoever so far.

Pulseaudio is still running, so is alsa, and when looking at pavucontrol or pavumeter, it still shows sound being outputed, except the volume bar gets updated every second or so, instead of a fluent update.

I have no idea what to do, or what to look for. Here is what I did so far:

- I've checked journalctl to see if I had any error due to pulse, and I have none
- I've tried using aplay and paplay on a wav file, both run fine, without outputting any error, and I can see their output level in pavucontrol (except, as I said, it got updated every second)
- I've run a dmesg | grep error, but get no output
- I've tried restarting pulseaudio. After this restart, paplay still does not return any error, but aplay gives me messages every second: "perte!!! (au moins longue de 1054,275 ms)" which could be translated as "loss!!! (at least as long as 1054,275ms)"
- I've booted on Windows, where I had no issue with sound at all.


Also, I've looked at my pacman logs to see what packages have been updated recently. My two lasts updates were on May 24th and May 26th, here is the list of updated packets:

[2014-05-24 22:27] [PACMAN] upgraded file-roller (3.12.1-1 -> 3.12.2-1)
[2014-05-24 22:27] [PACMAN] upgraded gsettings-desktop-schemas (3.12.0-1 -> 3.12.2-1)
[2014-05-24 22:27] [PACMAN] upgraded harfbuzz (0.9.26-2 -> 0.9.28-1)
[2014-05-24 22:27] [PACMAN] upgraded harfbuzz-icu (0.9.26-2 -> 0.9.28-1)
[2014-05-24 22:27] [PACMAN] upgraded mesa (10.1.3-1 -> 10.1.4-1)
[2014-05-24 22:27] [PACMAN] upgraded mesa-libgl (10.1.3-1 -> 10.1.4-1)
[2014-05-24 22:27] [PACMAN] upgraded intel-dri (10.1.3-1 -> 10.1.4-1)
[2014-05-24 22:27] [PACMAN] upgraded lib32-mesa (10.1.3-1 -> 10.1.4-1)
[2014-05-24 22:27] [PACMAN] upgraded lib32-mesa-libgl (10.1.3-1 -> 10.1.4-1)
[2014-05-24 22:27] [PACMAN] upgraded lib32-intel-dri (10.1.3-1 -> 10.1.4-1)
[2014-05-24 22:27] [PACMAN] upgraded libxkbcommon (0.4.1-1 -> 0.4.2-1)
[2014-05-24 22:27] [PACMAN] upgraded python2-markupsafe (0.21-1 -> 0.23-1)
[2014-05-26 01:19] [PACMAN] upgraded grep (2.18-1 -> 2.19-1)
[2014-05-26 01:19] [PACMAN] upgraded man-pages (3.66-1 -> 3.67-1)
[2014-05-26 01:19] [PACMAN] upgraded wayland (1.4.0-1 -> 1.5.0-1

Any idea what could be the cause to that sudden change? Also where should I look to find the causes of the problem? Any help will be greatly appreciated.

EDIT: I've rebooted and launched pulseaudio in verbose mode when sound was still working. Here is what was outputed right after the sound stopped working:

I: [alsa-sink-ALC892 Analog] ratelimit.c: 33 events suppressed
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Underrun!
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Increasing minimal latency to 1,00 ms
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Increasing minimal latency to 2,00 ms
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Increasing minimal latency to 4,00 ms
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Increasing minimal latency to 8,00 ms
I: [alsa-source-ALC892 Analog] alsa-source.c: Increasing minimal latency to 2,00 ms
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Increasing minimal latency to 16,00 ms
I: [alsa-source-ALC892 Analog] alsa-source.c: Increasing minimal latency to 4,00 ms
I: [alsa-source-ALC892 Analog] alsa-source.c: Overrun!
I: [alsa-source-ALC892 Analog] alsa-source.c: Increasing minimal latency to 16,00 ms
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Underrun!
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Increasing minimal latency to 26,00 ms
I: [alsa-source-ALC892 Analog] alsa-source.c: Overrun!
I: [alsa-source-ALC892 Analog] alsa-source.c: Increasing minimal latency to 26,00 ms

And it loops between Overrun and Underrun.


EDIT 2: So I'm trying to see if I can get the sound working again without rebooting, which would be useful at least before I find how to fix it permanently.

When I boot, I can kill pulse, and start it again several times, the sond is still working. Once it has failed though, I cannot get it to work again. When I kill and then restart pulse, the logs end this way:

I: [pulseaudio] main.c: Démarrage du démon effectué.
I: [pulseaudio] module-suspend-on-idle.c: Source alsa_input.pci-0000_00_1b.0.analog-stereo idle for too long, suspending ...
I: [alsa-source-ALC892 Analog] alsa-source.c: Device suspended...
I: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_1b.0.analog-stereo idle for too long, suspending ...
I: [alsa-sink-ALC892 Analog] alsa-sink.c: Device suspended...

The first line can be translated as "Daemon started". I tried to see if something was using my sound card, but when pulseaudio is killed, running "fuser /dev/snd/*" doesn't return anything.

I can post the full logs if needed, for a successful pulseaudio launch as well as for a failing one.


EDIT: Solved by creating a file in /etc/modprobe.d/ manually setting the sound card order, as well as setting the snoop option to 0 for my PCH card. (look below for details).

Last edited by bobbyblues (2014-05-28 03:43:12)

Offline

#2 2014-05-26 19:49:46

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

Re: [SOLVED] Sound stops working after a few minutes

What uses sound?

fuser -v /dev/snd/*

Rule out PulseAudio by killing it after starting X and doing something sound intensive for a [long] while. Did you set any limits for audio? I would suspect the kernel or PA, but you did not update any of them lately. Something might desperately try to use sound and is in a loop. For logs run something less specific like:

dmesg | egrep -i 'err|pulse|audio|sound|underrun|latency|xrun|buffer'

PS. Read the wiki how to get English output from commands.

Edit: Missed you last edit.

Last edited by emeres (2014-05-26 19:52:23)

Offline

#3 2014-05-26 20:22:47

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

Re: [SOLVED] Sound stops working after a few minutes

Thanks for your answer.

Here is the output for both commands, it is the same before and after the sound stops:

$ fuser -v /dev/snd/* 
                     UTIL.       PID ACCÈS  COMMANDE
/dev/snd/controlC0:  bobbyblues    796 F.... pulseaudio
/dev/snd/controlC1:  bobbyblues    796 F.... pulseaudio
/dev/snd/pcmC1D0p:   bobbyblues    796 F...m pulseaudio
$ dmesg | egrep -i 'err|pulse|audio|sound|underrun|latency|xrun|buffer'
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.                                                                                                                 
[    0.384390] ACPI: Using IOAPIC for interrupt routing                                                                                                     
[    0.428031] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 10 *11 12 14 15)                                                                               
[    0.428067] ACPI: PCI Interrupt Link [LNKB] (IRQs *3 4 5 6 10 11 12 14 15)                                                                               
[    0.428099] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 *4 5 6 10 11 12 14 15)                                                                               
[    0.428130] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 *10 11 12 14 15)                                                                               
[    0.428160] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled.                                                                  
[    0.428192] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled.                                                                  
[    0.428223] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 *5 6 10 11 12 14 15)                                                                               
[    0.428253] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 10 *11 12 14 15)                                                                               
[    0.429689] e820: reserve RAM buffer [mem 0x0009d800-0x0009ffff]                                                                                         
[    0.429690] e820: reserve RAM buffer [mem 0xbb565000-0xbbffffff]                                                                                         
[    0.429691] e820: reserve RAM buffer [mem 0xbbd57000-0xbbffffff]                                                                                         
[    0.429691] e820: reserve RAM buffer [mem 0xcb44e000-0xcbffffff]                                                                                         
[    0.429692] e820: reserve RAM buffer [mem 0xcb853000-0xcbffffff]                                                                                         
[    0.429693] e820: reserve RAM buffer [mem 0x42fe00000-0x42fffffff]                                                                                       
[    0.477828] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)                                                                                    
[    0.488400] vesafb: framebuffer at 0xd0000000, mapped to 0xffffc90005c00000, using 8128k, total 8128k                                                    
[    0.610883] Console: switching to colour frame buffer device 240x67                                                                                      
[    0.732730] fb0: VESA VGA frame buffer device                                                                                                            
[    3.164273] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input17                                                       
[    3.164338] input: HDA Intel PCH Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card1/input16                                                        
[    3.164386] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card1/input15                                                            
[    3.164439] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input14                                                             
[    4.644060] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)       
[    4.648166] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)       
[    6.041858] Console: switching to colour frame buffer device 240x67                                                                                      
[    6.051905] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device                                                                                       
[    7.096161] input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input24                                                  
[    7.096217] input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input23                                                  
[    7.096248] input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input22

Actually, I've checked and there hasn't been any update of pulseaudio since I installed arch on this machine, so I've been running the same packet all the time.

Also, without pulseaudio running, I cannot play sound. For example aplay gives me that output:

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connexion refused

I've always used pulseaudio and never alsa alone, I'll try to configure it to see if the sound stops as well or not.

EDIT: My ~/.asoundrc was telling alsa to use pulse, that's why it wasn't working. I've created another ~/.asoundrc and have been able to play music. A simple "aplay test.wav" made the sound stop after around 1 minute. So I guess the issue is not due to PA.

Last edited by bobbyblues (2014-05-26 20:33:10)

Offline

#4 2014-05-26 20:38:02

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

Re: [SOLVED] Sound stops working after a few minutes

Post dmesg around that time sound crashes (before and after). Note: instead of using aplay, you can always use speaker-test.
Please post:

aplay -lL; lspci -nn | grep -i audio; lsmod | grep ^snd; systool -v -m modules_for_your_sound_cards

Give a little bit more information about your system.

Offline

#5 2014-05-26 20:46:17

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

Re: [SOLVED] Sound stops working after a few minutes

The dmesgs I've posted in my previous post was generated just after the sound crashed (when I was still using pulseaudio). Do you want me to generate a new one? If so, I really don't mind and will do it.

I guess you want me to replace "modules_for_your_sound_cards"  in the aplay command by the modules I currently use. Let me check how to know the modules I use. In the meantime, the output of the command is:

$ aplay -lL; lspci -nn | grep -i audio; lsmod | grep ^snd; systool -v
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
hdmi:CARD=HDMI,DEV=0
    HDA Intel HDMI, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA Intel HDMI, HDMI 1
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
    HDA Intel HDMI, HDMI 2
    HDMI Audio Output
sysdefault:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
snd_hda_codec_hdmi     36716  1 
snd_hda_codec_realtek    48293  1 
snd_hda_codec_generic    53860  1 snd_hda_codec_realtek
snd_hda_intel          38728  1 
snd_hda_codec         101816  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hwdep               6396  1 snd_hda_codec
snd_pcm                81607  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_timer              19038  1 snd_pcm
snd                    60086  10 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel

The soundcard of my laptop is a Sound Blaster X-Fi MB 3. Otherwise, this is my laptop.

Also I'm running Arch 64 bit. I don't really know what info you need. I use i3-wm as a window manager. The only thing I had done when I installed arch was to install pulseaudio, as well as pulseaudio-alsa and pulseaudio-ctl.


EDIT: About the modules, here is the output of the two related commands from the wiki:

$ lsmod | grep '^snd' | column -t
snd_hda_codec_hdmi     36716   1
snd_hda_codec_realtek  48293   1
snd_hda_codec_generic  53860   1   snd_hda_codec_realtek
snd_hda_intel          38728   2
snd_hda_codec          101816  4   snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hwdep              6396    1   snd_hda_codec
snd_pcm                81607   4   snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_timer              19038   1   snd_pcm
snd                    60086   11  snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
$ ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       80 May 26 16:28 by-path
crw-rw----+ 1 root audio 116, 11 May 26 16:28 controlC0
crw-rw----+ 1 root audio 116,  6 May 26 16:28 controlC1
crw-rw----+ 1 root audio 116, 10 May 26 16:28 hwC0D0
crw-rw----+ 1 root audio 116,  5 May 26 16:28 hwC1D0
crw-rw----+ 1 root audio 116,  9 May 26 16:28 pcmC0D3p
crw-rw----+ 1 root audio 116,  8 May 26 16:28 pcmC0D7p
crw-rw----+ 1 root audio 116,  7 May 26 16:28 pcmC0D8p
crw-rw----+ 1 root audio 116,  4 May 26 16:28 pcmC1D0c
crw-rw----+ 1 root audio 116,  3 May 26 16:58 pcmC1D0p
crw-rw----+ 1 root audio 116,  2 May 26 16:28 pcmC1D1p
crw-rw----+ 1 root audio 116,  1 May 26 16:28 seq
crw-rw----+ 1 root audio 116, 33 May 26 16:28 timer

Last edited by bobbyblues (2014-05-26 21:09:34)

Offline

#6 2014-05-26 21:09:38

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

Re: [SOLVED] Sound stops working after a few minutes

You probably want to set your PCH sound card as default (use vid and pid)(unless speaker-test -c 2 -t wav -D plughw:PCH does not work as expected) and while you are at it disable power saving options for its module (for the appropriate sound card).
Yes. tail dmesg to last 100 entries or so, just after sound dies. In your case snd_hda_intel is the main module of interest, so

systool -v -m snd_hda_intel

Edt: Missed plughw pcm plugin.

Last edited by emeres (2014-05-26 21:23:07)

Offline

#7 2014-05-26 21:20:49

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

Re: [SOLVED] Sound stops working after a few minutes

I'm sorry I'm going to be slow here, as I do not master sound configuration in linux.

First of all, running

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

Returns

speaker-test 1.0.27.2

Playback device is PCH
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM PCH
Playback open error: -2,No such file or directory

While running the same command without "-D PCH" runs fine as I hear "Front left" coming out of my speaker.

Let me reboot and run

dmesg -w

before the sound stops.

Then I'll try to set the default sound card and disable the power saving.


Once again, thanks for your help!

Offline

#8 2014-05-26 21:35:28

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

Re: [SOLVED] Sound stops working after a few minutes

So I've run

dmesg -w

as soon as I booted, and then started sound.
The only change in the dmesg output is that line that appeared shortly after I started playing sound:

[May26 17:22] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.

I've posted the full dmesg output here: http://pastebin.archlinux.fr/513387

I will now look at putting my default sound card, as you said.

EDIT: OK so I've put a default sound card, as well as deactivated the power saving. However, I'm not sure I did it properly as my solution was quite simple, I've created the following file

/etc/modprobe.d/alsa-base.conf

Which contains:

options snd slots=snd_hda_intel
options snd_hda_intel power_save=0

When I boot, I have the sound working, but it still stop after a while.

Also, the fact that it happened suddenly makes me wonder if it could be a hardware issue, more than a software one. Is there anyway I can check that ?

Last edited by bobbyblues (2014-05-26 22:27:22)

Offline

#9 2014-05-26 22:51:19

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

Re: [SOLVED] Sound stops working after a few minutes

As I stated before use vid and pid, otherwise modprobe does not know what sound card you are referring to (HDMI and PCH use snd-hda-intel). It is explained step by step on the wiki article that I linked. Drop the slots parts, even though it is the new way. You can also drop model parameter.

amixer -c PCH; amixer -c HDMI

But as separate code parts please. Seems like power saving or auto mute.

Offline

#10 2014-05-26 23:36:12

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

Re: [SOLVED] Sound stops working after a few minutes

Here is the output of both commands:

$ amixer -c PCH
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 57 [89%] [-7.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-64.00dB] [off]
  Front Right: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 253 [99%] [-0.40dB]
  Front Right: Playback 253 [99%] [-0.40dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]                                                       
Simple mixer control 'Center',0                                                                       
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined                                         
  Playback channels: Mono                                                                             
  Limits: Playback 0 - 64                                                                             
  Mono: Playback 64 [100%] [0.00dB] [on]                                                              
Simple mixer control 'LFE',0                                                                          
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined                                         
  Playback channels: Mono                                                                             
  Limits: Playback 0 - 64                                                                             
  Mono: Playback 64 [100%] [0.00dB] [on]                                                              
Simple mixer control 'Line',0                                                                         
  Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive                              
  Capture exclusive group: 0                                                                          
  Playback channels: Front Left - Front Right                                                         
  Capture channels: Mono                                                                              
  Limits: Playback 0 - 31                                                                             
  Mono: Capture [off]                                                                                 
  Front Left: Playback 0 [0%] [-34.50dB] [on]                                                         
  Front Right: Playback 0 [0%] [-34.50dB] [on]                                                        
Simple mixer control 'Line Boost',0                                                                   
  Capabilities: volume                                                                                
  Playback channels: Front Left - Front Right                                                         
  Capture channels: Front Left - Front Right                                                          
  Limits: 0 - 3                                                                                       
  Front Left: 0 [0%] [0.00dB]                                                                         
  Front Right: 0 [0%] [0.00dB]                                                                        
Simple mixer control 'Mic',0                                                                          
  Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive                              
  Capture exclusive group: 0                                                                          
  Playback channels: Front Left - Front Right                                                         
  Capture channels: Mono                                                                              
  Limits: Playback 0 - 31                                                                             
  Mono: Capture [off]                                                                                 
  Front Left: Playback 0 [0%] [-34.50dB] [off]                                                        
  Front Right: Playback 0 [0%] [-34.50dB] [off]                                                       
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: 0 [0%] [0.00dB]                                                                         
  Front Right: 0 [0%] [0.00dB]                                                                        
Simple mixer control 'IEC958',0                                                                       
  Capabilities: pswitch pswitch-joined                                                                
  Playback channels: Mono                                                                             
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',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 - 46
  Front Left: Capture 28 [61%] [12.00dB] [on]
  Front Right: Capture 28 [61%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Speaker Only' 'Line Out+Speaker'
  Item0: 'Line Out+Speaker'
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Internal Mic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [on]
$ amixer -c HDMI
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Otherwise, sorry for the alsa configuration file. I've now changed it as:

options snd_hda_intel index=0 vid=8086 pid=0c0c power_save=0
options snd_hda_intel index=1 vid=8086 pid=8c20 power_save=0

According to this output:

$ lspci -nn | grep -i audio
00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)

and my ~/.asoundrc

pcm.!default {
        type hw
        card 0
}

ctl.!default {
        type hw
        card 0
}

Sadly I'm still having the issue sad

Offline

#11 2014-05-26 23:52:07

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

Re: [SOLVED] Sound stops working after a few minutes

"Auto mute" is set on Line Out+Speaker, try disabling it with alsamixer. Does the sound work otherwise as expected (I know there is little time to find out)? You actually set HDMI (Xeon E3) as your default card, but leave at that for now.

Alsa configuration notes: Do not use numbers as references to sound cards, use name references (cat /proc/asound/card*/id to get them), this solves the boot order problem and is more descriptive; Do not use "type hw" unless you know what it does (it blocks everything expect the first sound application that uses it). Where did you get this setup?

You can use this instead:

defaults.pcm.!card "PCH";
defaults.ctl.!card "PCH";

This way the original dmix stays intact, ergo you can use multiple sounds with alsa at the same time.

However there is no need for that, since you already set up the default card using modprobe configuration, so you can delete that ~/.asoundrc safely.

Offline

#12 2014-05-27 00:10:16

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

Re: [SOLVED] Sound stops working after a few minutes

I've disabled Auto mute, and then rebooted, but the problem is still here.

I also deleted both ~/.asoundrc and /etc/asound.conf, as I understand both files have the same purpose, and if I delete ~/.asoundrc, then /etc/asound.conf will be used.

I also tried changing the order in /etc/modprobe.d/alsa-base.conf, but that does not have any effect, the issue is the same.

As to know if the sound works as expected before it stops, I've tried playing music using VLC, and here is what happens:
- By default, it tries to output on pulseaudio
- As I disabled pulseaudio autospawn, I need to manually change VLC audio device to Intel PCH, as soon as I change, I get the sound correctly
- As soon as the sound stop, VLC stops as well, and does not respond
- If I restart VLC, it reads the file well (though no sound is outputed) until I put back the audio device to Intel PCH, there it freezes again
- Finally, if I start pulseaudio (after the sound stopped), and then launch VLC again, I only see "dummy output" as a possible audio device

I don't know if this is useful.

Offline

#13 2014-05-27 00:43:30

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

Re: [SOLVED] Sound stops working after a few minutes

You would need to swap index to change order, but like I wrote not necessary right now. Try adding snoop=0 to PCH options. There are other parameters like I mentioned before. One that you definitely should try is enable_msi with both values (0 and 1, so 0 first, reboot, then 1, reboot). Dmesg also mentioned bdl_pos_adj, try different values somewhere along 1, 2, 4, 8, 16, 32, 64, 128, 256 and 512 (you might want to use only a few of them). Do you know if this hardware is long on the market? It has entries in $sources/sound/pci/hda/hda_intel.c, so it should be fully supported. The codec is, I also have an ALC892. Do the volume levels stay the same after sound stops working?

Where did you get that ~/.asoundrc with pcm.!default? If it is from the wiki, which one? Please post the link.

Thing is this could be the fault of either card. Another approach would be disabling each card, first only one, then the other, then both. You can do this by adding enable=0 to the options. There are different models for ALC892. This will probably take you some time.

Offline

#14 2014-05-27 00:58:55

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

Re: [SOLVED] Sound stops working after a few minutes

Thanks, I will try all of that. To answer your different questions first:

About the asoundrc: I got it on the wiki page you posted before, on setting the default sound card. (In the Alternative method paragraph).

I have no idea about how old the hardware is. My laptop model just came out, but Sound Blaster X-Fi cards have been around for a while, I have no idea for this particular model. I found a forum post about it that is 10 month old.

Also I think the volumes stay the same after sound stops. I'll check next time I reboot though, to be sure.


I will try to disable each card, and for each of them, try with and without enable_msi, and  try with all the possible bdl_pos_adj values.

I did not understand what to do about the ALC892 model though.

Thanks for the time you take to help me, I'll post again once I've tried everything.

Offline

#15 2014-05-27 01:15:21

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

Re: [SOLVED] Sound stops working after a few minutes

Be sure to try snoop=0 also. You may try those parameters for both cards, but the main centre of attention should be the PCH. The listed models are values for the model="value" parameter, which also goes into options, but you probably do not have to do that, unless you find your laptop in there. There might be some options in BIOS/UEFI for the card, but probably only enable/disable option.

You can always use amixer:

amixer -c PCH > a; # with sound still working
amixer -c PCH > b; # afterwards
diff a b; # compare before and after
bobbyblues wrote:

Thanks for the time you take to help me, I'll post again once I've tried everything.

No problem.

Offline

#16 2014-05-27 03:08:22

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

Re: [SOLVED] Sound stops working after a few minutes

So, I first tried adding snoop=0 to both lines in /etc/modprobe.d/alsa-base.conf and... since the sound has not stopped tongue It's been 2 hours now I think.

For the first hour and a half, I had vlc + alsa running, and I was not using the computer (listening to music while doing something else), and for the past 20 minutes or so, I've started pulseaudio, and watched a few flash vidéos.

I've add to recreate a ~/.asoundrc to put pulse as a default output to get flash to work, but so far I haven't had any issue.


I'm afraid my laptop might be trolling me and would turn the sound off when I least expect it.

I'm going to bed, but I'll be using my laptop all day tomorrow at work so I'll see if the sound fails again or not. In the later case, I'll mark this thread as solved, otherwise I'll come back crying smile

Offline

#17 2014-05-27 09:37:57

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

Re: [SOLVED] Sound stops working after a few minutes

Make sure, you know which card needs snoop=0 (it should be PCH, so drop this parameter for HDMI), if everything works out in the end. Please post:

cat /proc/asound/PCH/codec*

I overlooked the HM97 chipset you have, there has been recently a similar issue with a similar solution. Thing is, this should have worked out of box, in other words snoop should have been disabled by recognizing your sound card.

Last edited by emeres (2014-05-27 09:42:12)

Offline

#18 2014-05-27 13:00:21

bobbyblues
Member
Registered: 2014-03-19
Posts: 15

Re: [SOLVED] Sound stops working after a few minutes

emeres wrote:

Thing is, this should have worked out of box, in other words snoop should have been disabled by recognizing your sound card.

Well, the thing is it has been working out of the box for the past 5 weeks. The only thing that I did before yesterday was to install the pulseaudio package. I have no idea why it stopped working.

Anyway, this morning I have removed the "snoop=0" from the HDMI card, and put back the PCH card as the first one (index=0). I've been using pulseaudio as well since this morning, and so far I haven't had any issue. I'll come back tonight after work to confirm the problem is solved, and post the result of the cat command smile

EDIT: OK so it has been working for about 24h with no issue whatsoever, so I think we can say the problem is solved. Once again, thanks a lot for your help, I would never have figured it alone. If we meet someday, remind me to buy you a beer big_smile

Here is the result of the cat command:

$ cat /proc/asound/PCH/codec*
Codec: Realtek ALC892
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0892
Subsystem Id: 0x15585281
Revision Id: 0x100302
No Modem Function Group found
Default PCM:
    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [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=0x40, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x40 0x40]
  Converter: stream=8, channel=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
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Surround Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x40 0x40]
  Converter: stream=8, channel=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                                                                                                                                                                                                                                                                                              
Node 0x04 [Audio Output] wcaps 0x41d: Stereo Amp-Out                                                                                                                                                                                                                                                                        
  Control: name="Center Playback Volume", index=0, device=0                                                                                                                                                                                                                                                                 
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0                                                                                                                                                                                                                                                                                
  Control: name="LFE Playback Volume", index=0, device=0                                                                                                                                                                                                                                                                    
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0                                                                                                                                                                                                                                                                                
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0                                                                                                                                                                                                                                                                
  Amp-Out vals:  [0x40 0x40]                                                                                                                                                                                                                                                                                                
  Converter: stream=8, channel=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                                                                                                                                                                                                                                                                                              
Node 0x05 [Audio Output] wcaps 0x41d: Stereo Amp-Out                                                                                                                                                                                                                                                                        
  Control: name="Front Playback Volume", index=0, device=0                                                                                                                                                                                                                                                                  
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0                                                                                                                                                                                                                                                                                
  Device: name="ALC892 Analog", type="Audio", device=0                                                                                                                                                                                                                                                                      
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0                                                                                                                                                                                                                                                                
  Amp-Out vals:  [0x40 0x40]                                                                                                                                                                                                                                                                                                
  Converter: stream=8, channel=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                                                                                                                                                                                                                                                                                              
Node 0x06 [Audio Output] wcaps 0x611: Stereo Digital                                                                                                                                                                                                                                                                        
  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="IEC958 Default PCM Playback Switch", index=0, device=0                                                                                                                                                                                                                                                     
  Device: name="ALC892 Digital", type="SPDIF", device=1                                                                                                                                                                                                                                                                     
  Converter: stream=8, channel=0                                                                                                                                                                                                                                                                                            
  Digital:                                                                                                                                                                                                                                                                                                                  
  Digital category: 0x0                                                                                                                                                                                                                                                                                                     
  IEC Coding Type: 0x0                                                                                                                                                                                                                                                                                                      
  PCM:                                                                                                                                                                                                                                                                                                                      
    rates [0x5f0]: 32000 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 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1
  Amp-In vals:  [0x90 0x90]
  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
     0x23
Node 0x09 [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="ALC892 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1
  Amp-In vals:  [0x1c 0x1c]
  Converter: stream=4, 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
     0x22
Node 0x0a [Audio Input] wcaps 0x100711: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  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 0x0b [Audio Mixer] wcaps 0x20010b: 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="Line Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Line 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:  [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 10
     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17
Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80]
  Connection: 2
     0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80]
  Connection: 2
     0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x05 0x0b
Node 0x10 [Audio Output] wcaps 0x611: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5f0]: 32000 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 0x11 [Pin Complex] wcaps 0x400781: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x4004d000: [N/A] Line Out at Ext N/A
    Conn = RCA, Color = UNKNOWN
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x10
Node 0x12 [Pin Complex] wcaps 0x400401: Stereo
  Control: name="Internal Mic Phantom Jack", index=0, device=0
  Pincap 0x00000020: IN
  Pin Default 0x90a60160: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x6, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40058d: 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 0x0001003e: IN OUT HP EAPD Detect Trigger
  EAPD 0x2: EAPD
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x0c
Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00000036: IN OUT Detect Trigger
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x0d
Node 0x16 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00000036: IN OUT Detect Trigger
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x0e
Node 0x17 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Front Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Line Out Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x00000036: IN OUT Detect Trigger
  Pin Default 0x01011020: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x0f
Node 0x18 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Center Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Control: name="LFE Playback Switch", index=0, device=0
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0
  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
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x00003736: IN OUT Detect Trigger
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x01a11050: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0x5, Sequence = 0x0
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=03, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x19 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0000373e: IN OUT HP Detect Trigger
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1a [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Surround Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Line Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Line Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x00003736: IN OUT Detect Trigger
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x0181105f: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0x5, Sequence = 0xf
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=05, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0001373e: IN OUT HP EAPD Detect Trigger
    Vref caps: HIZ 50 GRD 80 100
  EAPD 0x2: EAPD
  Pin Default 0x01211030: [Jack] HP Out at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP VREF_HIZ
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 5
     0x0c 0x0d 0x0e 0x0f 0x26*
Node 0x1c [Pin Complex] wcaps 0x400481: Stereo
  Pincap 0x00000024: IN Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1d [Pin Complex] wcaps 0x400400: Mono
  Pincap 0x00000020: IN
  Pin Default 0x40350d29: [N/A] CD at Ext N/A
    Conn = Optical, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x9
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1e [Pin Complex] wcaps 0x400781: Stereo Digital
  Control: name="SPDIF Phantom Jack", index=0, device=0
  Pincap 0x00000010: OUT
  Pin Default 0x01451140: [Jack] SPDIF Out at Ext Rear
    Conn = Optical, Color = Black
    DefAssociation = 0x4, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x06
Node 0x1f [Pin Complex] wcaps 0x400681: Stereo Digital
  Pincap 0x00000020: IN
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=24
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00]
  Connection: 12
     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b 0x12
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 11
     0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x25 [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
  Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=8, channel=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
Node 0x26 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x25 0x0b

Last edited by bobbyblues (2014-05-28 03:41:04)

Offline

#19 2014-05-28 12:28:10

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

Re: [SOLVED] Sound stops working after a few minutes

emeres wrote:

Thing is, this should have worked out of box, in other words snoop should have been disabled by recognizing your sound card.

This still bothers me. Unless you run an older kernel (< 3.14), then I obviously miss something. Both the VENDOR_ID, that can be obtained from the codec (grep 'Vendor Id' /proc/asound/PCH/codec*), and the vid/pid combination are in the code ($sources/sound/pci/hda/). The AZX_DCAPS_INTEL_PCH quirk, should take care of that, but maybe I am interpreting the code wrong.

Should you see others with the same problem and/or find some time, please report this to alsa-user mailing list. You can reference this thread.

bobbyblues wrote:

Once again, thanks a lot for your help, I would never have figured it alone. If we meet someday, remind me to buy you a beer big_smile

You are welcome, I do not drink alcohol any more though, so something juicy without sugar will have to do.

Offline

Board footer

Powered by FluxBB