I am using the OMAPL138 eval board and I have some problems managing the AIC31 codec. I started from the pspdrivers_01_30_00_06 examples and used the provided drivers. All is ok concerning the example. I can configure the AIC31 from the TCI file with the structure “audioAic31Params” and able to send/receive samples with the SIO mechanism.
My problem is to control the device dynamically. I try to use the GIO mechanism to send command to the device.
First point, I call the GIO_create () command to get an handle like this:
Handle = GIO_create("/aic310", IOM_INOUT, &status, &audioAic31Params, &gioAttrs);
but the handle returned is always NULL. I don’t know why.
Second point, I need to change the volume and the input/output selector. There are available commands (Aic31_AC_IOCTL_SET_VOLUME, Aic31_AC_IOCTL_SELECT_INPUT_SOURCE) to do this listed in “Aic31.h” and a little documented in “BIOSPSP_AIC3106Codec_Driver_Design.pdf”.
The problem is I can’t find nowhere the parameters definition for Args required for the GIO_control() command.
GIO_control(Handle, Aic31_AC_IOCTL_SET_VOLUME, Args???)
What are the specific Args values for each command?
DSP/BIOS 5_41_10_36
pspdrivers_01_30_00_06
Code Generation tool 7.2.0
Thanks for your support
Jean