From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] emu10k1: add per-voice PTR register dump to /proc entry Date: Thu, 18 Nov 2004 14:21:55 +0100 Message-ID: References: <1100394086.2458.18.camel@krustophenia.net> <1100713890.6930.26.camel@krustophenia.net> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1100713890.6930.26.camel@krustophenia.net> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Lee Revell Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At Wed, 17 Nov 2004 12:51:29 -0500, Lee Revell wrote: > > On Wed, 2004-11-17 at 13:11 +0100, Takashi Iwai wrote: > > At Sat, 13 Nov 2004 20:01:26 -0500, > > Lee Revell wrote: > > > > > > Summary: This patch adds a register dump for each voice to the /proc > > > entry. This functionality will be key for improving the voice allocator > > > for multichannel support. Currently these all go in the main file; I > > > can split these into a file per voice if desired. > > > > I feel it'd be better to create another proc file. Not necessarily > > per voice, though. The dump seems not matching with the current > > emu10k1 proc file contents. > > > > Hey, it looks like if I write routines to dump all registers, then > suspend/resume is halfway finished, right? > > https://bugtrack.alsa-project.org/alsa-bug/view.php?id=227 Well, yes, halfway :) We should call snd_pcm_suspend_all() to suspend the PCM streams, then save the necessary registers, and stop the hardware. In the resume, start the hardware, restore the registers, resume the mixer (e.g. call snd_ac97_resume()). Takashi ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8