From: Takashi Iwai Subject: Re: Tips on debugging ALSA driver snd_es18xx Date: Thu, 22 Dec 2005 16:51:20 +0100 Message-ID: References: <20051215013411.GK7983@cortazar> <1134635237.43a128e5e75fa@webmail.uni-halle.de> <20051215111213.GA3636@cortazar> <1134660339.43a18af3d7aa4@webmail.uni-halle.de> <20051215165203.GC5793@cortazar> <20051215194229.GE5793@cortazar> <20051216142845.GR5015@cortazar> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20051216142845.GR5015@cortazar> 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: Paulo Marcel Coelho Aragao Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 16 Dec 2005 12:28:45 -0200, Paulo Marcel Coelho Aragao wrote: > > Paulo Marcel Coelho Aragao wrote on Dec, 15: > > [...] > > > > > If this is indeed a bug in the driver, should I file a bug in ALSA BTS ? > > > > > As you like. We can continue the debug session on alsa-devel ML, too. > > > > As long as we get to the bottom of this and squash this bug, the context > > doesn't matter to me. So, grasshopper Paulo asks Masters Takashi and > > Clemens: what's the next step ? I guess the goal is making 16-bit work, > > right ? > > Is there anything I can do to help debug this further and squash the bug ? We need to trace the flow of the code. The first thing is to know which DAC is used in your case. es18xx driver has two DACs for playback, depending on the model. Since it provides no proc interface for register dumps, you'll need to add printk's in some places to get register setting, etc. The points to check are first snd_es18xx_playback_open(). Check which condition is satisfied in that callback via printk. Then follow snd_es18xx_playback_hw_params() and snd_es18xx_playback_prepare() callbacks. The prepare callback is the most important set-up part. The trigger callback is then used for starting/stopping the stream. The datasheet for ES18xx is available on alsa's ftp site. Compare the values the driver sets with the datasheet. Takashi ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click