mezzanine-community icon indicating copy to clipboard operation
mezzanine-community copied to clipboard

I2S Mezzanine

Open mwelling opened this issue 7 years ago • 18 comments

Consider making an I2S audio mezzanine to work with all 96boards CE spec boards.

mwelling avatar Jul 24 '17 20:07 mwelling

Nice to have:

  1. Mainline supported 1.8v compatible audio codec
  2. Use of on board oscillators to avoid getting MCLK from CE board
  3. Provision to connect external I2S inputs
  4. Exposing LS header (probably 2.54mm)

Mani-Sadhasivam avatar Aug 23 '17 13:08 Mani-Sadhasivam

We are looking for I2S audio mezzanine to work with Hikey960 board.

It is nice to have 4 DMICs (or 4 PDM microphones) input and stereo output.

nyadla-sys avatar Dec 06 '17 23:12 nyadla-sys

@niruyadla Is there a single I2S codec that can do this?

mwelling avatar Dec 07 '17 00:12 mwelling

As per below document and page number 9:

https://github.com/96boards/documentation/blob/master/ConsumerEdition/HiKey960/HardwareDocs/HiKey960_SoC_Reference_Manual.pdf

Part number Hi6403 seems to be supporting MIC x 4

nyadla-sys avatar Dec 07 '17 00:12 nyadla-sys

Okay I did a bit of investigation. The Hi6403 is not available from the typical vendors and has a bit of HiSilicon tie-in giving them a bit of an advantage over base boards for other SoC vendors. Also I am not seeing mainline support for this codec.

If HiSilicon supports the development maybe I would consider it but otherwise I would try to find a codec that is more SoC agnostic and hopefully supported in mainline.

mwelling avatar Dec 07 '17 01:12 mwelling

I agree with @mwelling here, codec should be board agnostic! Also, having 4 DMIC inputs seems to be an interesting feature to have. This will extend the application capabilities of the board to Voice acquisition etc... We could eventually use this board to develop something like Echo dot.

Mani-Sadhasivam avatar Dec 07 '17 03:12 Mani-Sadhasivam

Hello Mani, and Michael Welling, I work at Cadence and we are working on offloading tasks from App processor to HiFi 3 DSP which is embedded in the SoC of Hikey960. Happy to see that you are interested in working on a multi-mic data acquisition card for Hikey960. We also wish to do the same. You might be interested in looking at http://www.ti.com/tool/TIDA-01454#technicaldocuments This is dual PCM1864 circular microphone board reference design.
How to connect this to Hikey960? We need a minimum of 4 mic in (ideally 8 mic) as input. And as Niranjan and Mani says we could do a Echo dot like product demo. Another requirement is to have the microphone data go directly to HiFi 3 DSP via I2S. Would you be able to investigate how to connect the TI board to the I2S of the Hikey960? There are two issues here: (1) How to connect TI board to I2S of Hikey960 board electrically? (2) How to write DSP software on HiFi 3 DSP to access these 8 microphones (or at least 4 of them) with minimal latency?

RajPawate avatar Dec 09 '17 01:12 RajPawate

@sdrobertw , do we have any update on this ? I see HiSilicon merged some code changes on kernel to support I2S for Hikey960 @sdrobertw @Mani-Sadhasivam, Do you know when can we get mezzanine audio codec board for Hikey960?

nyadla-sys avatar Jun 04 '18 20:06 nyadla-sys

@mwelling

@Mani-Sadhasivam @niruyadla and @RajPawate are the ones who will need to provide update.

fixxxxxxer avatar Jun 04 '18 20:06 fixxxxxxer

I have been holding off on the design waiting for more information from @Mani-Sadhasivam. There was talk of another company contributing the design which is more than welcome. Hopefully we will have some more information by the bi-weekly meeting next week.

mwelling avatar Jun 04 '18 23:06 mwelling

@niruyadla @mwelling I have prepared some recommendations for the I2S Mezzanine which I will share it in our next Mezzanine meeting! Please let me know if we can discuss it here itself before the meeting.

Mani-Sadhasivam avatar Jun 05 '18 08:06 Mani-Sadhasivam

@Mani-Sadhasivam ,Please let me know when is next Mezzanine meeting?

nyadla-sys avatar Jun 05 '18 16:06 nyadla-sys

@niruyadla Monday, June 11 @ 9.30 to 10 PM (Indian Standard Time)

Mani-Sadhasivam avatar Jun 05 '18 17:06 Mani-Sadhasivam

@mwelling @niruyadla @sdrobertw @ric96

Here is the sample draft for the I2S Mezzanine:

https://docs.google.com/document/d/1dAwuQvU_V4PVBUMsx15CKj5A87g79PSl6L5iz3neU_U/edit?usp=sharing

I will populate this until our next meeting, please let me know your thoughts.

Mani-Sadhasivam avatar Jun 08 '18 06:06 Mani-Sadhasivam

@niruyadla @RajPawate We have logged the today's meeting notes in #64. It would be great if you guys can let us know on any support for this Mezzanine by any means!

Mani-Sadhasivam avatar Jun 11 '18 16:06 Mani-Sadhasivam

@mwelling @niruyadla @ric96

I have asked my college junior to come up with a low cost I2S Mezzanine design and he is up with the schematic and BoM. Please help with the review.

https://drive.google.com/file/d/1Gv76kbddEiU5T8BnT2cOk3aLxDisOm2Q/view?usp=sharing https://drive.google.com/file/d/1fzCWMdBwlzLDHY_UTjSRuHBHb54GQ8ME/view?usp=sharing

Note: This is not intended to compete with Adam's Mezzanine but I wanted this to be a cheaper one.

Mani-Sadhasivam avatar Nov 15 '18 02:11 Mani-Sadhasivam

Codec used is SGTL5000 and is well supported in mainline linux kernel.

Mani-Sadhasivam avatar Nov 15 '18 02:11 Mani-Sadhasivam

Design reviewed by @mwelling offline. Will share the updated design shortly.

Mani-Sadhasivam avatar Nov 22 '18 08:11 Mani-Sadhasivam