From owner-freebsd-multimedia@FreeBSD.ORG Wed Jul 4 17:02:31 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E227F16A421 for ; Wed, 4 Jul 2007 17:02:31 +0000 (UTC) (envelope-from probsd@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by mx1.freebsd.org (Postfix) with ESMTP id 7696813C487 for ; Wed, 4 Jul 2007 17:02:31 +0000 (UTC) (envelope-from probsd@gmail.com) Received: by wr-out-0506.google.com with SMTP id i23so138254wra for ; Wed, 04 Jul 2007 10:02:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Tk2qML2Z9ytgCWfKrCRZYPW5DPrGbEhw8scx/1TFwnlownpQEiOE0GHE7fOR1sP2Z2u2m6IP4zrx1YVq4gvsHOklDa2hHTNSFZANbM9gY8oKCPirJ/7HRWhakU7YL4fmsCYwgHbIkhtQRkcDQc3ILGTPWN3AaSYiGUAWuhkmQG4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=lzbj23wjuCrxVV1OwoPT8yiASkh0Q345rFxgVQF3OtVW4t7Sp6V7L/eWacItYmXvyOMdo4E8uc9C9/dBLpZ2d650pzZUXLNqCEvD1MTryHjT5/rNdkIxHcDagXlpXEHOn0Xl48tLFyqBncEnBsWknNIpz2bJ+g40sp0oJNcSObw= Received: by 10.142.72.21 with SMTP id u21mr522946wfa.1183568550083; Wed, 04 Jul 2007 10:02:30 -0700 (PDT) Received: by 10.142.111.1 with HTTP; Wed, 4 Jul 2007 10:02:29 -0700 (PDT) Message-ID: <483316d70707041002n471c8046qbff3e6233f3612c3@mail.gmail.com> Date: Wed, 4 Jul 2007 12:02:29 -0500 From: "Rick Mullis" To: "Yuriy Tsibizov" In-Reply-To: <78664C02FF341B4FAC63E561846E3BCC0A13D8@ex.hhp.local> MIME-Version: 1.0 References: <483316d70706281009k13f2e37al2a05ea53b82c6e9a@mail.gmail.com> <78664C02FF341B4FAC63E561846E3BCC0A13D8@ex.hhp.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org Subject: Re: snd_emu10kx patch (WAS: RE: SB Live 5.1 Digital - sysctl ?) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2007 17:02:32 -0000 Hi Yuriy, With digitally connected speakers (S/PDIF output to external receiver / amplifier) without SND_EMU10KX_MULTICHANNEL_DISABLED with analog mode I get sound from analog jack only. With driver in digital mode I get sound from analog jack and digital jack. However I only get sound from front speakers. If I add SND_EMU10KX_MULTICHANNEL_DISABLED to kernel, the sound state is the same for the analog jack in digital or analog mode. However I get no sound on digital jack in analog mode but in digital mode I do get sound from front and rear speakers, no center channel though. The sound volume is so low on the rear channel it is hard to hear it. I can't seem to find a way to increase the volume for just the rear channel. I hope you don't remove the sysctl switch for digital mode. I have no problem with crashing at all. I have tested for a couple of hours now and everything seems fine, I'm testing with herrie. #sysctl -a | grep emu emu10kx0: SB Live! IR MIDI events enabled. emu10kx0: port 0x1000-0x101f irq 21 at device 0.0 on pci7 emu10kx0: [ITHREAD] pcm0: on emu10kx0 pcm1: on emu10kx0 midi0: on emu10kx0 emu10kx0: SB Live! IR MIDI events enabled. emu10kx0: port 0x1000-0x101f irq 21 at device 0.0 on pci7 emu10kx0: [ITHREAD] pcm0: on emu10kx0 pcm1: on emu10kx0 midi0: on emu10kx0 emu10kx0: SB Live! IR MIDI events enabled. emu10kx0: port 0x1000-0x101f irq 21 at device 0.0 on pci7 emu10kx0: [ITHREAD] pcm0: on emu10kx0 pcm1: on emu10kx0 dev.emu10kx.0.%desc: Creative SBLive! 5.1 Digital [SB0220] dev.emu10kx.0.%driver: emu10kx dev.emu10kx.0.%location: slot=0 function=0 dev.emu10kx.0.%pnpinfo: vendor=0x1102 device=0x0002 subvendor=0x1102 subdevice=0x8065 class=0x040100 dev.emu10kx.0.%parent: pci7 dev.emu10kx.0._digital: 1 dev.emu10kx.0._pcm_front_l: 100 dev.emu10kx.0._pcm_front_r: 100 dev.emu10kx.0._ac97_front_l: 100 dev.emu10kx.0._ac97_front_r: 100 dev.emu10kx.0._ac97_rec_l: 0 dev.emu10kx.0._ac97_rec_r: 0 dev.emu10kx.0._master_front_l: 100 dev.emu10kx.0._master_front_r: 100 dev.emu10kx.0._master_rec_l: 100 dev.emu10kx.0._master_rec_r: 100 dev.pcm.0.%parent: emu10kx0 dev.pcm.1.%parent: emu10kx0 pcm0: on emu10kx0 pcm0: pcm0: on emu10kx0 pcm0: pcm0: on emu10kx0 pcm0: pcm1: on emu10kx0 pcm0: on emu10kx0 pcm0: pcm1: on emu10kx0 pcm0: on emu10kx0 pcm0: pcm1: on emu10kx0 #sysctl -a | grep pcm dev.emu10kx.0._pcm_front_l: 100 dev.emu10kx.0._pcm_front_r: 100 dev.pcm.0.%desc: EMU10Kx DSP front PCM interface dev.pcm.0.%driver: pcm dev.pcm.0.%parent: emu10kx0 dev.pcm.0.eapd: 1 dev.pcm.0.play.vchans: 1 dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanformat: s16le dev.pcm.0.rec.vchans: 1 dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanformat: s16le dev.pcm.0.buffersize: 65536 dev.pcm.1.%desc: EMU10Kx DSP rear PCM interface dev.pcm.1.%driver: pcm dev.pcm.1.%parent: emu10kx0 dev.pcm.1.play.vchans: 1 dev.pcm.1.play.vchanrate: 48000 dev.pcm.1.play.vchanformat: s16le dev.pcm.1.buffersize: 65536 #mixer Mixer vol is currently set to 100:100 Mixer pcm is currently set to 100:100 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 0:0 Mixer igain is currently set to 0:0 Mixer ogain is currently set to 50:50 Mixer line1 is currently set to 75:75 Mixer line2 is currently set to 0:0 Mixer line3 is currently set to 0:0 Mixer dig1 is currently set to 100:100 Mixer dig2 is currently set to 100:100 Mixer dig3 is currently set to 100:100 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Mixer video is currently set to 75:75 #cat /dev/sndstat Recording source: mic FreeBSD EMU10Kx Audio Driver Hardware resource usage: DSP General Purpose Registers: 44 used, 256 total DSP Instruction Registers: 64 used, 512 total Card supports AC97 codec, SBLive! DSP code Installed devices: EMU10Kx DSP front PCM interface on pcm0 EMU10Kx DSP rear PCM interface on pcm1 Card is in digital mode #cat /dev/emu10kx0 FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64) Installed devices: pcm0: on emu10kx0 [GIANT] (4p:1v/1r:1v channels duplex default) pcm1: on emu10kx0 [GIANT] (1p:1v/0r:0v channels) Thanks for all your hard work. If you need any futher testing I would be happy to help. Thanks, Rick On 7/4/07, Yuriy Tsibizov wrote: > > Dear SB Live! / Audigy users. > > I'm going to ask ariff to (ask re@ and) commit this patch before 7.0 > release: > http://chibis.persons.gfk.ru/audigy/snd_emu10kx_70_patch2 > > > Update snd_emu10kx driver with recent perforce changes (and some other > changes too). > > (without any real order) > > 1. Use device_get_nameunit for mutex naming > 2. Add timer for low-latency playback > 3. Move most mixer controls from sysctls to mixer(8) controls. This > is a largest part of this patch. > 4. Add analog/digital switch (as a temporary sysctl) > 5. Get back support for low-bitrate playback (with help of (2)) > 6. Change locking for exclusive I/O. Writing to non-PTR register > is almost safe and does not need to be ordered with PTR operations. > 7. Disable MIDI until we get it to detach properly and fix memory > managment problems. > 8. Enable multichannel playback by default. It is as stable as > single-channel mode. Multichannel recording is still an experimental > feature. > 9. Add a way to disable card from a loader tunable. > > Tested on: > > emu10kx0: port 0x9000-0x903f irq 17 > at device 9.0 on pci0 > emu10kx0: [ITHREAD] > emu10kx1: port 0x9400-0x941f irq 18 at device > 10.0 on pci0 > emu10kx1: [ITHREAD] > emu10kx2: port 0x9c00-0x9c3f irq 19 at > device 11.0 on pci0 > emu10kx2: [ITHREAD] > emu10kx3: port 0xa400-0xa41f irq > 16 at device 12.0 on pci0 > emu10kx3: [ITHREAD] > pcm0: on emu10kx0 > pcm0: > pcm1: on emu10kx0 > pcm2: on emu10kx0 > pcm3: on emu10kx0 > pcm4: on emu10kx0 > pcm5: on emu10kx1 > pcm5: > pcm6: on emu10kx1 > pcm7: on emu10kx1 > pcm8: on emu10kx1 > pcm9: on emu10kx2 > pcm9: > pcm10: on emu10kx2 > pcm11: on emu10kx2 > pcm12: on emu10kx2 > pcm13: on emu10kx3 > pcm13: > pcm14: on emu10kx3 > > I need your feedback on: > > I) High-priority checks (that I can't do on my own equipment) > > -- digitally connected speakers, without > SND_EMU10KX_MULTICHANNEL_DISABLED and with it. > -- S/PDIF output to external receiver / amplifier > > 2) Overall driver stability. I did some crash-tests, it shouldn't crash > your machine in few seconds after load :-) > 3) Features you may need or features that are not user-friendly. > 4) any unclear documentation > > > Hope for your help, > > Yuriy > > _______________________________________________ > 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" >