Linux Problem using SPDIF output of M-Sound Fast Track Pro
#1
I am not able to get sound out of the SPDIF output of M-Sound Fast Track Pro. Kodi does not recognize all possible audio outputs in Settings->System->Audio output. Using "aplay -Dplughw:2,1 /var/tmp/test.wav" works, but this sound output is not possible to select in Kodi.

kodi.log
kodi.log with FastTrack Pro on Linux/Ubuntu

$ uname -a
Linux kvitfjell 4.2.0-22-generic #27-Ubuntu SMP Thu Dec 17 22:57:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily

Any help, please? Thanks
Reply
#2
Provide:

aplay -l please

And please provide a Debug Log with and actually playing something:
Quote:12:35:06 T:140488483297344 NOTICE: m_displayName : FastTrack Pro
12:35:06 T:140488483297344 NOTICE: m_displayNameExtra: S/PDIF

In Fixed mode: 48 khz please
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
Debug log: http://xbmclogs.com/puvwdmmu2

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Pro [FastTrack Pro], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Pro [FastTrack Pro], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
Reply
#4
Nice: 13:43:45 T:139806770042624 ERROR: CAESinkALSA::InitializeHW - Unable to find a suitable output format
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
Lol:

Quote:13:43:45 T:139807299872832 NOTICE: m_sampleRates : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000
13:43:45 T:139807299872832 NOTICE: m_dataFormats : AE_FMT_AC3,AE_FMT_DTS

Please enable debuglogging and restart kodi - I need to see that. We don't enumerate _any_ formats for this card.

And:

Quote:13:43:45 T:139807299872832 NOTICE: Device 4
13:43:45 T:139807299872832 NOTICE: m_deviceName : @:CARD=Pro,DEV=0
13:43:45 T:139807299872832 NOTICE: m_displayName : FastTrack Pro
13:43:45 T:139807299872832 NOTICE: m_displayNameExtra: Analog
13:43:45 T:139807299872832 NOTICE: m_deviceType : AE_DEVTYPE_PCM
13:43:45 T:139807299872832 NOTICE: m_channels : FL,FR
13:43:45 T:139807299872832 NOTICE: m_sampleRates : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000
13:43:45 T:139807299872832 NOTICE: m_dataFormats :

