<div dir="ltr"><div><div><div><div><div>Hey all,<br><br></div>Meanwhile the Beagle Bone arrived so I'm finally testing with that.<br></div>I'm still struggling to write a correct overlay for it.<br><br></div>On the Pi I used an overlay based on the generic simple-audio-card, spdif-receiver and spdif-transmitter.<br><a href="https://github.com/pepijndevos/ouisician/blob/master/soc/fpgai2s.dts">https://github.com/pepijndevos/ouisician/blob/master/soc/fpgai2s.dts</a><br><br></div>On the Beagle I found this one I linked to earlier:<br><a href="https://github.com/ctag-fh-kiel/ctag-face-2-4/blob/master/device-tree-overlays/BB-CTAG-FACE-4CH-00A0.dts">https://github.com/ctag-fh-kiel/ctag-face-2-4/blob/master/device-tree-overlays/BB-CTAG-FACE-4CH-00A0.dts</a><br><br></div><div>This one seems at least useful for setting up the pinmux and mcasp.<br></div><div>However, it uses the specific ctag,face-2-4 card with the analog,ad1938 codec.<br></div><div>Instead I would like to use the generic cards I also used on the Pi (or similar).<br><br></div><div>Is there a way to connect simple-audio-card with mcasp?<br></div><div>Or do I really have to write a custom card in C?<br><br></div><div>Regards,<br></div><div>Pepijn<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 14, 2018 at 10:33 PM, Chris Obbard <span dir="ltr"><<a href="mailto:chris@64studio.com" target="_blank">chris@64studio.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pepijn,<br>
<span class=""><br>
> Thanks for the advice so far.<br>
> Based on this post, I managed to make my own I2S overlay.<br>
> <a href="https://www.raspberrypi.org/forums/viewtopic.php?t=189152" rel="noreferrer" target="_blank">https://www.raspberrypi.org/<wbr>forums/viewtopic.php?t=189152</a><br>
><br>
> However, still only two channels.<br>
> I found that the Pi can in fact understand TDM, but the SoC can only get 2<br>
> of the channels for some reason.<br>
> <a href="https://github.com/raspberrypi/linux/pull/1982" rel="noreferrer" target="_blank">https://github.com/<wbr>raspberrypi/linux/pull/1982</a><br>
<br>
</span>Yep, two channels only for Pi. It's after all a consumer SoC designed<br>
for mobile phones.<br>
I am not sure how the Audioinjector Octo works but this has eight channels.<br>
It uses a gate array with some kind of strange multiplexing. I have<br>
added Matt, he will be able to explain more on the design ;-).<br>
<span class=""><br>
> For the Beagle Bone, I also found someone who makes a cape with a lot of<br>
> inputs and outputs.<br>
> There are some forum post scattered here and there with references to McASP,<br>
> as you mentioned.<br>
> This overlay seems a good starting point, potentially:<br>
> <a href="https://github.com/ctag-fh-kiel/ctag-face-2-4/blob/master/device-tree-overlays/BB-CTAG-SW-8CH-00A0.dts" rel="noreferrer" target="_blank">https://github.com/ctag-fh-<wbr>kiel/ctag-face-2-4/blob/<wbr>master/device-tree-overlays/<wbr>BB-CTAG-SW-8CH-00A0.dts</a><br>
><br>
> So to sum it up, I2S works on the Pi for 2 channels, Beagle Bone is<br>
> something to look at more closely.<br>
<br>
</span>We are working with a university who have designed a Beaglebone cape<br>
and I have written kernel driver for soundcard with up to 6<br>
input/output channels designed for hearing aid research.<br>
Please wait kindly and I will post a link to the Github page in coming<br>
days with full hardware layout and kernel patch.<br>
<br>
BR,<br>
Chris<br>
</blockquote></div><br></div>