alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Raymond Yau <superquad.vortex2@gmail.com>
To: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: issue with TWL4030
Date: Tue, 6 Jul 2010 07:24:50 +0800	[thread overview]
Message-ID: <AANLkTim5rQNaVHLlEjXK3hY2ykOU_TxM89WJd1g96LCh@mail.gmail.com> (raw)
In-Reply-To: <C358A26273CF2948B8BCDBA661A581782A6FBF945F@NOK-EUMSG-03.mgdnok.nokia.com>

2010/7/6 <peter.ujfalusi@nokia.com>

> Hi,
>
> ________________________________________
> From: ext Grazvydas Ignotas [notasas@gmail.com]
> Sent: Saturday, July 03, 2010 5:32 PM
> To: Mark Brown
> Cc: Ujfalusi Peter (Nokia-MS/Tampere); alsa-devel
> Subject: Re: [alsa-devel] issue with TWL4030
>
> > On Sat, Jul 3, 2010 at 3:06 AM, Mark Brown
> > <broonie@opensource.wolfsonmicro.com> wrote:
> > > On Sat, Jul 03, 2010 at 01:50:50AM +0300, Grazvydas Ignotas wrote:
> > >
> >> there seems to be a problem with TWL4030 hw_param programming, which
> >> is easy to reproduce over OSS emulation with this simple program:
> > >
> > > OSS emulation is strongly disrecommended due to the fact that it
> > > repeatedly reprograms things using partially valid configurations.
>  Some
> > > drivers will refuse to run with it.
> >
> > Well it used to work fine on OMAP+TWL until one of Peter's rework
> > patches, I guess 6b87a91f (haven't really bisected), hope we can find
> > some solution. We have some closed OSS programs that we can't drop,
> > unfortunately. I know userspace OSS emulation solutions exist, but it
> > wouldn't hurt to have more options.
>
> Hmm.. The twl4030->configured meant to protect the reconfiguration of the
> codec when the second stream tries to start with different properties than
> the already running first (master) stream (and it has been introduced quite
> some time ago).
> The rest of the hassle around the hw param and parameter locking was to
> fix gstreamer's way of starting full duplex operation.
>
> While I agree with Mark, that OSS emulation should be phased out now (it's
> 2010)..
> However, extending the state handling might fix your problem, but it
> complicates
> things greatly, which can lead to more problems...
> What I can think of is:
> If only one (the master) stream has been opened, and the stream is not
> running (the
> pcm_trigger has not been called yet), than we could allow reconfiguration
> of the codec.
> Might work OK, but it might cause some problems under different scenario.
>
>
The OSS emulation call driver's hw_params many time when the OSS program or
SDL try to probe the supported rate , format and channels

Not easy for the driver to 100% compatible with OSS 3.8 since the default is
mono ,U8 and 8000Hz when you use  "cat  foo.wav > /dev/dsp" or "cat /dev/dsp
> foo.wav"

  parent reply	other threads:[~2010-07-05 23:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-02 22:50 issue with TWL4030 Grazvydas Ignotas
2010-07-03  0:06 ` Mark Brown
2010-07-03 14:32   ` Grazvydas Ignotas
2010-07-04  1:28     ` Mark Brown
2010-07-05 21:13     ` peter.ujfalusi
2010-07-05 21:40       ` Liam Girdwood
2010-07-05 22:51         ` Grazvydas Ignotas
2010-07-12 10:12           ` Peter Ujfalusi
2010-07-12 20:26             ` Grazvydas Ignotas
2010-07-13  7:59               ` Peter Ujfalusi
2010-07-05 23:24       ` Raymond Yau [this message]
2010-07-13  8:03         ` Peter Ujfalusi

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=AANLkTim5rQNaVHLlEjXK3hY2ykOU_TxM89WJd1g96LCh@mail.gmail.com \
    --to=superquad.vortex2@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /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;
as well as URLs for NNTP newsgroup(s).