From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754638AbYCTLD5 (ORCPT ); Thu, 20 Mar 2008 07:03:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752007AbYCTLDs (ORCPT ); Thu, 20 Mar 2008 07:03:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:48622 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbYCTLDr (ORCPT ); Thu, 20 Mar 2008 07:03:47 -0400 Date: Thu, 20 Mar 2008 12:03:41 +0100 Message-ID: From: Takashi Iwai To: Pavel Machek Cc: kernel list Subject: Re: USB-audio strange problems In-Reply-To: <20080319211247.GA2659@elf.ucw.cz> References: <20070203131014.GA4231@elf.ucw.cz> <20080319211247.GA2659@elf.ucw.cz> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta28) (fuki) (+CVS-20070806) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Wed, 19 Mar 2008 22:12:47 +0100, Pavel Machek wrote: > > Hi! > > Ok, so it took me a year to get back to this bug. Oops. Oh well, I don't remember what was the exactly problem... > > Yep, let's fix it. Just to make sure (ane debugging easy atm), could > > you attach the following? > > > > - content of /proc/asound/cards > > - content of /proc/asound/card*/stream* > > - the output of "lsusb -v" > > - the generated file via "alsactl -f store somefile" > > > > If I remember correctly, alsamixer at least doesn't break if you build > > snd-usb-audio driver with IGNORE_CTL_ERR enabled, right? > > I got the usb soundcard to work. I still have IGNORE_CTL_ERR enabled. > > Problem was not mixer after all... somehow it expects me to play sound > as 8-bit, and then I can play 16-bit mono and actually hear > it. _Strange_. > > So: > > mplayer -ao alsa:device=hw=0 -af format=u8 KDE_Startup.wav > mplayer -ao alsa:device=hw=0 -af format=s16le -af resample=48000 -af channels=1 KDE_Logout_1.ogg > > ...plays both files. > > Forget about the first mplayer, and it will play nothing. Dalls DS4201 has a known bug that it doesn't handle U8 format but only S8 format. The driver changes the supported format flags from U8 to S8 when this USB ID is detected. So you cannot play U8 format natively. (Still strange that it is accepted by mplayer.) Takashi