From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932252AbcFOHuL (ORCPT ); Wed, 15 Jun 2016 03:50:11 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:33032 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752378AbcFOHuH (ORCPT ); Wed, 15 Jun 2016 03:50:07 -0400 Date: Wed, 15 Jun 2016 09:50:02 +0200 From: Henrik Austad To: Richard Cochran Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, alsa-devel@vger.kernel.org, netdev@vger.kernel.org, Arnd Bergmann Subject: Re: [very-RFC 0/8] TSN driver for the kernel Message-ID: <20160615075002.GA5070@sisyphus.home.austad.us> References: <1465686096-22156-1-git-send-email-henrik@austad.us> <20160613114713.GA9544@localhost.localdomain> <20160613130059.GA20320@sisyphus.home.austad.us> <20160613193208.GA2441@netboy> <20160614093000.GB21689@sisyphus.home.austad.us> <20160614182615.GA2741@netboy> <20160614203810.GC21689@sisyphus.home.austad.us> <20160615070441.GB2919@netboy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <20160615070441.GB2919@netboy> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > >=20 > > aplay some_song.wav >=20 > 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 echo alsa > enabled aplay -Ddefault:CARD=3Davb some_song.wav Likewise on the receiver side, except add 'Listener' to end_station=20 attribute arecord -c2 -r48000 -f S16_LE -Ddefault:CARD=3Davb > some_recording.wav I've not had time to fully fix the hw-aprams for alsa, so some manual=20 tweaking of arecord is required. Again, this is a very early attempt to get something useful done with TSN,= =20 I know there are rough edges, I know buffer handling and timestamping is=20 not finished Note: if you don't have an intel-card, load tsn in debug-mode and it will= =20 let you use all NICs present. modprobe tsn in_debug=3D1 --=20 Henrik Austad --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAldhCKoACgkQ6k5VT6v45lnc4wCg7wLZZ78MxAxAXdqu6/zGnc4D fNUAoMfGnsIS2IozggU2+r7ulJBSBCDm =MBnt -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 15 Jun 2016 09:50:02 +0200 From: Henrik Austad Message-ID: <20160615075002.GA5070@sisyphus.home.austad.us> References: <1465686096-22156-1-git-send-email-henrik@austad.us> <20160613114713.GA9544@localhost.localdomain> <20160613130059.GA20320@sisyphus.home.austad.us> <20160613193208.GA2441@netboy> <20160614093000.GB21689@sisyphus.home.austad.us> <20160614182615.GA2741@netboy> <20160614203810.GC21689@sisyphus.home.austad.us> <20160615070441.GB2919@netboy> MIME-Version: 1.0 In-Reply-To: <20160615070441.GB2919@netboy> Subject: Re: [alsa-devel] [very-RFC 0/8] TSN driver for the kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1488940108547541652==" Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org Cc: alsa-devel@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-media@vger.kernel.org List-ID: --===============1488940108547541652== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > >=20 > > aplay some_song.wav >=20 > 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 echo alsa > enabled aplay -Ddefault:CARD=3Davb some_song.wav Likewise on the receiver side, except add 'Listener' to end_station=20 attribute arecord -c2 -r48000 -f S16_LE -Ddefault:CARD=3Davb > some_recording.wav I've not had time to fully fix the hw-aprams for alsa, so some manual=20 tweaking of arecord is required. Again, this is a very early attempt to get something useful done with TSN,= =20 I know there are rough edges, I know buffer handling and timestamping is=20 not finished Note: if you don't have an intel-card, load tsn in debug-mode and it will= =20 let you use all NICs present. modprobe tsn in_debug=3D1 --=20 Henrik Austad --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAldhCKoACgkQ6k5VT6v45lnc4wCg7wLZZ78MxAxAXdqu6/zGnc4D fNUAoMfGnsIS2IozggU2+r7ulJBSBCDm =MBnt -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7-- -- To unsubscribe from this list: send the line "unsubscribe alsa-devel" in --===============1488940108547541652== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel --===============1488940108547541652==-- -- To unsubscribe from this list: send the line "unsubscribe alsa-devel" in