No S/PDIF

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
James434
Level 2
Level 2
Posts: 56
Joined: Mon Dec 02, 2019 2:10 pm

Re: No S/PDIF

Post by James434 »

I don't know what to say you know a lot lot more of this than me. Throw it all away and start from scratch. (Jocking cost me lot of money).

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

I'm still hopeful we're going to get this resolved. If we can get SMPlayer to use alsa (0,1 whateverhere) I think we can create a .asoundrc file that might be the final hurdle.

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

Here's an example we can test with: aplay -D hw:0,1 /usr/share/sounds/alsa/Front_Center.wav

Does that play through the S/PDIF connection?

James434
Level 2
Level 2
Posts: 56
Joined: Mon Dec 02, 2019 2:10 pm

Re: No S/PDIF

Post by James434 »

If I understood right SM player output alsa then execute that line in terminal, can't hear nothing.

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

James434 wrote:
Tue Jan 14, 2020 7:28 pm
If I understood right SM player output alsa then execute that line in terminal, can't hear nothing.
The terminal command was a separate test I was hopeful about. Now I'm not so sure where we stand.

In SMPlayer, click on alsa where it says Output driver: and tell me what other choices you have.

James434
Level 2
Level 2
Posts: 56
Joined: Mon Dec 02, 2019 2:10 pm

Re: No S/PDIF

Post by James434 »

The other choices you can see in pic I send 6 post back.

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

James434 wrote:
Tue Jan 14, 2020 8:02 pm
The other choices you can see in pic I send 6 post back.
No, that shows that alsa is selected. I can't see what other choices were available to you. Click on alsa and you'll see other choices.

James434
Level 2
Level 2
Posts: 56
Joined: Mon Dec 02, 2019 2:10 pm

Re: No S/PDIF

Post by James434 »

I did sent two pics one drowned on the way, sorry. Anyway here it is. Last night I did some reareinging of cables ( connect hdmi direct to mon. before was to Pioneer VSX-324 maybe cable sensing I thought, fibre always connected to VSX-324 ) tried properly, in win10 works perfect.
https://imgur.com/bal08rV

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

Well, damn!

I'm suspecting that's due to you having only one card. Although it does have multiple devices, and they should be exposed.

That made me look back at your devices on the card and I noticed this. Here's your aplay -l output:

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 Digital]
  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
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Now look at this bit from dmesg:

Code: Select all

[    6.181365] snd_hda_codec_hdmi hdaudioC0D2: HDMI: pin nid 7 not registered
[    6.200125] snd_hda_codec_hdmi hdaudioC0D2: HDMI: pin nid 7 not registered
There is no C0D2 according to the aplay output. I'm thinking Digital (device 1) is getting lost, and hdmi device 3 now think it's device 2. However, based on your posts, HDMI audio is working. So I looked at your devices nodes which shows this:

Code: Select all

crw-rw----+ 1 root audio 116, 11 Jan 10 18:29 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  9 Jan 10 18:29 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116, 10 Jan 10 18:29 /dev/snd/hwC0D2
crw-rw----+ 1 root audio 116,  3 Jan 10 18:29 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116,  2 Jan 10 18:29 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116,  4 Jan 10 18:29 /dev/snd/pcmC0D1p
crw-rw----+ 1 root audio 116,  5 Jan 10 18:29 /dev/snd/pcmC0D2c
crw-rw----+ 1 root audio 116,  6 Jan 10 18:29 /dev/snd/pcmC0D3p
crw-rw----+ 1 root audio 116,  7 Jan 10 18:29 /dev/snd/pcmC0D7p
crw-rw----+ 1 root audio 116,  8 Jan 10 18:29 /dev/snd/pcmC0D8p
crw-rw----+ 1 root audio 116,  1 Jan 10 18:29 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Jan 10 18:29 /dev/snd/timer
I have to say, I have no idea why aplay isn't reporting Card 0 Device 2, but I'm thinking whatever is causing that is also the cause of your issue.

I'll take a couple more stabs at trying to help, but I'm thinking your best bet is filing a bug report by following the instructions here: https://www.alsa-project.org/wiki/Bug_Tracking

