From: Takashi Iwai Subject: Re: Tips on debugging ALSA driver snd_es18xx Date: Thu, 15 Dec 2005 18:41:49 +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> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20051215165203.GC5793@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 Thu, 15 Dec 2005 14:52:03 -0200, Paulo Marcel Coelho Aragao wrote: > > Clemens Ladisch wrote on Dec, 15: > > > This was curious: the wav files I tried with aplay ended too quickly, so I > > > looked for longer ones. My surprise: no sound from the longer ones. It gave > > > me the impression to be related to the sound source being coded for 16 or > > > 8-bits, if I'm not speaking just plain nonsense. > > > > Please add this to your ~/.asoundrc: > > > > pcm.u8 { > > type plug > > slave.pcm { > > type linear > > slave { > > pcm "hw:0" > > format U8 > > } > > } > > } > > May I ask you what this snippet does ? This configuration forces to use 8bit-unsigned format. If any other formats are given, it's converted to u8 automatically. > > > and try to play some 16-bit file to the ALSA device named "u8" instead of the > > default one. If this works, there is a bug in the driver in relation with > > 16-bit data. > > Fantastic, Clemens ! You hit the bull's eye. Now the scenario is: > > 1) aplay -Du8 produces sound from 8 or 16-bit data (the same I used before) on > both speakers I guess you're using a mono wav file? > 2) xmms and gxine produce sound only on the left speaker. I've attached a file > with the few config parameters which are explicitly set for gxine (the rest > is commented out, therefore, default). xmms saves every single parameter, > so I'm just sending the ALSA stanza. My eye didn't catch anything that > might be related to usage of left/right speakers. Just in case, I'm also > attaching my mixer settings. This implies that u8-stereo doesn't work. > 3) speaker-test -Du8 produces what I suppose is pink noise on both speakers, > but I noticed that its output included only "0 - Front Left" It means u8-mono works as expected, at least. > I guess we're almost there. I thought I'd be doing the hard work, but you've > been doing everything. I'm really happy and thankful for having posted the > problem here. Now I've got to capitalize on this and learn more. > > Would you have any suggestions regarding (2) ? > > 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. 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