Create an ALSA Sound Card from an SSI on Android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create an ALSA Sound Card from an SSI on Android

1,831 Views
cristiansicilia
Contributor III

Hello *,

I have an IMX6 with an SSI connected to a FPGA that implement the SSI protocols.

The IMX6 receive/send from/to the FPGA an audio stream.

I would receive this stream and elaborate it before send it out to another interface, now the situation is that:

root@xxxx:/ # cat /proc/asound/cards                               

0 [wm8962audio    ]: wm8962-audio - wm8962-audio

                      wm8962-audio

that show an SSI connected to the codec WM8962, now I would another sound card where I can redirect the sound, like this:

root@xxxx:/ # cat /proc/asound/cards

0 [wm8962audio    ]: wm8962-audio - wm8962-audio

                      wm8962-audi

1 [fpgaaudio    ]: fpga-audio - fpga-audio

                      fpga-audio

Now I configured the SSI port:

platform_device_register(&mx6s_vwm8962_reg_devices);

mxc_register_device(&mx6s_audio_wm8962_device, &wm8962_data);

imx6q_add_imx_ssi(1, &ssi_pdata);

mxc_wm8962_init();

//No codec available for this device

mxc_register_device(&mx6s_audio_fpga_device,  &audio_data);

imx6q_add_imx_ssi(0, &ssi_pdata);

mxc_tetra_init();

How I can add another sound card connected with the SSI port connected to FPGA?

There are some example or evboard with this kind of configuration?

Labels (4)
0 Kudos
2 Replies

795 Views
igorpadykov
NXP Employee
NXP Employee

Hi Cristian

also suggest to look at Chapter 21

Porting Audio Codecs to a Custom Board MX53UG

and Chapters  Porting Audio Codecs to a Custom Board

i.MX_6Dual6Quad_BSP_Porting_Guide.pdf

from i.MX6 Linux Docs  L3.0.35_4.1.0_LINUX_DOCS

L3.10.17_1.0.0_LINUX_DOCS

Best regards

igor

0 Kudos

795 Views
saurabh206
Senior Contributor III

Hi

You need to register dummy sound card  with correct interface.

Than after you can use ALSA aplay/arecord to do transfer from one SSI port to another SSI port.

Thanks

Saurabh

0 Kudos