[alsa-devel] ASoC: rsnd: fix sound route path when using SRC6/SRC9

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Wed May 17 09:46:40 CEST 2017


Hi Geert

> >> I guess the main question is: can src be NULL here?
> >> If yes, rsnd_mod_id(src) will be -1.
> >
> > No. cmd itself will not be used if src was NULL on this HW.
> 
> But gcc cannot know that, as the function is called through a function
> pointer from another source file.

Yes, I agree

> > But, yes, it seems gcc is checking -1 value here.
> > It is OK, but why it warns only here ??
> 
> Yes, I'm also wondering why we see the warning only here.
> I guess we should be lucky that we get it at least in one place ;-)

I think it is gcc's something, and latest (?) gcc doesn't have such behavior.
Anyway, I posted fixup patch to ML and you

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list