From owner-freebsd-questions@FreeBSD.ORG Wed Jan 23 09:52:45 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 18C8AE7A; Wed, 23 Jan 2013 09:52:45 +0000 (UTC) (envelope-from br@www01.runexis.ru) Received: from www01.runexis.ru (www01.runexis.ru [80.253.8.195]) by mx1.freebsd.org (Postfix) with ESMTP id 67F2B699; Wed, 23 Jan 2013 09:52:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=www01.runexis.ru) by www01.runexis.ru with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1Txx8m-0002t4-T5; Wed, 23 Jan 2013 14:01:09 +0400 Received: (from br@localhost) by www01.runexis.ru (8.14.5/8.14.5/Submit) id r0NA17po011099; Wed, 23 Jan 2013 14:01:07 +0400 (MSK) (envelope-from br) Date: Wed, 23 Jan 2013 14:01:07 +0400 From: Ruslan Bukin To: Ralf Mardorf Subject: Re: ADAT does work, but often is interrupted by noise - Was: FreeBSD and snd_hdspe last-ditch attempt Message-ID: <20130123100107.GA10466@jail.io> References: <20130123144008.A62930@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org, Ian Smith , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 09:52:45 -0000 please include also the output of 1. sysctl hw.snd 2. sysctl dev.pcm On Wed, Jan 23, 2013 at 10:47:09AM +0100, Ralf Mardorf wrote: > Thank you Ian :) > > On Wed, 23 Jan 2013 05:25:59 +0100, Ian Smith wrote: > > 'cat /dev/sndstat' > > I already posted it ;). However, I set sysctl hw.snd.verbose=2, here it's > again [1]. > It's a cheap professional audio device, IOW it's not a consumer or > semi-professional device, so cheap doesn't mean low quality. Professional > and semi-professional devices usually don't support surround sound, but at > least the professional devices provide special interfaces, such as AES/EBU > and ADAT. The card I'm using comes with two analog IOs, AES/EBU, ADAT and > it supports consumer's SPDIF. > > $ ls -l /dev/dsp* > crw-rw-rw- 1 root wheel 0, 205 Jan 23 09:41 /dev/dsp0.0 > crw-rw-rw- 1 root wheel 0, 204 Jan 23 09:41 /dev/dsp1.0 > crw-rw-rw- 1 root wheel 0, 203 Jan 23 09:41 /dev/dsp2.0 > crw-rw-rw- 1 root wheel 0, 202 Jan 23 09:41 /dev/dsp3.0 > crw-rw-rw- 1 root wheel 0, 201 Jan 23 09:41 /dev/dsp4.0 > crw-rw-rw- 1 root wheel 0, 200 Jan 23 09:41 /dev/dsp5.0 > crw-rw-rw- 1 root wheel 0, 199 Jan 23 09:41 /dev/dsp6.0 > crw-rw-rw- 1 root wheel 0, 198 Jan 23 09:41 /dev/dsp7.0 > > > have to assume you've already > > discussed your issues with its author, Ruslan Bukin > > Yes, Ruslan does or at least did follow the thread. > > I set jackd to use OSS with /dev/dsp4.0, I connected synaddsubfx > > $ zynaddsubfx > > ZynAddSubFX - Copyright (c) 2002-2009 Nasca Octavian Paul and others > Compiled: Jan 20 2013 03:10:05 > This program is free software (GNU GPL v.2 or later) and > it comes with ABSOLUTELY NO WARRANTY. > > Try 'zynaddsubfx --help' for command-line options. > Sound Buffer Size = 256 samples > Internal latency = 5.3 ms > ADsynth Oscil.Size = 1024 samples > Internal SampleRate = 48000 > Jack Output SampleRate= 48000 > ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such > file or directory > > Now there sometimes is audio output and sometimes dangerous noise, that > could damage the speakers. Jack is running without real-time, > Frames/Period 1024, Periods/Buffer 2, Samplerae 48000, Word Length 16. > > Regards, > Ralf > > [1] > $ cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) > Installed devices: > pcm0: at io 0xfdff0000 irq 18 kld snd_hdspe > (1p:1v/1r:1v) default > snddev flags=0x2e6 > [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000006 > interrupts 0, underruns 0, feed 0, ready 0 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 -> > 0x00201000) -> {hardware} > pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 8000, fmt 0x00100008, flags > 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000007 > interrupts 0, overruns 0, feed 0, hfree 131072, sfree 65536 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {hardware} -> feeder_root(0x00201000) -> feeder_format(0x00201000 -> > 0x00200010) -> feeder_mixer(0x00200010) -> {userland} > pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 8000, fmt 0x00100008, > flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm1: at io 0xfdff0000 irq 18 kld snd_hdspe > (1p:1v/0r:0v) > snddev > flags=0x2e7 > [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000006 > interrupts 0, underruns 0, feed 0, ready 0 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 -> > 0x00201000) -> {hardware} > pcm1:play:dsp1.p0[pcm1:virtual:dsp1.vp0]: spd 8000, fmt 0x00100008, flags > 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {userland} -> feeder_root(0x00000000) -> {hardware} > pcm2: at io 0xfdff0000 irq 18 kld snd_hdspe (1p:1v/1r:1v) > snddev flags=0x2e6 > [pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000006 > interrupts 0, underruns 0, feed 0, ready 0 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 -> > 0x00201000) -> {hardware} > pcm2:play:dsp2.p0[pcm2:virtual:dsp2.vp0]: spd 8000, fmt 0x00100008, flags > 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm2:record:dsp2.r0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000007 > interrupts 0, overruns 0, feed 0, hfree 131072, sfree 65536 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {hardware} -> feeder_root(0x00201000) -> feeder_format(0x00201000 -> > 0x00200010) -> feeder_mixer(0x00200010) -> {userland} > pcm2:record:dsp2.r0[pcm2:virtual:dsp2.vr0]: spd 8000, fmt 0x00100008, > flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm3: at io 0xfdff0000 irq 18 kld snd_hdspe > (1p:1v/1r:1v) > snddev flags=0x2e6 > [pcm3:play:dsp3.p0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000006 > interrupts 0, underruns 0, feed 0, ready 0 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 -> > 0x00201000) -> {hardware} > pcm3:play:dsp3.p0[pcm3:virtual:dsp3.vp0]: spd 8000, fmt 0x00100008, flags > 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm3:record:dsp3.r0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000007 > interrupts 0, overruns 0, feed 0, hfree 131072, sfree 65536 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {hardware} -> feeder_root(0x00201000) -> feeder_format(0x00201000 -> > 0x00200010) -> feeder_mixer(0x00200010) -> {userland} > pcm3:record:dsp3.r0[pcm3:virtual:dsp3.vr0]: spd 8000, fmt 0x00100008, > flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm4: at io 0xfdff0000 irq 18 kld snd_hdspe > (1p:1v/1r:1v) > snddev flags=0x2e6 > [pcm4:play:dsp4.p0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000006 > interrupts 0, underruns 0, feed 0, ready 0 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 -> > 0x00201000) -> {hardware} > pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp0]: spd 8000, fmt 0x00100008, flags > 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm4:record:dsp4.r0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000007 > interrupts 0, overruns 0, feed 0, hfree 131072, sfree 65536 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {hardware} -> feeder_root(0x00201000) -> feeder_format(0x00201000 -> > 0x00200010) -> feeder_mixer(0x00200010) -> {userland} > pcm4:record:dsp4.r0[pcm4:virtual:dsp4.vr0]: spd 8000, fmt 0x00100008, > flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm5: at io 0xfdff0000 irq 18 kld snd_hdspe > (1p:1v/1r:1v) > snddev flags=0x2e6 > [pcm5:play:dsp5.p0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000006 > interrupts 0, underruns 0, feed 0, ready 0 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 -> > 0x00201000) -> {hardware} > pcm5:play:dsp5.p0[pcm5:virtual:dsp5.vp0]: spd 8000, fmt 0x00100008, flags > 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm5:record:dsp5.r0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000007 > interrupts 0, overruns 0, feed 0, hfree 131072, sfree 65536 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {hardware} -> feeder_root(0x00201000) -> feeder_format(0x00201000 -> > 0x00200010) -> feeder_mixer(0x00200010) -> {userland} > pcm5:record:dsp5.r0[pcm5:virtual:dsp5.vr0]: spd 8000, fmt 0x00100008, > flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm6: at io 0xfdff0000 irq 18 kld snd_hdspe > (1p:1v/1r:1v) > snddev flags=0x2e6 > [pcm6:play:dsp6.p0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000006 > interrupts 0, underruns 0, feed 0, ready 0 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 -> > 0x00201000) -> {hardware} > pcm6:play:dsp6.p0[pcm6:virtual:dsp6.vp0]: spd 8000, fmt 0x00100008, flags > 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm6:record:dsp6.r0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000007 > interrupts 0, overruns 0, feed 0, hfree 131072, sfree 65536 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {hardware} -> feeder_root(0x00201000) -> feeder_format(0x00201000 -> > 0x00200010) -> feeder_mixer(0x00200010) -> {userland} > pcm6:record:dsp6.r0[pcm6:virtual:dsp6.vr0]: spd 8000, fmt 0x00100008, > flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm7: at io 0xfdff0000 irq 18 kld snd_hdspe > (1p:1v/1r:1v) > snddev flags=0x2e6 > [pcm7:play:dsp7.p0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000006 > interrupts 0, underruns 0, feed 0, ready 0 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 -> > 0x00201000) -> {hardware} > pcm7:play:dsp7.p0[pcm7:virtual:dsp7.vp0]: spd 8000, fmt 0x00100008, flags > 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm7:record:dsp7.r0]: spd 48000, fmt 0x00200010/0x00201000, flags > 0x00002100, 0x00000007 > interrupts 0, overruns 0, feed 0, hfree 131072, sfree 65536 > [b:131072/4096/32|bs:65536/2048/32] > channel flags=0x2100 > {hardware} -> feeder_root(0x00201000) -> feeder_format(0x00201000 -> > 0x00200010) -> feeder_mixer(0x00200010) -> {userland} > pcm7:record:dsp7.r0[pcm7:virtual:dsp7.vr0]: spd 8000, fmt 0x00100008, > flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0] > channel flags=0x10000000 > {hardware} -> feeder_root(0x00000000) -> {userland} > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org"