New Audio Driver Collection

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.
User avatar
Henrik
VLSI Staff
Posts: 1035
Joined: Tue 2010-06-22 14:10

New Audio Driver Collection

Post by Henrik » Fri 2015-07-17 13:17

Hello!

We have been working for quite some time to replace the monolithic and somewhat cumbersone AUDIO.DL3 with a set of nimble and adjustable, small audio drivers.

Today I'd like to present you with the first official release of the new audio driver set.

The set consists of the following audio driver packages:
AUIADC
- AUIADC.DL3 - Stereo Analog-to-digital audio driver
AUODAC
- AUODAC.DL3 - Stereo Digital-to-analog high-quality primary audio path driver
AUOOSET
- AUODAC.DL3 - Stereo Digital-to-analog secondary audio path driver
AUXI2S - I2S drivers
- AUOI2SMA.DL3: Audio to DAC automatically copied to I2S, VS1005g as Master
- AUXI2SM.DL3: Audio Input and Output, VS1005g as Master
- AUII2SM.DL3: Audio Input, VS1005g as Master
- AUOI2SM.DL3: Audio Output, VS1005g as Master
- AUXI2SS.DL3: Audio Input/Output, VS1005g as Slave
- AUII2SS.DL3: Audio Input, VS1005g as Slave
- AUOI2SS.DL3: Audio Output, VS1005g as Slave
AUXSPDIF - S/PDIF drivers
- AUOSPDA: Audio to DAC automatically copied to S/PDIF (separate volume control available)

Kind regards,
- Henrik

[EDIT 2015-12-21: Audio driver collection superseded with v1.01]
Attachments
AudioNew100.zip
First release of the new audio driver set.
(267.96 KiB) Downloaded 162 times
Good signatures never die. They just fade away.

liku
Senior User
Posts: 85
Joined: Thu 2014-12-11 8:49

Re: New Audio Driver Collection

Post by liku » Wed 2015-07-29 8:32

Hi Henrik,
In the FM app (RdsRadioNoUI.ap3) we are using the audio library i.e AUDIO.dl3 which works fine.
If i want to replace this with one of the new audio driver, then which driver i need to select from the available drivers mentioned in your post.
Actually i was trying to use AUIADC.DL3 for the same but got some error like:
E'ParamSpl'
E'noLibF'
Also tried to use the AUXI2SS.DL3, as i need I2S output also.
here also got the E'DevNullRd' error.

It will be nice of you if you can tell me which driver i can use for both I2S slave and audio in/out(means can be used for the FM APP and I2S also)

User avatar
Panu
VLSI Staff
Posts: 2405
Joined: Tue 2010-06-22 13:43

Re: New Audio Driver Collection

Post by Panu » Thu 2015-07-30 7:03

The nolibf error means that a library file (dl3) is not found. And the previous e tells which dl3 is needed. In your case paramspl.dl3. Copy it to SYS.
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

liku
Senior User
Posts: 85
Joined: Thu 2014-12-11 8:49

Re: New Audio Driver Collection

Post by liku » Thu 2015-07-30 14:45

Hi Panu,
The nolibf error means that a library file (dl3) is not found
I have already copied these libraries in my SYS folder.
After that also i am receiving the same error(E'DevNullRd').

It will be nice of you if you can tell me which driver i can use for both I2S slave and audio in/out(means can be used for the FM APP and I2S also)
Last edited by liku on Mon 2015-08-03 6:31, edited 1 time in total.

liku
Senior User
Posts: 85
Joined: Thu 2014-12-11 8:49

Re: New Audio Driver Collection

Post by liku » Mon 2015-08-03 6:30

Hi Panu,
Can i expect any response on this.

User avatar
Panu
VLSI Staff
Posts: 2405
Joined: Tue 2010-06-22 13:43

Re: New Audio Driver Collection

Post by Panu » Mon 2015-08-03 7:53

Hi!

Of course you can, just not from me. I don't know those drivers, they are very new and they were not written by me. I'm not at the office but the engineer who wrote them should soon be returning from his holiday and I hope he can answer you soon. I'm still on holiday for the coming week.

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

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

