From owner-freebsd-questions@FreeBSD.ORG Wed Jan 23 09:47:13 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7B1C7D05 for ; Wed, 23 Jan 2013 09:47:13 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm9-vm0.bullet.mail.ird.yahoo.com (nm9-vm0.bullet.mail.ird.yahoo.com [77.238.189.197]) by mx1.freebsd.org (Postfix) with ESMTP id 36432638 for ; Wed, 23 Jan 2013 09:47:11 +0000 (UTC) Received: from [77.238.189.54] by nm9.bullet.mail.ird.yahoo.com with NNFMP; 23 Jan 2013 09:47:10 -0000 Received: from [217.146.188.172] by tm7.bullet.mail.ird.yahoo.com with NNFMP; 23 Jan 2013 09:47:10 -0000 Received: from [127.0.0.1] by smtp140.mail.ird.yahoo.com with NNFMP; 23 Jan 2013 09:47:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1358934430; bh=mFbOQIBuoTNNsdk2FolVPWG8Zj2PuamZn+X0R0oC/eA=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Content-Type:To:Cc:Subject:References:Date:MIME-Version:Content-Transfer-Encoding:From:Message-ID:In-Reply-To:User-Agent; b=cuqzgulAM5kQps677gD/WujheuZlE6VT3BajwIPa2D/H1mbr5aZjihVDoda6T2Mwr52PzCLAD5dh+cE/yqk7Hl2QTBBF2Z+LOEvZAmfvN/BQ3ntbt3lSgGFbL4HynVvsKMrMhJR3M8lIqfnrP4+m1FJ7f2ukDv3Em8H3a/rA6AA= X-Yahoo-Newman-Id: 456514.60508.bm@smtp140.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: bbP3XNgVM1n90R_G_i1kp4IK24ebDGAHATqeu3KkHKgwi1U r9x9nuWiKZ4.ZuX_DcUVdifXEda4z3gd8Juogk_QY3G4xp5NP8FvkImnI6fr GFFWIXWSVMzTabcdPQ6VqIyhfxDCpM5_1VzlrVdB5IA3XHReDW5bUdp7Hk8l TyzJYL2tTOmFJdMjcTUiTnqTwLCkaOmHyJg7zVCnCoEZTAy0yoVI9Zcnsxkj gYb.x5FAuHu_KXjT6zmxjgf.ZdXQwcJsbERO88Bg2_HHIrbHTNsiRAIvlVvZ xxGNUZzjkswGbyfRsXWoP3m8MhEl1lnEk_OmkQ8hbh62MsOBSs8VUef0gsWY 1AsFLnczj7Gsm71exv4d2VTm_Mduzsb71JITMicpsc0AW.5LZPjNb5I6tvo5 UTsCKmIbPAcf6mGQWSjXkY_lEVgg5aSfwJcDWYVeUWw-- X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Received: from freebsd (ralf.mardorf@92.231.6.25 with login) by smtp140.mail.ird.yahoo.com with SMTP; 23 Jan 2013 01:47:10 -0800 PST Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Ian Smith" Subject: ADAT does work, but often is interrupted by noise - Was: FreeBSD and snd_hdspe last-ditch attempt References: <20130123144008.A62930@sola.nimnet.asn.au> Date: Wed, 23 Jan 2013 10:47:09 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ralf Mardorf" Message-ID: In-Reply-To: <20130123144008.A62930@sola.nimnet.asn.au> User-Agent: Opera Mail/12.12 (FreeBSD) Cc: freebsd-multimedia@freebsd.org, 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:47:13 -0000 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}