As for my next stab in the dark, let's see the outputs of these commands: cat /usr/share/pulseaudio/alsa-mixer/paths/iec958-stereo-output.conf and ls -la /usr/share/pulseaudio/alsa-mixer/paths

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

And maybe I've stumbled on to the the source of the issue. I'm willing to bet your /usr/share/pulseaudio/alsa-mixer/paths/iec958-stereo-output.conf will contain this:

Code: Select all

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.


[Element IEC958]
switch = mute
If so, use xed admin:///usr/share/pulseaudio/alsa-mixer/paths/iec958-stereo-output.conf to change it to this:

Code: Select all

# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

[General]
description = Headphones + Digital Output (S/PDIF)

[Element IEC958]
switch = mute
Save the file and reboot then test the sound.

James434
Level 2
Level 2
Posts: 56
Joined: Mon Dec 02, 2019 2:10 pm

Re: No S/PDIF

Post by James434 »

Now, from your last post first box it was the same second box had [General] and what follows missing, in terminal same time appeared this line:
** (xed:4747): WARNING **: 18:23:44.247: The specified location is not mounted
This is the other results from terminal:
fred@fred:~$ ls -la /usr/share/pulseaudio/alsa-mixer/paths
total 188
drwxr-xr-x 2 root root 12288 Jan 15 18:28 .
drwxr-xr-x 4 root root 4096 Jul 17 2018 ..
-rw-r--r-- 1 root root 1415 Jul 25 05:48 analog-input-aux.conf
-rw-r--r-- 1 root root 2056 Jul 25 05:48 analog-input.conf
-rw-r--r-- 1 root root 5769 Jul 25 05:48 analog-input.conf.common
-rw-r--r-- 1 root root 2185 Jul 25 05:48 analog-input-dock-mic.conf
-rw-r--r-- 1 root root 1420 Jul 25 05:48 analog-input-fm.conf
-rw-r--r-- 1 root root 2196 Jul 25 05:48 analog-input-front-mic.conf
-rw-r--r-- 1 root root 2298 Jul 25 05:48 analog-input-headphone-mic.conf
-rw-r--r-- 1 root root 2360 Jul 25 05:48 analog-input-headset-mic.conf
-rw-r--r-- 1 root root 2797 Jul 25 05:48 analog-input-internal-mic-always.conf
-rw-r--r-- 1 root root 3155 Jul 25 05:48 analog-input-internal-mic.conf
-rw-r--r-- 1 root root 2569 Jul 25 05:48 analog-input-linein.conf
-rw-r--r-- 1 root root 2758 Jul 25 05:48 analog-input-mic.conf
-rw-r--r-- 1 root root 1330 Jul 25 05:48 analog-input-mic.conf.common
-rw-r--r-- 1 root root 1457 Jul 25 05:48 analog-input-mic-line.conf
-rw-r--r-- 1 root root 2185 Jul 25 05:48 analog-input-rear-mic.conf
-rw-r--r-- 1 root root 1425 Jul 25 05:48 analog-input-tvtuner.conf
-rw-r--r-- 1 root root 1385 Jul 25 05:48 analog-input-video.conf
-rw-r--r-- 1 root root 1929 Jul 25 05:48 analog-output.conf
-rw-r--r-- 1 root root 10609 Jul 25 05:48 analog-output.conf.common
-rw-r--r-- 1 root root 2139 Jul 25 05:48 analog-output-headphones-2.conf
-rw-r--r-- 1 root root 3147 Jul 25 05:48 analog-output-headphones.conf
-rw-r--r-- 1 root root 4095 Jul 25 05:48 analog-output-lineout.conf
-rw-r--r-- 1 root root 1993 Jul 25 05:48 analog-output-mono.conf
-rw-r--r-- 1 root root 3725 Jul 25 05:48 analog-output-speaker-always.conf
-rw-r--r-- 1 root root 4521 Jul 25 05:48 analog-output-speaker.conf
-rw-r--r-- 1 root root 159 Jul 25 05:48 hdmi-output-0.conf
-rw-r--r-- 1 root root 161 Jul 25 05:48 hdmi-output-1.conf
-rw-r--r-- 1 root root 161 Jul 25 05:48 hdmi-output-2.conf
-rw-r--r-- 1 root root 161 Jul 25 05:48 hdmi-output-3.conf
-rw-r--r-- 1 root root 163 Jul 25 05:48 hdmi-output-4.conf
-rw-r--r-- 1 root root 163 Jul 25 05:48 hdmi-output-5.conf
-rw-r--r-- 1 root root 163 Jul 25 05:48 hdmi-output-6.conf
-rw-r--r-- 1 root root 163 Jul 25 05:48 hdmi-output-7.conf
-rw-r--r-- 1 root root 712 Jan 15 18:28 iec958-stereo-output.conf
-rw-r--r-- 1 root root 1072 Jul 25 05:48 steelseries-arctis-5-output-chat.conf
-rw-r--r-- 1 root root 1064 Jul 25 05:48 steelseries-arctis-5-output-game.conf
-rw-r--r-- 1 root root 937 Jul 25 05:48 steelseries-arctis-7-input.conf
-rw-r--r-- 1 root root 1209 Jul 25 05:48 steelseries-arctis-7-output-mono.conf
-rw-r--r-- 1 root root 1299 Jul 25 05:48 steelseries-arctis-7-output-stereo.conf
fred@fred:~$

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

