mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Pavel Machek <pavel@ucw.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: USB-audio strange problems
Date: Thu, 20 Mar 2008 12:21:33 +0100	[thread overview]
Message-ID: <s5h3aqlvdxe.wl%tiwai@suse.de> (raw)
In-Reply-To: <20080320111637.GB24304@atrey.karlin.mff.cuni.cz>

At Thu, 20 Mar 2008 12:16:37 +0100,
Pavel Machek wrote:
> 
> > 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...
> 
> Yes, sorry about that.
> 
> > > > 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.)
> 
> But problem is: I have to. Otherwise the second mplayer will produce
> just silence.

How about "-ao alsa:device=plughw=0 -af format=u8" ?

> Also, even with that treatment, I'm unable to play stereo :-(.

What shows stream* proc file while playing a 16bit stereo file?


Takashi

  reply	other threads:[~2008-03-20 11:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070203131014.GA4231@elf.ucw.cz>
     [not found] ` <s5htzy0y2rx.wl%tiwai@suse.de>
2008-03-19 21:12   ` Pavel Machek
2008-03-20 11:03     ` Takashi Iwai
2008-03-20 11:16       ` Pavel Machek
2008-03-20 11:21         ` Takashi Iwai [this message]
2008-03-20 23:18           ` Pavel Machek
2008-03-29 16:31             ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h3aqlvdxe.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®