Okay, well, if SPDIF out didn't work with the settings I sent out, then I really don't know what else to do for it since I'm only stabbing in the dark here. Besides, everything I'm reading seems to imply that the optical out is only 2-channel stereo anyway on most of these "budget" chips and they only do surround sound in analog.
Surround 5.1 does indeed swap cen/lfe with rear outputs, but switching to surround 4.0 properly down-mixes to rear channels (and being that I only have a 4.0 system at home, this works for me). Before I submit a patch for this, I'll need someone with a CM106 TurtleBeach device to check that everything still works okay. I'm setting the registers to default for a 7.1 card using the 48-pin chip as per the datasheet with the only deviation of turning on the Line Out driver as well (which was already there in the existing "quirk" for the CM106). Once I get some feedback from CM106 users, I'll submit the patch. --- usbaudio.c 2009-05-06 03:06:04.000000000 -0400 +++ usbaudio.c 2009-05-24 11:07:44.000000000 -0400 @@ -3273,10 +3273,17 @@ static int snd_usb_cm106_boot_quirk(struct usb_device *dev) { /* + * Set registers to defaults: + * Clear SPDIF-out parameters + * Enable DACx2, PLL binary, Soft Mute, and SPDIF-out * Enable line-out driver mode, set headphone source to front * channels, enable stereo mic. + * Enable all channels and select 48-pin chipset */ - return snd_usb_cm106_write_int_reg(dev, 2, 0x8004); + return snd_usb_cm106_write_int_reg(dev, 0, 0x0000) + + snd_usb_cm106_write_int_reg(dev, 1, 0xb000) + + snd_usb_cm106_write_int_reg(dev, 2, 0x8004) + + snd_usb_cm106_write_int_reg(dev, 3, 0x007f); } @@ -3560,7 +3567,8 @@ } /* C-Media CM106 / Turtle Beach Audio Advantage Roadie */ - if (id == USB_ID(0x10f5, 0x0200)) { + /* C-Media CM6206 / CM106-Like Sound Device */ + if (id == USB_ID(0x10f5, 0x0200) || id == USB_ID(0x0d8c, 0x0102)) { if (snd_usb_cm106_boot_quirk(dev) < 0) goto __err_val; } On Sat, May 23, 2009 at 10:52 AM, Paolo Saggese <pmsa4-a...@yahoo.it> wrote: > On Saturday 23 May 2009, Fabrício Nihues wrote: > > > The light of optical is on now... but don't send sound again... I'm > > sending to iec958:CARD=default,DEV=0 or spdif:CARD=default,DEV=0, on > > both I don't hear sound. And, if I change the receiver to my analog > > try plughw:0,1 as the spdif out device. > > Also experiment with settings on alsamixer. > > Ciao, > Paolo. > > -- > Skype: Paolo.Saggese > http://borex.lngs.infn.it/saggese > You can still escape from the GATES of hell: Use Linux! > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. > Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Alsa-user mailing list > Alsa-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/alsa-user >
------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user