So let's see cat /usr/share/pulseaudio/alsa-mixer/paths/iec958-stereo-output.conf now. And did you reboot afterwards?

James434
Level 2
Level 2
Posts: 56
Joined: Mon Dec 02, 2019 2:10 pm

Re: No S/PDIF

Post by James434 »

Yes I did reboot and test but nothing.
Experimenting with SM player, I notice changing o/p driver whatever option I choose then apply, ok,
open tab Audio, Send audio to never changes.
Here last results of terminal:
fred@fred:~$ cat /usr/share/pulseaudio/alsa-mixer/paths/iec958-stereo-output.conf
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.


[Element IEC958]
switch = mute
fred@fred:~$

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

Okay, the change didn't take. I wasn't sure about the not mounted error. Try again: xed admin:///usr/share/pulseaudio/alsa-mixer/paths/iec958-stereo-output.conf and add this sectiion:

Code: Select all

[General]
description = Headphones + Digital Output (S/PDIF)
Above the line that has this:

Code: Select all

[Element IEC958]

James434
Level 2
Level 2
Posts: 56
Joined: Mon Dec 02, 2019 2:10 pm

Re: No S/PDIF

Post by James434 »

I follow your last inst. saved it rebooted, the specified location still not mounted tested nothing. You said could be issue of Bios try updating there is a newer released June 2019.

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

There's a possibility the new BIOS could fix things.

That "still not mounted" has me confused. Does the file now contain the edit?

James434
Level 2
Level 2
Posts: 56
Joined: Mon Dec 02, 2019 2:10 pm

Re: No S/PDIF

Post by James434 »

The file you just made me modify? if that is, the word edit is not in it. Next move I'll update bios.

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

James434 wrote:
Thu Jan 16, 2020 4:26 pm
The file you just made me modify? if that is, the word edit is not in it. Next move I'll update bios.
What I meant was does /usr/share/pulseaudio/alsa-mixer/paths/iec958-stereo-output.conf now have this added in the appropriate place:

Code: Select all

[General]
description = Headphones + Digital Output (S/PDIF)

James434
Level 2
Level 2
Posts: 56
Joined: Mon Dec 02, 2019 2:10 pm

Re: No S/PDIF

Post by James434 »

Sorry, I thought you looking for word edit. Yes the "general....." is in just above "element IEC958" line like you asked. Well do I update bios I seen can't right it off.

User avatar
MrEen
Level 17
Level 17
Posts: 7023
Joined: Mon Jun 12, 2017 8:39 pm

Re: No S/PDIF

Post by MrEen »

One thing to check for is that it's not muted now. Look in pavucontrol especially, as what is shown there may have changed after that edit to /usr/share/pulseaudio/alsa-mixer/paths/iec958-stereo-output.conf.

Post Reply

Return to “Hardware Support”