Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: mru@kth.se (Måns Rullgård)
To: alsa-devel@lists.sourceforge.net
Subject: Re: [2.6.3] snd_intel8x0: playing to fast
Date: Thu, 11 Mar 2004 17:17:55 +0100	[thread overview]
Message-ID: <yw1xvflbwe6k.fsf@kth.se> (raw)
In-Reply-To: 20040311152835.GA22576@dreamland.darkstar.lan

Luca <kronos@people.it> writes:

> Il Wed, Mar 10, 2004 at 11:08:22PM +0100, M?ns Rullg?rd ha scritto: 
>> *This message was transferred with a trial version of CommuniGate(tm) Pro*
>> Luca <kronos@people.it> writes:
>> 
>> > Hi,
>> > I'm using linux 2.6.3 with alsalib 1.0.2c. When using alsa output plugin
>> > of XMMS or mplayer the song is played too fast. Using OSS emulation
>> > works fine.
>> >
>> > This is from bootlog:
>> >
>> > intel8x0_measure_ac97_clock: measured 49482 usecs
>> > intel8x0: clocking to 48000
>> 
>> Make sure the programs are using device "default" or "plughw:0,0" (or
>> whatever device numbers you like).  If the programs can't be persuaded
>> to do that they are buggy.  
>
> mplayer is using hw:0,0.

Bug.

> alsa-init: requested format: 44100 Hz, 2 channels, Signed 16-bit (Little-Endian)
> alsa-init: compiled for ALSA-1.0.3
> alsa-init: soundcard set to hw:0
> alsa-init: pcm opend in block-mode
> alsa-init: chunksize set to 1024
> alsa-init: current val=16, fragcount=16
> alsa-init: got buffersize=65536
> alsa9: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
>
> It doens't like plugwh:0,0:
>
> alsa-init: requested format: 44100 Hz, 2 channels, Signed 16-bit (Little-Endian)
> alsa-init: compiled for ALSA-1.0.3
> alsa-init: soundcard set to plughw
> alsa-init: pcm opend in block-mode
> alsa-init: unable to set periodsize: Invalid argument

Bug.

> Btw, mplayer from CVS (checked out today) works nicely with -ao alsa1x:
>
> alsa-init: requested format: 44100 Hz, 2 channels, Signed 16-bit (Little-Endian)
> alsa-init: compiled for ALSA-1.0.3
> alsa-init: got device=0, subdevice=0
> alsa-init: 1 soundcard found, using: hw:0,0
> alsa-init: pcm opened in block-mode
> alsa-init: chunksize set to 1024
> alsa-init: fragcount=16
> alsa-init: got buffersize=65536
> alsa1x: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
> ...
> [resample] Changing sample rate to 48000Hz
> [resample] Changing sample rate to 48000Hz
> [resample] Using linear interpolation.
>
> So my sound card accept sound only at 48000Hz but old mplayer didn't
> notice that alsa-lib doesn't accept its request for 44100Hz. Correct?

So it seems.

-- 
Måns Rullgård
mru@kth.se



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

      reply	other threads:[~2004-03-11 16:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-10 21:21 [2.6.3] snd_intel8x0: playing to fast Luca
2004-03-10 22:08 ` Måns Rullgård
2004-03-11 15:28   ` Luca
2004-03-11 16:17     ` Måns Rullgård [this message]

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=yw1xvflbwe6k.fsf@kth.se \
    --to=mru@kth.se \
    --cc=alsa-devel@lists.sourceforge.net \
    /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