S/PDIF input audio driver(s) for VSOS

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
Post Reply
User avatar
Henrik
VLSI Staff
Posts: 1041
Joined: Tue 2010-06-22 14:10

S/PDIF input audio driver(s) for VSOS

Post by Henrik » Fri 2017-05-05 8:40

Dear Forum Members,

it gives me great pleasure to present you with a new S/PDIF driver set, which now also includes an S/PDIF input driver AUISPD.DL3.

The new input driver supports 44.1, 48, 88.2, and 96 kHz reception.

Because of VS1005g hardware, there are the following limitations when using the new driver:
  • The driver is incompatible with any USB drivers.
  • The driver is incompatible with any S/PDIF output drivers. If you need both S/PDIF input and output, use a driver with both input and output capability (not available yet).
  • The driver is incompatible with any FM Radio receiver software.
  • The driver automatically sets the VSDSP core clock to 61.440 or 56.446 MHz.
To quickly test the driver, connect an S/PDIF cable to the VS1005g Developer Board "Optical IN" connector, then enter the following VSOS Shell commands:

Code: Select all

S:>driver +auodac s
S:>driver +auispd s
[... S/PDIF reception is always in "slave mode", so we need to sync input with output ...]
S:>driver +auxsyncs
[... Now let's start background playback from stdaudioin to stdaudioout ...]
S:>driver +auxplay
[... By this time you should be hearing sound. So let's check the input ...]
S:>auinput
stdaudioin:      0x23dc, auispd::audioFile=0x0c63(3171)
  ->Identify():  0x43b7, auxsyncs::Identify returns "AUXSYNCS"
  ->op:          0x23e3, auispd::audioFileOps=0x0000(0)
    ->Ioctl():   0x41ee, auxsyncs::AudioIoctl
    ->Read():    0x40f6, auispd::AudioRead
Sample rate:     47995
Bits per sample: 16
Buffer size:     512 16-bit words (256 16-bit stereo samples)
Buffer fill:     84 16-bit words (42 16-bit stereo samples)
Sample counter:  1068008
Overflows:       4170
S:>
At a later date we will release an S/PDIF input/output driver, but I don't have a definite schedule for that yet.

Happy testing!

Kind regards,
- Henrik
Attachments
AUXSPDIF.zip
S/PDIF drivers v1.05. Either compile using VSIDE, or just copy the .DL3 files to your system disk SYS/ folder.
(47.91 KiB) Downloaded 12 times
Good signatures never die. They just fade away.

User avatar
Henrik
VLSI Staff
Posts: 1041
Joined: Tue 2010-06-22 14:10

Re: S/PDIF input audio driver for VSOS

Post by Henrik » Fri 2017-05-05 13:01

Hello again!

Sometimes things go slower than excpected, and sometimes everything just works on the first try.

Today has been been a case of the latter. So, here is the seconds S/PDIF driver set for today, this time including also am S/PDIF input + output driver AUXSPD.DL3. With the driver it is possible to read audio from S/PDIF input, and to write to the S/PDIF output. The sample rate of the input and output are always the same, and the driver keeps them in sync.

Enjoy, and have a wonderful weekend!

Kind regards,
- Henrik
Attachments
AUXSPDIF_v107.zip
S/PDIF audio drivers. You can either compile the solutions using VSIDE, or just copy the .DL3 files to your system disk's SYS/ folder.
(71.99 KiB) Downloaded 13 times
Good signatures never die. They just fade away.

User avatar
Henrik
VLSI Staff
Posts: 1041
Joined: Tue 2010-06-22 14:10

Re: S/PDIF input audio driver(s) for VSOS

Post by Henrik » Wed 2017-05-17 10:32

Hello!

There has been yet another update to the S/PDIF drivers. This time they have been released as a part of the complete Audio Drivers v1.04 package that can be found in the last message of the following thread:
viewtopic.php?f=13&t=680

If you have any questions regarding the S/PDIF drivers, they are still very welcome here!

Kind regards,
- Henrik
Good signatures never die. They just fade away.

User avatar
Henrik
VLSI Staff
Posts: 1041
Joined: Tue 2010-06-22 14:10

Re: S/PDIF input audio driver(s) for VSOS

Post by Henrik » Tue 2017-05-23 14:46

The new S/PDIF drivers are now an integral part of the VSOS 3.42 Root and Libraries Source Code package, available at the end of this thread:
viewtopic.php?t=680

Kind regards,
- Henrik
Good signatures never die. They just fade away.

Post Reply

Who is online

Users browsing this forum: No registered users