Author Topic: SPDIF does not work on ASUS M2N68-VM  (Read 4567 times)

mocitysam

  • Newbie
  • *
  • Posts: 7
    • View Profile
SPDIF does not work on ASUS M2N68-VM
« on: January 27, 2009, 01:16:33 am »
I spent over a week trying to get this working.  Out of fresh ideas and suggestions.  Also posted to a bug on alsa site (https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4330)

Any suggestions are greatly appreciated - I am pretty close to returning this MOBO to newegg.

alsa_info.sh output @ http://www.alsa-project.org/db/?f=7619145a69fa28571030e22fde7f8e776b83661c

Alsamixers have iec958 enabled (not muted). I also see PCM and digital in the kmixer.

Optical out does not have the light lit up.


Motherboard: M2N68-VM
Kernel: 2.6.28
Alsa driver: 1.0.19
NVIDIA Driver: 180.22

aplay -l: output:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: NVidia [HDA NVidia], device 1: VT1708B Digital [VT1708B Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: pcsp [pcsp], device 0: pcspeaker [pcsp]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L output:

default:CARD=NVidia
    HDA NVidia, VT1708B Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, VT1708B Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, VT1708B Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, VT1708B Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, VT1708B Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, VT1708B Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, VT1708B Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, VT1708B Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=pcsp
    pcsp, pcsp
    Default Audio Device
front:CARD=pcsp,DEV=0
    pcsp, pcsp
    Front speakers

asound.conf:
pcm.digital {
type plug
slave.pcm "digital-hw"
}
ctl.digital {
type hw
card 0
}

pcm.digital-hw {
type hw
card 0
device 1
}

ctl.digital-hw {
type hw
card 0
}


tkmedia

  • wants to work for LinuxMCE
  • **
  • Posts: 937
    • View Profile
    • LMCECompatible
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #1 on: January 27, 2009, 08:13:58 am »
I just started testing this board I will see if I can get any better results



Tim
My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/

mocitysam

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #2 on: January 28, 2009, 06:24:20 pm »
Tim, Any updates?

tkmedia

  • wants to work for LinuxMCE
  • **
  • Posts: 937
    • View Profile
    • LMCECompatible
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #3 on: January 28, 2009, 07:55:42 pm »
Analog is working fine

I don't even see IEC958 in alsamixer under 0710 with default alsa
I will try 1.0.19 tonight.

As well as a test with 0810 lmce.



Tim
My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/

mocitysam

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #4 on: January 28, 2009, 08:56:57 pm »
Thanks for the update.  If you do the following (in that order) you will see IEC958:

1) Upgrade kernel - I was using 2.6.14/17 (do not remember exactly - the one that comes default with linux mce install) and upgraded 2.6.28 (http://wiki.linuxmce.org/index.php/Upgrading_the_Kernel )
2) upgrade the nvidia driver
3) apply the ALSA snapshot as part of ALSA upgrade.  There is nice script @ http://ubuntuforums.org/showthread.php?p=6589810#post6589810 to upgrade ALSA drivers. This script will upgrade to 18a. Change it to point to 19. You need to run it with -d (for download), then -snap (for snapshot) and then -i (in that order).


