Comment 20 for bug 1498129

Revision history for this message
g0ukb (g0ukb) wrote :

I had to leave this for a while but I still cannot get this to work!!!

I follow these instructions http://forum.kodi.tv/showthread.php?tid=253179

and from aplay -l I see:

card 2: Ed [Xonar U7 Echelon Ed.], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Ed [Xonar U7 Echelon Ed.], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Ed [Xonar U7 Echelon Ed.], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

So unmute it with
amixer -c2 sset 'IEC958 In' on

and check it works with
speaker-test -Dhw:2,1 -c2
which works fine

trying mplayer
mplayer -afm hwac3 -ao alsa:device=hw=2.1 test.mp3
and yes - excellent sound out of the SPDIF

Sothe only thing that does not work is my change to USB-Audio.conf

I edit USB-Audio.conf and add the line "Xonar U7 Echelon Ed." 1 as below

USB-Audio.pcm.iec958_device {
 # "NoiseBlaster 3000" 42
        "Xonar U7 Echelon Ed." 1

 # The below don't have digital in/out, so prevent them from being opened.
 "Blue Snowball" 999
 "HP Digital Stereo Headset" 999
 "Logitech Speaker Lapdesk N700" 999
 "Logitech USB Headset" 999
 "Logitech Wireless Headset" 999
 "Plantronics GameCom 780" 999
 "Plantronics USB Headset" 999
 "Plantronics Wireless Audio" 999
 "SB WoW Headset" 999
 "Scarlett 2i2 USB" 999
 "Sennheiser USB headset" 999
 "USB Device 0x46d:0x992" 999
}

restart alsa and it DOES NOT WORK

I try speaker-test -Diec958:CARD=Ed,DEV=0 -c2

and get the following output
speaker-test 1.0.27.2

Playback device is iec958:CARD=Ed,DEV=0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 262144
Period size range from 16 to 131072
Using max buffer size 262144
Periods = 4
was set period_size = 65536
was set buffer_size = 262144
 0 - Front Left
...

but NO sound

I check
speaker-test -Dhw:2,1 -c2
I get the same output WITH sound

So the problem appears to be the edit of USB-Audio.conf is not setting iec958 to device 1.

Any further thoughts would be appreciated.