Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sedji Gaouaou <sedji.gaouaou@atmel.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Clemens Ladisch <clemens@ladisch.de>
Subject: Re: Problem with mplayer and OSS on at91sam9g20(kernel 2.6.30)
Date: Mon, 28 Sep 2009 09:56:31 +0200	[thread overview]
Message-ID: <4AC06C2F.6070409@atmel.com> (raw)
In-Reply-To: <A6B4CA7C-DA92-47A7-B5C0-2668E8CA7FF2@opensource.wolfsonmicro.com>

Hi,
 >> > > Mark Brown wrote:
 >>> > >> I'd expect it's getting upset because it's being called with an
 >>> > >> invalid rate (OSS emulation calls hw_params with partially
 >>> > >> initialised
 >>> > >> parameters)
 >> > >
 >> > > But even the uninitialized parameters conform to the constraints 
that
 >> > > were set by the driver, so they should never be invalid.
 > >
 > > ASoC drivers, particularly ones doing manual clocking like this one,
 > > don't always express their full constraints to the application (in
 > > some cases it'd be far too hard).
 > >
 >> > > Sedji, try running mplayer with -v, this should give more log 
messages
 >> > > with the parameters that mplayer is trying to set.

Here is the mplayer -v output:

[..]
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
dec_audio: Allocating 4096 bytes for input buffer.
dec_audio: Allocating 9216 + 65536 = 74752 bytes for output buffer.
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
ao2: 44100 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
[AO OSS] audio_setup: driver doesn't support SNDCTL_DSP_GETOSPACE  :-(
audio_setup: 512 bytes/frag (config.h)
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Video: no video
Freeing 0 unused video chunks.
Starting playback...
A:  -1.5 (unknown) of 1506.0 (25:06.0) ??,?%

[.. no sound and many "asoc: machine hw_params failed" on the console ..]

MPlayer interrupted by signal 2 in module: play_audio
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: libmad


Thanks for your help,

Best regards,
Sedji

      reply	other threads:[~2009-09-28  7:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-24 12:36 Problem with mplayer and OSS on at91sam9g20(kernel 2.6.30) Sedji Gaouaou
2009-09-24 14:57 ` Mark Brown
2009-09-25  7:03   ` Clemens Ladisch
2009-09-25 14:28     ` Mark Brown
2009-09-28  7:56       ` Sedji Gaouaou [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=4AC06C2F.6070409@atmel.com \
    --to=sedji.gaouaou@atmel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=clemens@ladisch.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