Not that  all this will get any sound out of SPDIF :-(

check out this post as well:
http://xbmc.org/forum/showthread.php?t=42183

Good luck. 

Let us know if 8.10 works

rodercot

  • Guest
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #5 on: January 30, 2009, 11:55:49 am »

 You only need to run -snap on some of the 2.6.24?? flavor kernels the new 2.2.27, 2.6.28 do not need the snap option.  You only need to run -d and then -i if you search google for Bence's script he modified so you can use wget to dwnld the script AND you only need to run it once with sudo ./AlsaUpgrade-1.0.x-rev-1.15-Ben.sh -di and it will download 1.0.19 and install it all at the same time, then just reboot open up alsamixer and verify the version is 1.0.19 if it is then you are good to go if not rerun the script above with -i only. 

 actually save the searching

 wget http://217.20.138.65/AlsaUpgrade-1.0.x-rev-1.15-Ben.sh

 Then cd /to the dir you dwnld it to/

 Then chmod 777 AlsaUpgrade-1.0.x-rev-1.15-Ben.sh

 Then sudo ./AlsaUpgrade-1.0.x-rev-1.15-Ben.sh -di (this will dwnld and install alsa 1.0.19 the source file end up in /usr/src if you want to delete them when completed you can you can alsa remove the script or save a local copy for later)

 Once this is done you should absolutely have three iec958 switches in alsa mixer playback all of them you need to unmute. I have found with the certain spdif/hdmi motherboard if you do not update via
 (vim is an example you can use any editor you prefer)

 sudo vim /etc/modprobe.d/alsa-base

 and add the options line for your audio stack you will not get spdif no matter what you do. By stack I am referring to a line like this (you insert a line like this to the bottom of the file)

 options snd-hda-intel model=6stack-dig 

 You can search for this on the alsa page and there is a also a corresponding list codec=stack line in the alsa directory you downloaded to your /usr/src dir. I just cannot remember the name of that file for the life of me. This tells alsa what your output jacks on the back of the board are (simple description)

 The obove option line is for a Asus P5N7A-VM mainboard.

  With all the above setup properly I am not sure why you could now not pass hdmi audio as well as video. I have not had to use an asound(rc) file yet it any of my setups.

  Dave
 

tkmedia

  • wants to work for LinuxMCE
  • **
  • Posts: 937
    • View Profile
    • LMCECompatible
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #6 on: January 30, 2009, 04:25:51 pm »
Thanks Dave,



Cool I will try tonight


Tim
My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/

rodercot

  • Guest
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #7 on: February 05, 2009, 01:44:47 pm »
Thanks Dave,



Cool I will try tonight


Tim

 Tim,

 Not sure if you have tested any further but here are some more tibbits.
 
 to grab the codec you need to use to match up to the file in question

 cat /proc/asound/card0/codec#* | grep Codec

 The you can go here and match it with the stack info you need to add to alsa-base The file is a pain to find so I patebinned it for easy access. but if you want to there is some good reading in that directory. On my system it is here
 
 /usr/src/Alsa-1.0.19/alsa-driver-1.0.19/alsa-kernel/Documentation/

 Then the files to review are Alsa-configuration, HD-audio, and the one I pastebinned is HD-audio-models

 http://pastebin.ca/1327935

 rgds,
 
 Dave
 

mocitysam

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #8 on: February 06, 2009, 10:24:19 pm »
Dave,

I do not see VT1708B in this model list.  Should I be looking for something else?

Thanks

Itsik

  • Guru
  • ****
  • Posts: 190
    • View Profile
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #9 on: February 07, 2009, 12:43:03 am »
Dave

I'f followed your guide trying to figure out the sound problems on my P5N7A-VM, but it didn't change anything. The sound is vary distorted, loads of noise and what not.
Any idea what could be causing it ?

Thnx
Itsik

rodercot

  • Guest
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #10 on: February 09, 2009, 03:19:21 pm »
Dave,

I do not see VT1708B in this model list.  Should I be looking for something else?

Thanks

 check in terminal

 aplay -l or aplay -l

 You should see VT1708B analog and then if you upgraded to alsa 1.0.19 then you should see alsa an MCP?? hdmi

 Dave

rodercot

  • Guest
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #11 on: February 09, 2009, 03:21:37 pm »
Dave

I'f followed your guide trying to figure out the sound problems on my P5N7A-VM, but it didn't change anything. The sound is vary distorted, loads of noise and what not.
Any idea what could be causing it ?

Thnx
Itsik

 I have not run into that issue myself BUT I have read some posts about it, google for p5n7a alsa distortion and you should get some help.

 You can also play with some settings in alsamixer to see if it helps any. It is probably passing raw pcm or the like to your rcvr.

 Dave

rodercot

  • Guest
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #12 on: February 09, 2009, 10:50:24 pm »
Dave,

I do not see VT1708B in this model list.  Should I be looking for something else?

Thanks

 So with some more playing around, I am about ready to toss this M3N78-VM. I have tried eveything with this board and I really would not care as I do have hdmi working BUT none of my MP2 files will play with it and I have tried every asoundrc setup I can think off or find.

 Now the Dummest thing I see is output from aplay -l (-L) I have a VT1708B analog codec no digital but I do get the hdmi output listed, heck even if I grep the codec it lists the VT1708B and the MCP78 as well but if I run a sudo lshw it does not list the VT1708B anywhere but instead it list an MCP78 ALC1200, This was after the latest bios upgrade as well, so I am wondering if they screwed up in the bios dept for all the flavors of this board do any have an alc1200 codec.

 Time to swap this board for another P5N7A-VM asap.

 rgds,

 Dave
 
 Dave

mocitysam

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #13 on: February 10, 2009, 05:24:04 pm »
I have alsa 19 drivers installed and the digital is still VT1708B.  what codec should I specify for this chip to get the SPDIF working?

Thanks

aplay -l: output:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: NVidia [HDA NVidia], device 1: VT1708B Digital [VT1708B Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: pcsp [pcsp], device 0: pcspeaker [pcsp]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

rodercot

  • Guest
Re: SPDIF does not work on ASUS M2N68-VM
« Reply #14 on: February 12, 2009, 12:57:17 pm »
I have alsa 19 drivers installed and the digital is still VT1708B.  what codec should I specify for this chip to get the SPDIF working?

Thanks

aplay -l: output:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: NVidia [HDA NVidia], device 1: VT1708B Digital [VT1708B Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: pcsp [pcsp], device 0: pcspeaker [pcsp]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


 I cannot figure out why yours does not work. You are seeing everything you should in aplay which makes no since and in reading up some more on the asus site, the VIA chip should handle analog and spdif sound and the alc chip is for hdmi audio only through the Nvidia chip.

 Most of us cannot even get the VT1708B Digital to display and in smartctl it lists the digital output as a digital input with the proper nid and placement of the jack but it is not properly assigned and cannot lock the assignment it seems and this is why it does not display for us at all.

 JUST AN FYI on xorg and custom modelines with HDMI AUDIO

 IT seems if you use custom modelines in your xorg file and you use the option

 Option "UseEDID" " "False"

 This will stop X from reading info from the TV BUT it will also KILL your audio from HDMI.

 The solution here is to use

 Option "ModeValidation" "NoEdidModes"

 rgds,

 Dave