PCM2906 SPDIF Input and AC3 - diyAudio
Go Back   Home > Forums > Design & Build > Parts

Parts Where to get, and how to make the best bits. PCB's, caps, transformers, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 21st February 2008, 08:28 AM   #1
diyAudio Member
 
Join Date: Feb 2008
Default PCM2906 SPDIF Input and AC3

For a long time I've wanted a soundcard with digital inputs that can accept an incoming Dolby Digital (AC3) signal, decode it, and play it through my computer speakers. This would be useful for things like gaming consoles, since I don't have a receiver/home theater I use my PC and my monitor (I run the console's audio into my pc's soundcard).

The problem is almost no soundcards have digital inputs and the ones that do can only accept stereo audio from the digital ins. There are one or two cards that support Dolby Digital on the digital inputs, but these are the ridiculously expensive cards (typically in the hundreds of USD range).

Given that I don't want to buy a retardedly expensive soundcard and that the onboard Intel HD audio on my motherboard is fine with the exception that it has no digital inputs, I decided to do some research and I discovered the TI PCM2906.

This chip seems to have everything I want, existing drivers (even for Vista!), and SPDIF in. My idea is that, using this chip and a simple PCB, I can take the digital audio it receives and pass it into the AC3Filter software which can decode AC3 signals (I'm a programmer so writing a bit of code to connect the directshow filters doesn't worry me).

My question however, is if I were to send an AC3 encoded audio signal into this chip over SPDIF, what would it do with it? Would it pass the signal un-mangled up to the software? In the past I did have a soundcard with an spdif input, however anything that wasn't stereo PCM was simply ignored. So I'm worried this chip might do the same....

I appreciate any feedback on my idea.
  Reply With Quote
Old 21st February 2008, 12:11 PM   #2
diyAudio Member
 
Join Date: Mar 2007
The datasheet seems to indicate that any digital input that's not in one of the supported formats will be ignored, but it's not totally clear. Even if it didn't ignore it because of the flag indicating it's not PCM audio, the low bitrate of the AC3 stream would seem to pose a problem.

Unfortunately I don't think there's an easy way to do this. Most likely to work is probably an SPDIF receiver followed by a transmitter, and either some logic or configuration to null the bits that set it as digital data (I believe the validity bit is used for this, but I'm not sure). Put this into a soundcard with SPDIF inputs. Even then though, I think you may run into trouble with the bitrate, but it might be possible to work around it if your card allows you to slave it to the recovered clock.

Long story short, AC3 is a pain in the f*cking *** to deal with. Really wish they used an open standard instead, it'd make our lives a lot easier...I don't really like the idea of using 3 soundcards to get 5.1 digital out to a decent DAC.
__________________
http://audio.gotroot.ca/
  Reply With Quote
Old 27th February 2008, 11:34 PM   #3
diyAudio Member
 
Join Date: Feb 2008
Quote:
Even if it didn't ignore it because of the flag indicating it's not PCM audio, the low bitrate of the AC3 stream would seem to pose a problem.
I admittedly don't know very much about AC3 or how it's transmitted over SPDIF, so could you elaborate more on why the lower bitrate would cause a problem?
  Reply With Quote
Old 28th February 2008, 12:36 AM   #4
diyAudio Member
 
Join Date: Mar 2007
Quote:
Originally posted by unixd0od


I admittedly don't know very much about AC3 or how it's transmitted over SPDIF, so could you elaborate more on why the lower bitrate would cause a problem?
I'm not positive how it's handled myself, but typically AC3 is 448kbps while CD audio is 1411.2kbps. 448kbps doesn't work out to a standard audio sample rate, so the receiver might reject it. The docs indicate it can only accept a limited set of sample rates. It might be padded or otherwise pumped up to a standard rate though, I'm not certain about this.

If it's going to work, you will probably have to use an S/PDIF receiver strung to a transmitter (or a modular transceiver like the DIX4392 could do this) into the PCM2906 make sure the validity bit is set, or I'm pretty sure the PCM2906 is going to ignore the bitstream data.

Once you get that far, it shouldn't be too hard to get the data back.

TAS1020 can probably do this relatively easily, but you'd need to write firmware and drivers.
__________________
http://audio.gotroot.ca/
  Reply With Quote
Old 28th February 2008, 02:01 PM   #5
diyAudio Member
 
Join Date: Mar 2007
If you start at this Doom9 thread you can probably find a lot more information: http://forum.doom9.org/showthread.php?s=&postid=338286

Seems like you can just buy an Audigy for cheap, install the kX Project drivers and have at it. There's also already a tool available to extract the digital data from the capture WAV.
__________________
http://audio.gotroot.ca/
  Reply With Quote
Old 17th February 2009, 10:14 PM   #6
diyAudio Member
 
Join Date: Feb 2009
I have created a new thread on the AVS Forum to compile all of my knowledge about SPDIF related issues.
http://www.avsforum.com/avs-vb/showt...0#post15846010

It provides a really detailed compiling of everything I have discovered about this issue, and lists the limitations in detail.

Lets move all further discussion related to this issue to that thread.

Also, please circulate the thread. I would like it to become a sticky in that forum subsection (so that people wont waste the hours I have wasted on this issue).
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spdif Input to USB 24 bit Recordist Digital Line Level 6 28th August 2009 09:44 PM
SPDIF from DAC Input Streams fmak Digital Source 9 25th March 2006 01:38 PM
spdif input circuit help burbeck Digital Source 31 15th September 2005 03:28 PM
PCM2906 PCB Digital Input Problem Gcollier Digital Source 7 28th June 2005 05:20 PM
Can you add a SPDIF input to a CD player? Leo V Digital Source 0 3rd October 2002 05:01 PM


New To Site? Need Help?

All times are GMT. The time now is 05:57 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2