Audigy 2 SPDIF rates.
I have found some more rates that the Audigy 2 SPDIF can run at:
Using the register 0x76 A_SPDIF_RATE.
00 => 48000
20 => 192000
40 => 96000
80 => 44100
No other rates are possible.
To detect the rate, loop the SPDIF output into an input and look at register 0x61 GPSRCS
Detected rate = ( ( GPSRCS & 0xFFFFF ) * 48000 ) / 0x40000 or
Detected rate = ( ( GPSRCS & 0xFFFFF ) * 48000 ) / 262144
The GPSRCS register is only valid if 0x51 != 0xffffffff0x51 is GPSCS which is the SPDIF status register. containing details about non-audio bits etc.
Likewise, 0x50 and 0x60 for the CD SPDIF input.
So, the header file should be changed from:
#define A_SPDIF_SAMPLERATE 0x76 /* Set the sample rate of SPDIF output */ #define A_SPDIF_RATE_MASK 0x000000c0 #define A_SPDIF_48000 0x00000000 #define A_SPDIF_44100 0x00000080 #define A_SPDIF_96000 0x00000040
To:
#define A_SPDIF_SAMPLERATE 0x76 /* Set the sample rate of SPDIF output */ #define A_SPDIF_RATE_MASK 0x000000e0 #define A_SPDIF_48000 0x00000000 #define A_SPDIF_44100 0x00000080 #define A_SPDIF_96000 0x00000040 #define A_SPDIF_192000 0x00000020
James
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click