Re: [GIT PULL] sound updates #2 for 2.6.40

From: Linus Torvalds
Date: Fri May 27 2011 - 22:45:54 EST


On Fri, May 27, 2011 at 7:41 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Looking at that diff, I found at least one bug:
>
> -       if (chip->driver_type != AZX_DRIVER_ATI &&
> -           chip->driver_type != AZX_DRIVER_ATIHDMI)
> +       if (chip->driver_caps & AZX_DCAPS_NO_TCSEL) {
>
> That's wrong. It should be
>
>        if (!(chip->driver_caps & AZX_DCAPS_NO_TCSEL)) {
>
> but I haven't checked if that fixes it for me yet.

Yup, that's it. Apparently if you don't clear the TCSEL bit, you get
random static and repeated stuff.

And the reason the conversion was wrong is that the bit is not a
"feature" bit, it's a "lack of feature" bit, but the conversion missed
the negation.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/