You are not logged in.

#1 2018-01-30 19:38:28

manouchk
Member
Registered: 2008-07-29
Posts: 306

no sound output on HDMI

Hi,

I got a NUC (7i3BNK) and try to get sound output on HDMI using alsa.

From informations obtained on  Alsa troubleshooting page, I was able to get once sound running:

aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav

So tried the to suggested configuration (~/.asoundrc) with a slight modification ("1" replaced by a "0"):

[manu@manulemalin ~]$ more ~/.asoundrc 

pcm.!default {
    type hw
    card 1
    device 3
}

or

[manu@manulemalin ~]$ more ~/.asoundrc 
defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0

After the two unsuccesfully test of configurations, the above aplay command was not producing any sound anymore!

(

aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav

)

I also tried other possibilities, 7,8 or 9 instead of 3 from informations obtain by running aplay -l:

aplay -l
**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: PCH [HDA Intel PCH], périphérique 0: ALC283 Analog [ALC283 Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: PCH [HDA Intel PCH], périphérique 3: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: PCH [HDA Intel PCH], périphérique 7: HDMI 1 [HDMI 1]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: PCH [HDA Intel PCH], périphérique 8: HDMI 2 [HDMI 2]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: PCH [HDA Intel PCH], périphérique 9: HDMI 3 [HDMI 3]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: PCH [HDA Intel PCH], périphérique 10: HDMI 4 [HDMI 4]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0

I'm warn by the documentation that the sound receiver may not output for it may have disabled it when it found no sound stream. The screen is a samsung syncmaster t24B350. I tried to unplug the power tv and plug it with a youtube video running but I still did not obtained any sound.

Offline

#2 2018-01-30 19:47:13

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: no sound output on HDMI

Running

speaker-test -c 2

does output sound though!

Offline

#3 2018-01-31 08:52:47

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

Re: no sound output on HDMI

If the default switch worked which it seems to have, other speaker-test without a parameter argument wouldn't work, it might well be that something else is now having access to the soundcard making a plughw attempt ineffective. Post

aplay -L
sudo fuser -v /dev/snd/*

Online

#4 2018-01-31 22:22:20

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: no sound output on HDMI

It seems that my problem is "only" sound in firefox. I also tried to run apulse firefox (after reading about sound problem with firefox and installing apulse) but I wouldn't get any sound.
In chromium, youtube's video are just fine with sound. My audio player (gogglesmm) is also working fine.

When running youtube in firefox launch with "apulse firefox", I get the following warnings:

Sandbox: seccomp sandbox violation: pid 3508, tid 3959, syscall 16, args 46 2147767296 140090829055288 0 0 0.
Sandbox: seccomp sandbox violation: pid 3508, tid 3959, syscall 16, args 46 2147767296 140090829055304 0 0 0.
ALSA lib pcm_direct.c:1421:(snd1_pcm_direct_initialize_poll_fd) unable to open timer 'hw:CLASS=3,SCLASS=0,CARD=0,DEV=0,SUBDEV=0'
ALSA lib pcm_dmix.c:1183:(snd_pcm_dmix_open) unable to initialize poll_fd
[apulse] [error] do_connect_pcm: can't open playback device "default". Error code -38 (Fonction non implantée)
[apulse] [error] do_connect_pcm: can't open playback device "default". Error code -38 (Fonction non implantée)
[apulse] [error] do_connect_pcm: failed to open ALSA device. Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required conversions on CPU.
[apulse] [error] do_connect_pcm: failed to open ALSA device. Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required conversions on CPU.
[Child 3508, MediaPlayback #2] WARNING: 7f6957b87ac0 OpenCubeb() failed to init cubeb: file /build/firefox/src/mozilla-unified/dom/media/AudioStream.cpp, line 387
[Child 3508, MediaPlayback #2] WARNING: Decoder=7f695ca7a000 [OnMediaSinkAudioError]: file /build/firefox/src/mozilla-unified/dom/media/MediaDecoderStateMachine.cpp, line 3642
[manu@manulemalin ~]$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=PCH
    HDA Intel PCH, ALC283 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC283 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 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
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
hdmi:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 3
    HDMI Audio Output
hdmi:CARD=PCH,DEV=4
    HDA Intel PCH, HDMI 4
    HDMI Audio Output
[manu@manulemalin ~]$ sudo fuser -v /dev/snd/*
[sudo] Mot de passe de manu : 
                     UTIL.       PID ACCÈS  COMMANDE
/dev/snd/controlC0:  manu        498 F.... lxpanel

Firefox does not play sound but chromium does however.

I did not install yet pulseaudio because documentation was insufficient for me or criptic.

Offline

#5 2018-01-31 23:07:28

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

Re: no sound output on HDMI

which of the two .asoundrcs are you using now? I'm not sure on the exact replacement each makes, but try the other one of the two and retry.

Online

#6 2018-01-31 23:50:30

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: no sound output on HDMI

I use:

[manu@manulemalin ~]$ more ~/.asoundrc 
defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0

Offline

Board footer

Powered by FluxBB