2.4.21: cmedia PCM not working

From: Ton Hospel (linux-kernel@ton.iguana.be)
Date: Sat Jun 14 2003 - 07:25:43 EST


I just compiled and tried kernel 2.4.21. All seems fine except that I
have no sound over /dev/dsp (other sources like e.g. "line" work fine).

My soundchip is a SiS 7012, which seems to have a cmedia CMI65.

Having a look at the changes, I see this new line in ac97_codec.c:

        {0x434D4941, "CMedia", &cmedia_ops, AC97_NO_PCM_VOLUME },

Commenting out only the AC97_NO_PCM_VOLUME field (and leaving the rest of
the line) makes my audio work again.
While indeed the volume slider never allowed me to linearly control
the volume, it DOES have an effect:
   - at level 0 there is no sound
   - at any oher level, there is pcm sound. The volume is in no way
     influenced by the value, as long as it's not zero

So I suspect that while indeed you don't want a pcm volume level for
a CMI65, just adding that line also gets rid of some needed

#define struct union /* Great space saver */
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:39 EST