Re: [very-RFC 0/8] TSN driver for the kernel
From: Henrik Austad
Date: Wed Jun 15 2016 - 03:50:15 EST
On Wed, Jun 15, 2016 at 09:04:41AM +0200, Richard Cochran wrote:
> On Tue, Jun 14, 2016 at 10:38:10PM +0200, Henrik Austad wrote:
> > Whereas I want to do
> >
> > aplay some_song.wav
>
> Can you please explain how your patches accomplish this?
In short:
modprobe tsn
modprobe avb_alsa
mkdir /sys/kernel/config/eth0/link
cd /sys/kernel/config/eth0/link
<set approriate values vor the attributes>
echo alsa > enabled
aplay -Ddefault:CARD=avb some_song.wav
Likewise on the receiver side, except add 'Listener' to end_station
attribute
arecord -c2 -r48000 -f S16_LE -Ddefault:CARD=avb > some_recording.wav
I've not had time to fully fix the hw-aprams for alsa, so some manual
tweaking of arecord is required.
Again, this is a very early attempt to get something useful done with TSN,
I know there are rough edges, I know buffer handling and timestamping is
not finished
Note: if you don't have an intel-card, load tsn in debug-mode and it will
let you use all NICs present.
modprobe tsn in_debug=1
--
Henrik Austad
Attachment:
signature.asc
Description: Digital signature