[alsa-devel] Assert in pcm_params.c
Takashi Iwai
tiwai at suse.de
Thu May 21 20:12:45 CEST 2015
At Thu, 21 May 2015 19:10:30 +0100,
Alan Horstmann wrote:
>
> On Thursday 21 May 2015 18:26, Takashi Iwai wrote:
> > At Thu, 21 May 2015 16:56:04 +0100,
> >
> > Alan Horstmann wrote:
> > > On Wednesday 20 May 2015 07:36, Takashi Iwai wrote:
>
> <snip>
>
> > > > In anyway, the fix would be simple, the patch like below. Could you
> > > > check whether it actually fixes your issue?
> > >
> > > I've had a positive confirmation that the patch removing the asserts does
> > > fix the 'crash' in the reporter's system. So instead it is simply a
> > > failure of the snd_pcm_hw_params() call, which ultimately can be handled
> > > in the users code.
> >
> > OK, I pushed the fix to git repo now.
>
> Is this something that should go to stable so it is more likely to be
> backported to slower moving distros, eg Debian Jessie, or is that not how it
> works?
It'll be included in the next alsa-lib release.
> > > I do wonder (as does Raymond) why this fails. Is 6-chans expected to
> > > fail on 'front'? In particular the earlier setting of
> > > channels/rate/format does not fail? Perhaps I will ask for RULES_DEBUG
> > > enabled?
> >
> > Likely the alignment issue: 6 channels can't fit always with 128 byte
> > constraint that are required by some hardware chips.
>
> Hmm, it is only an issue with the pcms like front, surround though, not hw?
hw might have the same alignment problem, but it hasn't hit assert().
The faulty assert() was only in the code path for plugins.
Takashi
More information about the Alsa-devel
mailing list