Re: New Audio Driver Collection

Post by Henrik » Mon 2015-08-03 14:32

Hello Liku,

I will look into your issue very soon.

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

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

Re: New Audio Driver Collection

Post by Henrik » Wed 2015-08-05 13:24

Hello again, Liku!

Do I understand correctly that you require:
1) FM input, and
2) Analog audio output, and
3) I2S output which is a copy of the analog output?

In that case, the following lines in your config.sys will do the trick:

# New 2015 audio ADC in driver
AUIADC s 32000 fm
# I2S automatic out
AUOI2SMA

I tested this with the RdsRadioNoUI example sent to this forum a few months ago, and it worked just as well as with the old audio driver.

If you want to load the AUIADC driver by hand, i.e. with LoadLibrary(), please note that it doesn't automatically replace stdaudioin. If you want to replace stdaudioin with this driver, you need to do something like this:

Code: Select all

#define LIB_NAME "AUIADC"

u_int16 *lib = NULL;
FILE *fp = NULL;

lib = LoadLibrary(LIB_NAME);
if (!lib) {
  printf("Cannot load " LIB_NAME ".DL3 library\n");
  goto finally;
}
/* Open */
fp = (FILE *)RunLoadedFunction(lib, ENTRY_3, NULL);
if (!fp) {
  printf("Cannot open " LIB_NAME ".DL3 audio file\n");
  goto finally;
}

/* Replace stdaudioin with our own file pointer.
   REMEMBER: IF YOU DO THIS; YOU NEED TO RESET stdaudioin
   WHEN YOU CLOSE THE LIBRARY! */
stdaudioin = fp;
Note that I2S needs to be in Master Mode in VS1005g for FM to work (so the external device must be the I2S slave). This is the same functionality as in the old audio driver.

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

AgafonovAS
User
Posts: 16
Joined: Tue 2015-08-11 9:37

Re: New Audio Driver Collection

Post by AgafonovAS » Tue 2015-08-11 10:17

Hi,

We're developing VS1005 and UART Shell extension enabled product.
And we have an issue with audio drivers.

In general we use VSOS3.22 libraries from here: viewtopic.php?f=13&t=680&start=40 (rev 20.02.2015).
We use 1005 breakout board hardware.
From SYS directory removed k9f4g, lcd288, lcd288c, lcdcon, decvorb, decwav, decwma, decaac, decflac , SDSDR, SDSDX, sdsd drivers. and unifont.dat file.
Also added auiadc.dl3 and auo.dac.dl3 from AudioNew100 package.

For make shell extension working also added getcmd.dl3 uartin.dl3 and loopback.dl3 rec.dl3 paramspl.dl3,

At startup I have a problem with AUIADC and AUODAC - it could not find reference for InitMutex function:

Next - when I try to record file I have another error DevNullRd.

Attached full fileset for this solution.
Config.txt listing:
# VSOS3 Boot Configuration File

[0]

USBHOST D

AUODAC s

AUIADC s 8000 mic1 mic2 dec6

RUN YBITCLR FC00,D

RUN YBITCLR FC00,C

UARTIN

S:SHELL.AP3

Please help me. Looks like audio driver issue.
Attachments
root VS1005 issue.rar
(122.49 KiB) Downloaded 161 times
brREwzxtPn9EA1.jpg
brREwzxtPn9EA1.jpg (116.3 KiB) Viewed 1434 times
brREwzxtPnlEA1.jpg
brREwzxtPnlEA1.jpg (141.29 KiB) Viewed 1434 times

User avatar
Panu
VLSI Staff
Posts: 2405
Joined: Tue 2010-06-22 13:43

Re: New Audio Driver Collection

Post by Panu » Tue 2015-08-11 17:04

Hi!

That's not an audio driver issue, it's a kernel issue: 3.10 is too old kernel (it doesn't implement InitMutexN).

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Post Reply

Who is online

Users browsing this forum: No registered users