[alsa-devel] Possible problems with alsa soc

Nobin Mathew nobin.mathew at gmail.com
Wed Aug 8 07:42:59 CEST 2007


Hi Liam,

        Since the stream is in SNDRV_CTL_POWER_D3hot state, all
widgets are switched off. since the pop_wait is set ,
soc_pcm_prepare() will not turn on the widgets (or it will not change
the stream state to SNDRV_CTL_POWER_D0). So actual sound will not come
out.

Thanks
Nobin Mathew

On 8/7/07, Liam Girdwood <lg at opensource.wolfsonmicro.com> wrote:
> On Tue, 2007-08-07 at 14:12 +0530, Nobin Mathew wrote:
> > Any way calling close() before open() is not possible, i will restate
> > it as calling close() before prepare().
> >
> > Thanks
> > Nobin Mathew
> >
> > On 8/6/07, Nobin Mathew <nobin.mathew at gmail.com> wrote:
> > > Hi Liam,
> > >
> > > There are some players which will call snd-pcm_close() before any open
> > > call, i dont know why they are calling this. So in ASoC it will put
> > > the stream in SNDRV_CTL_POWER_D3hot and pop_wait equal to 1. This
> > > state will make problems in snd_pcm_prepare (i.e soc_pcm_prepare).
> > >
> > > Trouble creating players and libraries are mpg123 and gstreamer library.
>
> Can you give more detail about the problems. It's not obvious from your
> message. SNDRV_CTL_POWER_D3hot and pop_wait should not stop audio
> playback starting again.
>
> Thanks
>
> Liam
>
>


More information about the Alsa-devel mailing list