From: <th...@kl...> - 2002-11-13 00:07:46
|
Ooops, forgot to mention some important details: xine_lib version : 0.9.13 cmpci revision: 5.64 kernel version : 2.4.19 Hope this covers all ;-) T > Hi all, > > After having played with my cmedia 6 channel card with a 5.1 creative > box-set I detected that xine could not detect the capabilities of the > soundcard. Other programs like Mplayer and a52dec had no problems at > all. So this I could not handle, as Xine is my most favourit player > under linux, so I started to try to find the reason, and I found it ;-) > The current cmpci oss driver only supports more than one speaker if it > is setup into 16 bit output mode. In the xine detection routine of the > audio_oss driver xine tries to detect whether or not the sound card is > able to do 8 bit output, and it does. But as this detection results in > the cmpci driver to setting the sound card into 8-bit mode, it refuses > in this mode to say that it is capable of doing more than stereo output > (this is probably correct, I did not check the datasheets of the chip > on it). Due to this fact xine cannot detect that the cmedia card is > capable of doing 4 , 5 or even 5.1 channels. The sollution to this is > quite simple, after detecting the 8-bit mode, just put the card back > into the 16-bit mode, and start detecting the output capabilities of > the card. > Now my favorit player is able to output real 5.1 to my nice speakers > ;-)))) Attached I have the diff between the old and the new audio_oss.c > file. Have fun playing with your cmedia card in real 5.1 sound under > xine (I have tested several DVD's and it works perfectly all the time) > > Rgds, > Theo > > P.s. Keep up the good work |