From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 07:40:53 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D2B05A6D for ; Tue, 11 Dec 2012 07:40:53 +0000 (UTC) (envelope-from michal.stepien@bezda.com) Received: from v031374.home.net.pl (v031374.home.net.pl [89.161.171.132]) by mx1.freebsd.org (Postfix) with SMTP id 1E5D88FC15 for ; Tue, 11 Dec 2012 07:40:52 +0000 (UTC) Received: from 77-255-1-228.adsl.inetia.pl [77.255.1.228] (HELO monster.bezda.com) by bezda.home.pl [116.25.248.156] with SMTP (IdeaSmtpServer v0.80) id 51cc755763214ebd; Tue, 11 Dec 2012 08:40:50 +0100 Message-ID: <50C6E382.8090908@bezda.com> Date: Tue, 11 Dec 2012 08:40:50 +0100 From: =?UTF-8?B?TWljaGHFgiBTdMSZcGllxYQ=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.9) Gecko/20121014 Icedove/10.0.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Question on "zero signal" References: <50C63C61.7000603@bezda.com> In-Reply-To: <50C63C61.7000603@bezda.com> X-Enigmail-Version: 1.4.1 X-Forwarded-Message-Id: <50C63C61.7000603@bezda.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Tue, 11 Dec 2012 07:40:53 -0000 Hello, I try to use freebsd 9.1RC3 for my mpd music station (running nfsroot by the way). Generally everything is ok, but there is one functionality I miss from linux. My DAC behaves quite weird when no signal is sent to it (with spdif, in my configuration it is pcm1). Namely my dac produces noise in such situation. In linux there was workaround. Under linux card sends some king of zero signal. DAC is satisfied and produces noise not any more. In loudspeakes is silence if mpd is stoped. Audio device is not kept by application -- signal is sent by driver itself. [prezi@zjawa ~]$ cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: on hdaa0 kld snd_hda (1p:1v/2r:1v) snddev flags=0x2e2 [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004 interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:4096/2048/2] channel flags=0x2100 {userland} -> feeder_mixer(0x00200010) -> {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, flags 0x00002100, 0x00000005 interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs:4096/2048/2] channel flags=0x2100 {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland} [pcm0:record:dsp0.r1]: spd 8000, fmt 0x00100008, flags 0x00000000, 0x00000000 interrupts 0, overruns 0, feed 0, hfree 65536, sfree 0 [b:65536/32768/2|bs:0/0/0] channel flags=0x0 {hardware} -> feeder_root(0x00000000) -> {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: on hdaa0 kld snd_hda (1p:1v/0r:0v) default snddev flags=0x2e7 [pcm1:play:dsp1.p0]: spd 44100, fmt 0x00200010, flags 0x0000a100, 0x00000004 interrupts 55798, underruns 0, feed 55798, ready 0 [b:4096/2048/2|bs:4096/2048/2] channel flags=0xa100 {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm1:play:dsp1.p0[pcm1:virtual:dsp1.vp0]: spd 44100, fmt 0x00200010, flags 0x10000000, 0x00000021 interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:65536/2048/32] channel flags=0x10000000 {userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) -> {hardware} pcm2: on hdaa1 kld snd_hda (1p:1v/0r:0v) snddev flags=0x2e7 [pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004 interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:4096/2048/2] channel flags=0x6100 {userland} -> feeder_mixer(0x00200010) -> {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} dmesg: hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 20,27 and 24,25,26 on hdaa0 pcm1: at nid 30 on hdaa0 hdacc1: at cad 3 on hdac0 hdaa1: at nid 1 on hdacc1 pcm2: at nid 5 on hdaa1 sysctl: dev.hdac.0.%desc: NVIDIA MCP79 HDA Controller dev.hdac.0.%driver: hdac dev.hdac.0.%location: slot=8 function=0 handle=\_SB_.PCI0.HDAC dev.hdac.0.%pnpinfo: vendor=0x10de device=0x0ac0 subvendor=0x174b subdevice=0x437b class=0x040300 dev.hdac.0.%parent: pci0 dev.hdac.0.wake: 0 dev.hdac.0.pindump: 0 dev.hdac.0.polling: 0 dev.hdacc.0.%desc: Realtek ALC662 HDA CODEC dev.hdacc.0.%driver: hdacc dev.hdacc.0.%location: cad=0 dev.hdacc.0.%pnpinfo: vendor=0x10ec device=0x0662 revision=0x01 stepping=0x01 dev.hdacc.0.%parent: hdac0 dev.hdacc.1.%desc: NVIDIA MCP7A HDA CODEC dev.hdacc.1.%driver: hdacc dev.hdacc.1.%location: cad=3 dev.hdacc.1.%pnpinfo: vendor=0x10de device=0x0007 revision=0x01 stepping=0x00 dev.hdacc.1.%parent: hdac0 dev.hdaa.0.%desc: Realtek ALC662 Audio Function Group dev.hdaa.0.%driver: hdaa dev.hdaa.0.%location: nid=1 dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x19daa108 dev.hdaa.0.%parent: hdacc0 dev.hdaa.0.nid20_config: 0x01014010 as=1 seq=0 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Green misc=0 dev.hdaa.0.nid20_original: 0x01014010 as=1 seq=0 device=Line-out conn=Jack ctype=1/8 loc=Rear color=Green misc=0 dev.hdaa.0.nid21_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid21_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid22_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid22_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid24_config: 0x01a19830 as=3 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=8 dev.hdaa.0.nid24_original: 0x01a19830 as=3 seq=0 device=Mic conn=Jack ctype=1/8 loc=Rear color=Pink misc=8 dev.hdaa.0.nid25_config: 0x02a19831 as=3 seq=1 device=Mic conn=Jack ctype=1/8 loc=Front color=Pink misc=8 dev.hdaa.0.nid25_original: 0x02a19831 as=3 seq=1 device=Mic conn=Jack ctype=1/8 loc=Front color=Pink misc=8 dev.hdaa.0.nid26_config: 0x0181303f as=3 seq=15 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=0 dev.hdaa.0.nid26_original: 0x0181303f as=3 seq=15 device=Line-in conn=Jack ctype=1/8 loc=Rear color=Blue misc=0 dev.hdaa.0.nid27_config: 0x0221401f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Front color=Green misc=0 dev.hdaa.0.nid27_original: 0x0221401f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Front color=Green misc=0 dev.hdaa.0.nid28_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid28_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1 dev.hdaa.0.nid29_config: 0x4004c601 as=0 seq=1 device=Line-out conn=None ctype=RCA loc=0x00 color=Res.C misc=6 dev.hdaa.0.nid29_original: 0x4004c601 as=0 seq=1 device=Line-out conn=None ctype=RCA loc=0x00 color=Res.C misc=6 dev.hdaa.0.nid30_config: 0x01441120 as=2 seq=0 device=SPDIF-out conn=Jack ctype=RCA loc=Rear color=Black misc=1 dev.hdaa.0.nid30_original: 0x01441120 as=2 seq=0 device=SPDIF-out conn=Jack ctype=RCA loc=Rear color=Black misc=1 dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref dev.hdaa.0.gpi_state: dev.hdaa.0.gpio_state: 0=disabled 1=disabled dev.hdaa.0.gpio_config: 0=keep 1=keep dev.hdaa.0.gpo_state: dev.hdaa.0.gpo_config: dev.hdaa.0.reconfig: 0 dev.hdaa.1.%desc: NVIDIA MCP7A Audio Function Group dev.hdaa.1.%driver: hdaa dev.hdaa.1.%location: nid=1 dev.hdaa.1.%pnpinfo: type=0x01 subsystem=0x10de0101 dev.hdaa.1.%parent: hdacc1 dev.hdaa.1.nid5_config: 0x18560110 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.nid5_original: 0x18560110 as=1 seq=0 device=Digital-out conn=Jack ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.nid7_config: 0x58560121 as=2 seq=1 device=Digital-out conn=None ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.nid7_original: 0x58560121 as=2 seq=1 device=Digital-out conn=None ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.nid9_config: 0x58560122 as=2 seq=2 device=Digital-out conn=None ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.nid9_original: 0x58560122 as=2 seq=2 device=Digital-out conn=None ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.nid11_config: 0x58560123 as=2 seq=3 device=Digital-out conn=None ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.nid11_original: 0x58560123 as=2 seq=3 device=Digital-out conn=None ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.nid13_config: 0x58560124 as=2 seq=4 device=Digital-out conn=None ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.nid13_original: 0x58560124 as=2 seq=4 device=Digital-out conn=None ctype=Digital loc=0x18 color=Unknown misc=1 dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref dev.hdaa.1.gpi_state: dev.hdaa.1.gpio_state: dev.hdaa.1.gpio_config: dev.hdaa.1.gpo_state: dev.hdaa.1.gpo_config: dev.hdaa.1.reconfig: 0 dev.pcm.0.%parent: hdaa0 dev.pcm.1.%parent: hdaa0 dev.pcm.2.%parent: hdaa1 hw.snd.feeder_rate_quality: 0 hw.snd.feeder_rate_round: 25 hw.snd.feeder_rate_max: 2016000 hw.snd.feeder_rate_min: 1 hw.snd.feeder_rate_polyphase_max: 183040 hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97 hw.snd.feeder_eq_exact_rate: 1 hw.snd.feeder_eq_presets: PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000 hw.snd.vpc_reset: 0 hw.snd.vpc_0db: 45 hw.snd.vpc_autoreset: 1 hw.snd.latency_profile: 1 hw.snd.latency: 5 hw.snd.report_soft_matrix: 1 hw.snd.report_soft_formats: 1 hw.snd.compat_linux_mmap: 0 hw.snd.vpc_mixer_bypass: 1 hw.snd.verbose: 2 hw.snd.maxautovchans: 16 hw.snd.default_unit: 1 hw.snd.version: 2009061500/amd64 hw.snd.default_auto: 0 dev.pcm.0.%desc: Realtek ALC662 (Analog 2.0+HP/2.0) dev.pcm.0.%driver: pcm dev.pcm.0.%location: nid=20,27,24,25,26 dev.pcm.0.%parent: hdaa0 dev.pcm.0.play.vchans: 1 dev.pcm.0.play.vchanmode: fixed dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanformat: s16le:2.0 dev.pcm.0.play.32bit: 24 dev.pcm.0.rec.vchans: 1 dev.pcm.0.rec.vchanmode: fixed dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanformat: s16le:2.0 dev.pcm.0.rec.32bit: 20 dev.pcm.0.rec.autosrc: 2 dev.pcm.0.buffersize: 65536 dev.pcm.0.bitperfect: 0 dev.pcm.1.%desc: Realtek ALC662 (Rear Digital) dev.pcm.1.%driver: pcm dev.pcm.1.%location: nid=30 dev.pcm.1.%parent: hdaa0 dev.pcm.1.play.vchans: 1 dev.pcm.1.play.vchanmode: adaptive dev.pcm.1.play.vchanrate: 44100 dev.pcm.1.play.vchanformat: s16le:2.0 dev.pcm.1.play.32bit: 24 dev.pcm.1.buffersize: 65536 dev.pcm.1.bitperfect: 0 dev.pcm.2.%desc: NVIDIA MCP7A (Digital) dev.pcm.2.%driver: pcm dev.pcm.2.%location: nid=5 dev.pcm.2.%parent: hdaa1 dev.pcm.2.play.vchans: 1 dev.pcm.2.play.vchanmode: passthrough dev.pcm.2.play.vchanrate: 48000 dev.pcm.2.play.vchanformat: s16le:2.0 dev.pcm.2.play.32bit: 24 dev.pcm.2.buffersize: 65536 dev.pcm.2.bitperfect: 0 best regards Michał Stępień -- Mój publiczny klucz PGP: http://www.bezda.com/stepien.asc My public PGP key: http://www.bezda.com/stepien.asc