You are not logged in.

#1 2017-03-07 02:52:28

Lans9831
Member
Registered: 2017-03-07
Posts: 6

[SOLVED] No sound (GNOME, PulseAudio, ALSA) HDA INTEL

So, I was researching all the day, but I can't get solution to this problem, I have no sound.

Useful information:

1. Just installed Arch Linux on my PC (not a laptop).
2. I'm on a GNOME Desktop Enviroment with PulseAudio and ALSA.
3. I installed pavucontrol too.
4. When I reproduce a .wav file, pavucontrol shows bar moving, but obviously not sound.
5. My port for output devices is showed as "Digital Output S /PDIF".
6. I unmute everything with alsamixer, still no sound.

Some outputs:

 ➜  ~ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=Intel
    HDA Intel, STAC9221 A2 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, STAC9221 A2 Analog
    Front speakers
surround21:CARD=Intel,DEV=0
    HDA Intel, STAC9221 A2 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, STAC9221 A2 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, STAC9221 A2 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, STAC9221 A2 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, STAC9221 A2 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, STAC9221 A2 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, STAC9221 A2 Digital
    IEC958 (S/PDIF) Digital Audio Output
 ➜  ~ pacmd list-cards 
2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_1b.0>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "1"
		alsa.card_name = "HDA Intel"
		alsa.long_card_name = "HDA Intel at 0xfe9fc000 irq 24"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "27d8"
		device.product.name = "NM10/ICH7 Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "1"
		device.description = "Audio Interno"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Estéreo Analógico Input (priority 60, available: no)
		output:analog-stereo: Estéreo Analógico Output (priority 6000, available: no)
		output:analog-stereo+input:analog-stereo: Estéreo Analógico.Duplex (priority 6060, available: no)
		output:iec958-stereo: Estéreo Digital (IEC958) Output (priority 5500, available: unknown)
		output:iec958-stereo+input:analog-stereo: Estéreo Digital (IEC958) Output + Estéreo Analógico Input (priority 5560, available: unknown)
		off: Apagado (priority 0, available: unknown)
	active profile: <output:iec958-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1b.0.iec958-stereo/#6: Audio Interno Estéreo Digital (IEC958)
	sources:
		alsa_input.pci-0000_00_1b.0.analog-stereo/#7: Audio Interno Estéreo Analógico
		alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor/#9: Monitor of Audio Interno Estéreo Digital (IEC958)
	ports:
		analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: En línea (priority 8100, latency offset 0 usec, available: no)
			properties:
				
		analog-output-headphones: Auriculares analógicos (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 50000 usec, available: unknown)
			properties:
				
    index: 1
	name: <alsa_card.usb-Vimicro_Corp._Venus_USB2.0_Camera-02>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "Venus USB2.0 Camera"
		alsa.long_card_name = "Vimicro Corp. Venus USB2.0 Camera at usb-0000:00:1d.7-4, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:1d.7-usb-0:4:1.2"
		sysfs.path = "/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.2/sound/card0"
		udev.id = "usb-Vimicro_Corp._Venus_USB2.0_Camera-02"
		device.bus = "usb"
		device.vendor.id = "0ac8"
		device.vendor.name = "Z-Star Microelectronics Corp."
		device.product.id = "3420"
		device.product.name = "Venus USB2.0 Camera"
		device.serial = "Vimicro_Corp._Venus_USB2.0_Camera"
		device.form_factor = "webcam"
		device.string = "0"
		device.description = "Venus USB2.0 Camera"
		module-udev-detect.discovered = "1"
		device.icon_name = "camera-web-usb"
	profiles:
		input:analog-mono: Mono Analógico Input (priority 2, available: unknown)
		off: Apagado (priority 0, available: unknown)
	active profile: <input:analog-mono>
	sources:
		alsa_input.usb-Vimicro_Corp._Venus_USB2.0_Camera-02.analog-mono/#1: Venus USB2.0 Camera Mono Analógico
	ports:
		analog-input-mic: Micrófono (priority 8700, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
➜  ~ lsmod | grep snd
snd_hda_codec_idt      49152  1
snd_hda_codec_generic    69632  1 snd_hda_codec_idt
snd_hda_intel          32768  6
snd_hda_codec         106496  3 snd_hda_intel,snd_hda_codec_idt,snd_hda_codec_generic
snd_hda_core           65536  4 snd_hda_intel,snd_hda_codec,snd_hda_codec_idt,snd_hda_codec_generic
snd_usb_audio         155648  2
snd_usbmidi_lib        28672  1 snd_usb_audio
snd_hwdep              16384  2 snd_hda_codec,snd_usb_audio
snd_pcm                90112  7 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_hda_core
snd_mpu401_uart        16384  0
snd_rawmidi            28672  2 snd_mpu401_uart,snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
snd_timer              28672  1 snd_pcm
snd                    69632  25 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_hda_codec_idt,snd_usb_audio,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_seq_device,snd_pcm
soundcore              16384  1 snd
usbcore               208896  7 uvcvideo,usbhid,snd_usb_audio,ehci_hcd,uhci_hcd,snd_usbmidi_lib,ehci_pci

When I execute

speaker-test -c 2

I obtain this and no sound:

 speaker-test 1.1.3

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
speaker-test 1.1.3

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
^C 1 - Front Right
Time per period = 5,492693

Otherwise, whe I execute this (based on ALSA ArchWiki and results from aplay -L

speaker-test -D sysdefault:Intel -c 2

I obtain this:

➜  ~ speaker-test -D sysdefault:Intel -c 2

speaker-test 1.1.3

Playback device is sysdefault:Intel
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
^CWrite error: -4,Llamada al sistema interrumpida
xrun_recovery failed: -4,Llamada al sistema interrumpida
Transfer failed: Llamada al sistema interrumpida

And my speakers make noise.

My /etc/asound.conf looks like this:

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:

So, if speaker-test command make noise with sysdefault, and pulseaudio by default fallbacks on sysdefault, why my sound still no working?

➜  Descargas aplay -D default LRMonoPhase4.wav 
Playing WAVE 'LRMonoPhase4.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
^CAborted by signal Interrupción...
aplay: pcm_write:2011: write error: Llamada al sistema interrumpida

When I try the command above, no sound, but with command below I get sound and I can listen the .wav file.

➜  Descargas aplay -D sysdefault:Intel LRMonoPhase4.wav
Playing WAVE 'LRMonoPhase4.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

Can someone help me , please?

Last edited by Lans9831 (2017-03-08 20:17:08)

Offline

#2 2017-03-07 03:18:01

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED] No sound (GNOME, PulseAudio, ALSA) HDA INTEL

this is my .asoundrc:

#grab everything and direct to pulseaudio
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

I don't know much about the changes that came with newer pulseaudio, but have you tried to set the default output with pavucontrol?

Offline

#3 2017-03-07 03:22:31

Lans9831
Member
Registered: 2017-03-07
Posts: 6

Re: [SOLVED] No sound (GNOME, PulseAudio, ALSA) HDA INTEL

HiImTye wrote:

this is my .asoundrc:

#grab everything and direct to pulseaudio
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

I don't know much about the changes that came with newer pulseaudio, but have you tried to set the default output with pavucontrol?

All is on default, I'm just wondering if I can select sysdefault instead default.

Offline

#4 2017-03-07 12:36:58

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: [SOLVED] No sound (GNOME, PulseAudio, ALSA) HDA INTEL

@Lans9831  Try this : change default output from "Digital Output S /PDIF" to "built-in-audio Analog Stereo" in pavucontrol if you are not using S/PDIF  port on PC,
You could also try and create file /etc/modprobe.d/alsa-base.conf
in it put only this one line

options snd slots=snd-hda-intel,snd-usb-audio

Save & reboot, let us know how it goes.

Last edited by cirrus (2017-03-07 12:46:40)

Offline

#5 2017-03-07 15:35:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,767

Re: [SOLVED] No sound (GNOME, PulseAudio, ALSA) HDA INTEL

Do the first line of cirrus answer, the other part you can do and might be a good idea but is going to be irrelevant. Currently your output is set to SPDIF switch that over (in the "Configuration", the last tab, in pavucontrol)

Online

#6 2017-03-08 20:16:48

Lans9831
Member
Registered: 2017-03-07
Posts: 6

Re: [SOLVED] No sound (GNOME, PulseAudio, ALSA) HDA INTEL

I solved the problem, research on Arch Wiki and found this article:

https://wiki.archlinux.org/index.php/Pu … log_output

Offline

#7 2017-03-08 20:22:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,767

Re: [SOLVED] No sound (GNOME, PulseAudio, ALSA) HDA INTEL

Thats.. a suboptimal workaround to a non existing problem in your case. But whatever floats your boat, you will have to manually adjust that if you intend to use upmixing or the like which pulse would provide via the profiles it has detected and you also won't get dynamic latency adjustment but a set base value.

Online

Board footer

Powered by FluxBB