Hello Dan,

I've tested the optical connection to my receiver and no sound
(exactly the same thing when optical is disabled on the windows
driver, maybe you can discover what the driver changes to allow sound
through optical out??), it appears to me as iec958 to my USB Audio
using aplay -L, with aplay -l only hw:1,0, no hw:1,1 etc etc (assuming
0,1 is onboard snd).

There is a "key" labelled PCM 2 and is checked too, dunno what means,
uncheking chenges nothing.

Front analog out works, could not play any dts/ac3 to analog outs
because was getting garbled sound, noticed that 48khz music is bad,
ressampling to 44.1khz made normal. Maybe garbled sound that comes is
a 96Khz sound, but mplayer say it's 44khz.... weird.... got no more
time or ideas to test now, maybe some ideas to try analog 5.1 out? And
the optical out?

Thanks
___________________
Fabrício Nihues



2009/5/22 Fabrício Nihues <fabricio.nih...@gmail.com>:
> Dan!
>
> You are the man! Just tested your patch here, and worked great! At
> least the analog out! Later i'll test optical out to my receiver...
> one question remains for me, if the optical out can send 5.1 dts/ac3
> passthrough... on windows I cannot send it, I get "pink noise" when
> sending, only work 2ch via optical connection but no passthrough.
>
> Did you already send a bug fix to alsa devel or something?
>
> Thanks!
> ___________________
> Fabrício Nihues
>
>
> 2009/5/22 Dan Allongo <gongo...@gmail.com>
>>
>> Hi all.
>>
>> I just got this chip off of e-bay like the rest of you and was disappointed 
>> to find that it's not working.
>> Well, it's now been a couple hours of reading the ALSA wiki and figuring out 
>> where to look in the source code, but I've finally got this chip working in 
>> .20 under Debian.
>>
>> After sniffing USB data with Wireshark on a VirtualBox instance of WinXP, I 
>> noticed that config data was being sent from the host shortly after device 
>> enumeration.
>> This makes sense since it didn't work in Windows either until I installed 
>> the driver (so much for following USB audio standards?).
>> I can only assume that the drivers contain the default settings for the 
>> device to be usable.
>> Why the registers don't look like this on reset is beyond me, but whatever.
>>
>> In usbaudio.c in the snd_usb_audio_probe function (somewhere in the vicinity 
>> of line 3500) you need to enable the "boot quirk" for this chip:
>>     /* C-Media CM6206 / CM106-Like Sound Device */
>>     if (id == USB_ID(0x0d8c, 0x0102)) {
>>         if (snd_usb_cm106_boot_quirk(dev) < 0)
>>             goto __err_val;
>>     }
>>
>>
>> Looks like the chip needs some config parameters sent to it via HID which 
>> are already there courtesy of the Turtle Beach hack.
>> The register setup is outlined in the datasheet (I found it here: 
>> http://pdf1.alldatasheet.net/datasheet-pdf/view/158787/CMEDIA/CM106-L+.html) 
>> on page 21.
>> The key is to set b15 in register 0x02 so that we can get the output.
>>
>> Hope that helps,
>> ---Dan
>>
>> ------------------------------------------------------------------------------
>> 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

Reply via email to