From: Pavel Machek <pavel@ucw.cz>
To: Takashi Iwai <tiwai@suse.de>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: USB-audio strange problems
Date: Fri, 21 Mar 2008 00:18:35 +0100 [thread overview]
Message-ID: <20080320231835.GE17431@elf.ucw.cz> (raw)
In-Reply-To: <s5h3aqlvdxe.wl%tiwai@suse.de>
Hi!
> > > > 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" ?
mplayer -ao alsa:device=plughw=0 -af format=u8 KDE_Startup.wav
...is silent
mplayer -ao alsa:device=hw=0 -af format=u8 KDE_Startup.wav
...I can hear it. (What's difference between hw and plughw?)
> > Also, even with that treatment, I'm unable to play stereo :-(.
>
> What shows stream* proc file while playing a 16bit stereo file?
I test by:
mplayer -ao alsa:device=hw=0 -af format=s16le -af resample=48000 KDE_Logout_1.ogg
hobit:/proc/asound# grep . */stream*
U0x4fa0x4201/stream0:USB Device 0x4fa:0x4201 at usb-0000:00:1a.0-1,
full speed : USB Audio
U0x4fa0x4201/stream0:Playback:
U0x4fa0x4201/stream0: Status: Running
U0x4fa0x4201/stream0: Interface = 1
U0x4fa0x4201/stream0: Altset = 5
U0x4fa0x4201/stream0: URBs = 3 [ 8 8 6 ]
U0x4fa0x4201/stream0: Packet Size = 196
U0x4fa0x4201/stream0: Momentary freq = 48000 Hz (0x30.0000)
U0x4fa0x4201/stream0: Interface 1
U0x4fa0x4201/stream0: Altset 1
U0x4fa0x4201/stream0: Format: 0x2
U0x4fa0x4201/stream0: Channels: 2
U0x4fa0x4201/stream0: Endpoint: 1 OUT (ASYNC)
U0x4fa0x4201/stream0: Rates: 44100, 48000
U0x4fa0x4201/stream0: Interface 1
U0x4fa0x4201/stream0: Altset 2
U0x4fa0x4201/stream0: Format: 0x2
U0x4fa0x4201/stream0: Channels: 1
U0x4fa0x4201/stream0: Endpoint: 1 OUT (ASYNC)
U0x4fa0x4201/stream0: Rates: 44100, 48000
U0x4fa0x4201/stream0: Interface 1
U0x4fa0x4201/stream0: Altset 3
U0x4fa0x4201/stream0: Format: 0x0
U0x4fa0x4201/stream0: Channels: 2
U0x4fa0x4201/stream0: Endpoint: 1 OUT (ASYNC)
U0x4fa0x4201/stream0: Rates: 44100, 48000
U0x4fa0x4201/stream0: Interface 1
U0x4fa0x4201/stream0: Altset 4
U0x4fa0x4201/stream0: Format: 0x0
U0x4fa0x4201/stream0: Channels: 1
U0x4fa0x4201/stream0: Endpoint: 1 OUT (ASYNC)
U0x4fa0x4201/stream0: Rates: 44100, 48000
U0x4fa0x4201/stream0: Interface 1
U0x4fa0x4201/stream0: Altset 5
U0x4fa0x4201/stream0: Format: 0x2
U0x4fa0x4201/stream0: Channels: 2
U0x4fa0x4201/stream0: Endpoint: 1 OUT (ADAPTIVE)
U0x4fa0x4201/stream0: Rates: 44100, 48000
card0/stream0:USB Device 0x4fa:0x4201 at usb-0000:00:1a.0-1, full
speed : USB Audio
card0/stream0:Playback:
card0/stream0: Status: Running
card0/stream0: Interface = 1
card0/stream0: Altset = 5
card0/stream0: URBs = 3 [ 8 8 6 ]
card0/stream0: Packet Size = 196
card0/stream0: Momentary freq = 48000 Hz (0x30.0000)
card0/stream0: Interface 1
card0/stream0: Altset 1
card0/stream0: Format: 0x2
card0/stream0: Channels: 2
card0/stream0: Endpoint: 1 OUT (ASYNC)
card0/stream0: Rates: 44100, 48000
card0/stream0: Interface 1
card0/stream0: Altset 2
card0/stream0: Format: 0x2
card0/stream0: Channels: 1
card0/stream0: Endpoint: 1 OUT (ASYNC)
card0/stream0: Rates: 44100, 48000
card0/stream0: Interface 1
card0/stream0: Altset 3
card0/stream0: Format: 0x0
card0/stream0: Channels: 2
card0/stream0: Endpoint: 1 OUT (ASYNC)
card0/stream0: Rates: 44100, 48000
card0/stream0: Interface 1
card0/stream0: Altset 4
card0/stream0: Format: 0x0
card0/stream0: Channels: 1
card0/stream0: Endpoint: 1 OUT (ASYNC)
card0/stream0: Rates: 44100, 48000
card0/stream0: Interface 1
card0/stream0: Altset 5
card0/stream0: Format: 0x2
card0/stream0: Channels: 2
card0/stream0: Endpoint: 1 OUT (ADAPTIVE)
card0/stream0: Rates: 44100, 48000
hobit:/proc/asound#
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
pomozte zachranit klanovicky les: http://www.ujezdskystrom.info/
next prev parent reply other threads:[~2008-03-20 23:18 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 ` USB-audio strange problems Pavel Machek
2008-03-20 11:03 ` Takashi Iwai
2008-03-20 11:16 ` Pavel Machek
2008-03-20 11:21 ` Takashi Iwai
2008-03-20 23:18 ` Pavel Machek [this message]
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=20080320231835.GE17431@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=tiwai@suse.de \
/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