data formats is empty :-(
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#6
Please if you are at it - post the complete output of speaker-test -c 2 -D plughw:2,1
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#7
Thank you for your quick reply.

$ LC_ALL=C speaker-test -c 2 -D plughw:2,1

speaker-test 1.0.29

Playback device is plughw:2,1
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 174762
Period size range from 48 to 87381
Using max buffer size 174760
Periods = 4
was set period_size = 43690
was set buffer_size = 174760
0 - Front Left
1 - Front Right
Time per period = 5.526839
0 - Front Left
^C 1 - Front Right
Time per period = 0.578304

And this generates noise in the speakers. No success with Kodi.
Reply
#8
Good - yeah. Your driver is broken, broken, broken ... you won't be happy with it, here a kodi patch:

Quote:diff --git a/xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp b/xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp
index fbccce0..301939f 100644
--- a/xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp
+++ b/xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp
@@ -1546,6 +1546,12 @@ void CAESinkALSA::EnumerateDevice(AEDeviceInfoList &list, const std:Confusedtring &dev
info.m_dataFormats.push_back(i);
}

+ if (info.m_dataFormats.empty())
+ {
+ CLog::Log(LOGNOTICE, "Your sound card driver does not cooperate at all - will add a default format");
+ info.m_dataFormats.push_back(AE_FMT_S16NE);
+ }
+
if (info.m_deviceType == AE_DEVTYPE_HDMI)
{
// we don't trust ELD information and push back our supported formats explicitely

Can you build kodi from source and apply this patch?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#9
Thank you for your reply. I will consider building Kodi from source. But is the real source of this problem snd_usb_audio kernel driver?

I have enabled 24bit/96kHz with:
$ cat /etc/modprobe.d/fast-track-pro.conf
# This will put the FastTrack Pro at device number 2 with 24bit mode, max. 48kHz sampling mode,
# 2 inputs and 4 outputs. According to the patch, the possible values for the device_setup
# parameter are the sum of the following numbers:

# 0x01 : use the device_setup parameter, always needed
# 0x02 : enable digital output (channels 3,4)
# 0x04 : use 48kHz-96kHz sampling rate, 8-48 kHz if not used
# 0x08 : 24bit sampling rate
# 0x10 : enable digital input (channels 3,4)

options snd_usb_audio vid=0x763 pid=0x2012 device_setup=0xF index=2 enable=1
Reply
#10
The problem is your sound card driver. Try toe remove all those custom probes and post me a logfile without those, please.

24 bit sampling rate <- what is that? (the comment is most likely wrong) - please remove all those and post another kodi.log
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#11
After removing additional options to snd_usb_audio:
kodi.log

Still no sound from Kodi, but "speaker-test -c 2 -D plughw:1,1" works.

Why is Kodi only enumerating CARD=Pro,DEV=0 and not CARD=Pro,DEV=1?
Reply
#12
Kodi won't have sound as your driver is broken and does not tell us any supported format ...
it does - one is the analog the other the spdif

You only chance is to add the patch - I don't plan to workaround broken drivers by guesswork.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#13
With patch it looks okay (that's with the patch, right?)
Quote:16:44:49 T:140707147364416 NOTICE: Device 4
16:44:49 T:140707147364416 NOTICE: m_deviceName : @:CARD=Pro,DEV=0
16:44:49 T:140707147364416 NOTICE: m_displayName : FastTrack Pro
16:44:49 T:140707147364416 NOTICE: m_displayNameExtra: Analog
16:44:49 T:140707147364416 NOTICE: m_deviceType : AE_DEVTYPE_PCM
16:44:49 T:140707147364416 NOTICE: m_channels : FL,FR
16:44:49 T:140707147364416 NOTICE: m_sampleRates : 48000
16:44:49 T:140707147364416 NOTICE: m_dataFormats : AE_FMT_S16NE,AE_FMT_S16LE
16:44:49 T:140707147364416 NOTICE: Device 5
16:44:49 T:140707147364416 NOTICE: m_deviceName : iec958:CARD=Pro,DEV=0
16:44:49 T:140707147364416 NOTICE: m_displayName : FastTrack Pro
16:44:49 T:140707147364416 NOTICE: m_displayNameExtra: S/PDIF
16:44:49 T:140707147364416 NOTICE: m_deviceType : AE_DEVTYPE_IEC958
16:44:49 T:140707147364416 NOTICE: m_channels : FL,FR
16:44:49 T:140707147364416 NOTICE: m_sampleRates : 44100,48000
16:44:49 T:140707147364416 NOTICE: m_dataFormats : AE_FMT_AC3,AE_FMT_DTS,AE_FMT_S16NE,AE_FMT_S16LE
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#14
Some more information: http://thread.gmane.org/gmane.linux.alsa.devel/39639
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#15
To workaround, you can try something like this:

Code:
From 982c628f484266c8db4f70dc1e856bc7844c1873 Mon Sep 17 00:00:00 2001
From: Patrick Rasmussen <[email protected]>
Date: Fri, 13 Mar 2015 14:52:56 +0100
Subject: [PATCH] Add USB Sound Blaster HD

---
src/conf/cards/USB-Audio.conf | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf
index 4cbf85e..2591d00 100644
--- a/src/conf/cards/USB-Audio.conf
+++ b/src/conf/cards/USB-Audio.conf
@@ -62,6 +62,7 @@ USB-Audio.pcm.iec958_device {
# Second iec958 device number, if any.
USB-Audio.pcm.iec958_2_device {
    "PHIREE U2" 1  # 0 = PCM S/PDIF, 1 = non-PCM S/PDIF
+    "USB Sound Blaster HD" 1
}


--
2.1.4

You need to find your device string like "FastTrack Pro" or something.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply

Logout Mark Read Team Forum Stats Members Help
Problem using SPDIF output of M-Sound Fast Track Pro0