Re: [Alsa-user] USB soundcard advice

2009-11-03 Thread Fabrício Nihues
I got 2 usb sound cards, one is a 5.1 and work with the new .31 kernel out
of the box (even 5.1 spdif trought the optical out), it's a generic chineese
sound card with CMI chipset, I bougth for my Home Theater.
Search for USB external 5.1 sound card on ebay, it's a blue or orange little
case.
like this
http://cgi.ebay.com/USB-6-Channel-5-1-External-Sound-Audio-Card-PC-Laptop_W0QQitemZ300361484591QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item45eef0892f#ht_3251wt_968


And I purchased an UCA-202 (the best snd card for this price) for my 2
speaker stereo, it's flawless and sound is much better than any pci snd card
or onboard i've listened.

The only problem with linux is 96khz / 24bit support, but if you stay with
16bit/44khz I don't think you will be in trouble.


___
Fabrício Nihues


2009/11/3 Felix Pfeifer pfeifer.fe...@googlemail.com

 Hi,

  USB Audio is a standard.
 Sadly this is only true for usb 1.x. Most usb 2.0 audiocards don't
 work under linux.
 I am not sure if there is even 1 ^^ (Edirol ua101's playback is glitchy)

 Felix


 2009/11/3 James Shatto shado...@earthlink.net:
  On Mon, 2 Nov 2009 20:42:48 +0100
  Y.A. Bolawy bol...@gmail.com wrote:
 
  Hi all,
 
  I'd like some advice on a USB soundcard. The reason for getting one is
  that I'd like to have good quality sound on all the computers I use or
  will use. The quality should be good enough to allow speech
  recognition. Of course, that is possible to some extend with any
  soundcard, but if the quality is low it has a big impact.
 
  Unfortunately, the better the quality of the cards, the less standard
  compliance they seem to be. At least that seems to be the underlying
  message of everything I've read so far.
 
  USB Audio is a standard.  As long as the box says class compliant, it
 should work out of the box in linux.  Only one caveat though as it wont
 default to card 0 and be your default card.  Since you probably have a
 motherboard with onboard sound.  Configure accordingly.  I have a USB
 M-Audio Mobile Pre and it works fine.  Although web browsers don't seem to
 use it properly even though I have it configured to card 0.  I've never had
 a problem recording from it though.  Not really the best audio option, but
 loads better than most stock soundcards.
 
  HTH,
  James
 
 
 --
  Come build with us! The BlackBerry(R) Developer Conference in SF, CA
  is the only developer event you need to attend this year. Jumpstart your
  developing skills, take BlackBerry mobile applications to market and stay
  ahead of the curve. Join us from November 9 - 12, 2009. Register now!
  http://p.sf.net/sfu/devconference
  ___
  Alsa-user mailing list
  Alsa-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/alsa-user
 


 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Alsa-user mailing list
 Alsa-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/alsa-user

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-08-31 Thread Fabrício Nihues
Forget it
found in the changelog...

ALSA: usb - Add boot quirk for C-Media 6206 USB Audi
___
Fabrício Nihues


2009/8/31 Fabrício Nihues fabricio.nih...@gmail.com

 Hello Dan!
 Is your patch is in the .21 driver released today?

 Thanks
 ___
 Fabrício Nihues


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-08-31 Thread Fabrício Nihues
Hello Dan!
Is your patch is in the .21 driver released today?

Thanks
___
Fabrício Nihues
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-06-08 Thread Fabrício Nihues
Thanks!! =D
___
Fabrício Nihues



2009/6/8 Dan Allongo gongo...@gmail.com:
 Just FYI, I've submitted the patch and Takashi says it'll make it in with
 the next merge.
 Thanks for all the help.
 ---Dan


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-05-26 Thread Fabrício Nihues
It's strange too I don't know what is causing, but I changed in
asound.conf the buffer size and period and everytime the dropouts was
different, sometimes more, sometimes less, but impossible to watch
because it was 1-2 drops every second.

Changed asound.conf to ressample everything to 44100 too (dunno if
changes anything to passtrough), but if I send a 48000 sample without
ressampling I get a weird sound like a train passing (very loud and
like static).

In windows seems like everything goes to 48khz via spdif... but with
alsa I need to force it to 44.1khz. You get normal sound coming from a
48khz sample with analog out?

I'll try to update my alsa to lastest, to see if changes anything, I'm
using the jaunty 1.18 and updated only the drivers to 1.19.

___
Fabrício Nihues



2009/5/26 Dan Allongo gongo...@gmail.com:
 It's great to hear that it's actually working now, I'll split off the boot
 quirk function to avoid interference with the Turtle Beach device.
 I don't know how I'm going to troubleshoot the current issues with SPDIF out
 though.
 I didn't see any option in the Windows driver for changing the bitrate, I
 could only select 48k and no options for buffering or anything like that.
 I notice that the device identifies itself as USB 1.1, but if Windows
 doesn't experience this issue then maybe it's not a bandwidth problem.
 When the device is first initialized in Windows, it sets register 0 to
 0x2004, then later to 0x200c. I have no idea what that means or what it
 could possibly be doing.


 On Mon, May 25, 2009 at 2:25 PM, Fabrício Nihues fabricio.nih...@gmail.com
 wrote:

 Another issue, every second there is a pause of some miliseconds in
 sound... maybe is buffer problem?
 ___
 Fabrício Nihues



 2009/5/25 Fabrício Nihues fabricio.nih...@gmail.com:
  Good news!!!
 
  aplay -D iec958 SURROUNDTEST_DD_640.wav is playing Doubly Digital to
  my receiver and is working!
 
  The file is a 16bit / 44100Khz audio test, the Dolby Digital and all
  speakers works!
 
  Mplayer plays fine too, the problem is when I try to play a movie, the
  ac3 is 48000Khz, and maybe is not 16bit? How I can see or change to
  16bit/44100?
 
  Still got problems with any gstreamer sound. I'll try to play with
  asound.conf...
 
  Got the sample from
  http://www.sr.se/cgi-bin/mall/index.asp?programID=2445
  ___
  Fabrício Nihues
 
 
 
  2009/5/25 Fabrício Nihues fabricio.nih...@gmail.com:
  Hello Dan!
 
  Now it's working! Sound is comming to my receiver via optical!! I've
  tested only 5min now, just got some problems I'm trying to solve.
 
  1) Any gstreamer application send sound with wrong sampling rate (Same
  as audacious ressampling to 48khz, but gstremer seems to ressample to
  48khz even 44.1khz music, tested with Totem), so i'm looking a way to
  send only 44.1khz.
 
  2) Audacious is perfect.
 
  3) Couldn't send Mplayer ac3 passtrough, I'm trying to send via Totem
  (or other command to mplayer), working on it
 
  Update: Just got sound via mplayer, but the passtrough is the same
  garbled sound as in windows with 32/24bit enabled).  Anyone know how
  to send only 16bit stream passtrough via mplayer/alsa? Or any idea how
  to solve? Must there be a way... we are so close to make this thing
  100% working, it will be the best low price external sound card with
  spdif for linux!
 
  ___
  Fabrício Nihues
 
 
 
  2009/5/25 Dan Allongo gongo...@gmail.com:
  I did some more USB packet sniffing and discovered that the drivers
  are
  setting 2 extra undocumented registers and some unknown bits in the
  existing
  registers.
  Try this out and let me know how it goes.
  I'm trying not to post all of this code to the list immediately in
  order to
  avoid confusion.
  If this works out, then I'll have to split off the boot quirk for this
  into
  a separate function due to the extra registers that CM6206 has.
  All I can say is that after these changes the analog channels still
  function.
  Honestly, I don't know that I can do too much more on this because I'm
  working on the assumption that the driver detects and properly handles
  the
  SPDIF device on this chip, which after looking at the code a little
  more,
  I'm not sure that it actually does...
  My coding skills are not strong enough to write that sort of code,
  especially since I don't actually have any background in audio
  sub-systems.
  I guess I just got lucky on this one with the registers being easy
  enough to
  identify.
 
  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, 0, 0x200c

Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-05-26 Thread Fabrício Nihues
Looking around I've found more people with the same problem of the
sound stopping/playing (the receiver change from DTS or DD to stereo
or other decode automatically). The problem can be corrected forcing
DTS/DD decode to the receiver instead of auto, I'll try this at home
when get there.
___
Fabrício Nihues

--
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 as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-05-26 Thread Fabrício Nihues
Dan, everything works, I think was the test sample (a .wav Dolby
Digital sample) that  I was using or my asound.conf

my asound.conf is this now

pcm.!default {
type plug
slave {
pcm spdif
format S16_LE
}
}

I'm listening a movie with ac3 sound now and is it perfect 5.1!

Thank you!
___
Fabrício Nihues

2009/5/26 Fabrício Nihues fabricio.nih...@gmail.com:
 Looking around I've found more people with the same problem of the
 sound stopping/playing (the receiver change from DTS or DD to stereo
 or other decode automatically). The problem can be corrected forcing
 DTS/DD decode to the receiver instead of auto, I'll try this at home
 when get there.
 ___
 Fabrício Nihues


--
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 as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-05-25 Thread Fabrício Nihues
Hello Dan!

Now it's working! Sound is comming to my receiver via optical!! I've
tested only 5min now, just got some problems I'm trying to solve.

1) Any gstreamer application send sound with wrong sampling rate (Same
as audacious ressampling to 48khz, but gstremer seems to ressample to
48khz even 44.1khz music, tested with Totem), so i'm looking a way to
send only 44.1khz.

2) Audacious is perfect.

3) Couldn't send Mplayer ac3 passtrough, I'm trying to send via Totem
(or other command to mplayer), working on it

Update: Just got sound via mplayer, but the passtrough is the same
garbled sound as in windows with 32/24bit enabled).  Anyone know how
to send only 16bit stream passtrough via mplayer/alsa? Or any idea how
to solve? Must there be a way... we are so close to make this thing
100% working, it will be the best low price external sound card with
spdif for linux!

___
Fabrício Nihues



2009/5/25 Dan Allongo gongo...@gmail.com:
 I did some more USB packet sniffing and discovered that the drivers are
 setting 2 extra undocumented registers and some unknown bits in the existing
 registers.
 Try this out and let me know how it goes.
 I'm trying not to post all of this code to the list immediately in order to
 avoid confusion.
 If this works out, then I'll have to split off the boot quirk for this into
 a separate function due to the extra registers that CM6206 has.
 All I can say is that after these changes the analog channels still
 function.
 Honestly, I don't know that I can do too much more on this because I'm
 working on the assumption that the driver detects and properly handles the
 SPDIF device on this chip, which after looking at the code a little more,
 I'm not sure that it actually does...
 My coding skills are not strong enough to write that sort of code,
 especially since I don't actually have any background in audio sub-systems.
 I guess I just got lucky on this one with the registers being easy enough to
 identify.

 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, 0, 0x200c) +
         snd_usb_cm106_write_int_reg(dev, 1, 0x3000) +
         snd_usb_cm106_write_int_reg(dev, 2, 0xf800) +
         snd_usb_cm106_write_int_reg(dev, 3, 0x143f) +
         snd_usb_cm106_write_int_reg(dev, 4, 0x) +
         snd_usb_cm106_write_int_reg(dev, 5, 0x3000);
 }


 Thanks for helping out with this, it's really great that you're able to give
 me feedback very quickly.
 ---Dan



 On Sun, May 24, 2009 at 3:30 PM, Fabrício Nihues fabricio.nih...@gmail.com
 wrote:

 Hello, I've tried again on windows, and spdif passtrough is working
 with dts/ac3 files if you send it as 16 bit output, if sending as 24
 bit or 32 bit I get noise, but the passtrough is working all the 5.1
 channels, the receiver recognize dts and ac3 even if the analog out is
 set to 2 Ch on the driver control panel. The only thing that enable or
 disables the optical out is that switch in the cmedia control panel
 inside windows.

 If is there something I can do please tell, I'll try to do, I can only
 test tomorrow.

 ___
 Fabrício Nihues



 2009/5/24 Dan Allongo gongo...@gmail.com:
  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.0 -0400
  +++ usbaudio.c    2009-05-24 11:07:44.0 -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

Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-05-25 Thread Fabrício Nihues
Good news!!!

aplay -D iec958 SURROUNDTEST_DD_640.wav is playing Doubly Digital to
my receiver and is working!

The file is a 16bit / 44100Khz audio test, the Dolby Digital and all
speakers works!

Mplayer plays fine too, the problem is when I try to play a movie, the
ac3 is 48000Khz, and maybe is not 16bit? How I can see or change to
16bit/44100?

Still got problems with any gstreamer sound. I'll try to play with
asound.conf...

Got the sample from http://www.sr.se/cgi-bin/mall/index.asp?programID=2445
___
Fabrício Nihues



2009/5/25 Fabrício Nihues fabricio.nih...@gmail.com:
 Hello Dan!

 Now it's working! Sound is comming to my receiver via optical!! I've
 tested only 5min now, just got some problems I'm trying to solve.

 1) Any gstreamer application send sound with wrong sampling rate (Same
 as audacious ressampling to 48khz, but gstremer seems to ressample to
 48khz even 44.1khz music, tested with Totem), so i'm looking a way to
 send only 44.1khz.

 2) Audacious is perfect.

 3) Couldn't send Mplayer ac3 passtrough, I'm trying to send via Totem
 (or other command to mplayer), working on it

 Update: Just got sound via mplayer, but the passtrough is the same
 garbled sound as in windows with 32/24bit enabled).  Anyone know how
 to send only 16bit stream passtrough via mplayer/alsa? Or any idea how
 to solve? Must there be a way... we are so close to make this thing
 100% working, it will be the best low price external sound card with
 spdif for linux!

 ___
 Fabrício Nihues



 2009/5/25 Dan Allongo gongo...@gmail.com:
 I did some more USB packet sniffing and discovered that the drivers are
 setting 2 extra undocumented registers and some unknown bits in the existing
 registers.
 Try this out and let me know how it goes.
 I'm trying not to post all of this code to the list immediately in order to
 avoid confusion.
 If this works out, then I'll have to split off the boot quirk for this into
 a separate function due to the extra registers that CM6206 has.
 All I can say is that after these changes the analog channels still
 function.
 Honestly, I don't know that I can do too much more on this because I'm
 working on the assumption that the driver detects and properly handles the
 SPDIF device on this chip, which after looking at the code a little more,
 I'm not sure that it actually does...
 My coding skills are not strong enough to write that sort of code,
 especially since I don't actually have any background in audio sub-systems.
 I guess I just got lucky on this one with the registers being easy enough to
 identify.

 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, 0, 0x200c) +
         snd_usb_cm106_write_int_reg(dev, 1, 0x3000) +
         snd_usb_cm106_write_int_reg(dev, 2, 0xf800) +
         snd_usb_cm106_write_int_reg(dev, 3, 0x143f) +
         snd_usb_cm106_write_int_reg(dev, 4, 0x) +
         snd_usb_cm106_write_int_reg(dev, 5, 0x3000);
 }


 Thanks for helping out with this, it's really great that you're able to give
 me feedback very quickly.
 ---Dan



 On Sun, May 24, 2009 at 3:30 PM, Fabrício Nihues fabricio.nih...@gmail.com
 wrote:

 Hello, I've tried again on windows, and spdif passtrough is working
 with dts/ac3 files if you send it as 16 bit output, if sending as 24
 bit or 32 bit I get noise, but the passtrough is working all the 5.1
 channels, the receiver recognize dts and ac3 even if the analog out is
 set to 2 Ch on the driver control panel. The only thing that enable or
 disables the optical out is that switch in the cmedia control panel
 inside windows.

 If is there something I can do please tell, I'll try to do, I can only
 test tomorrow.

 ___
 Fabrício Nihues



 2009/5/24 Dan Allongo gongo...@gmail.com:
  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

Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-05-25 Thread Fabrício Nihues
Another issue, every second there is a pause of some miliseconds in
sound... maybe is buffer problem?
___
Fabrício Nihues



2009/5/25 Fabrício Nihues fabricio.nih...@gmail.com:
 Good news!!!

 aplay -D iec958 SURROUNDTEST_DD_640.wav is playing Doubly Digital to
 my receiver and is working!

 The file is a 16bit / 44100Khz audio test, the Dolby Digital and all
 speakers works!

 Mplayer plays fine too, the problem is when I try to play a movie, the
 ac3 is 48000Khz, and maybe is not 16bit? How I can see or change to
 16bit/44100?

 Still got problems with any gstreamer sound. I'll try to play with
 asound.conf...

 Got the sample from http://www.sr.se/cgi-bin/mall/index.asp?programID=2445
 ___
 Fabrício Nihues



 2009/5/25 Fabrício Nihues fabricio.nih...@gmail.com:
 Hello Dan!

 Now it's working! Sound is comming to my receiver via optical!! I've
 tested only 5min now, just got some problems I'm trying to solve.

 1) Any gstreamer application send sound with wrong sampling rate (Same
 as audacious ressampling to 48khz, but gstremer seems to ressample to
 48khz even 44.1khz music, tested with Totem), so i'm looking a way to
 send only 44.1khz.

 2) Audacious is perfect.

 3) Couldn't send Mplayer ac3 passtrough, I'm trying to send via Totem
 (or other command to mplayer), working on it

 Update: Just got sound via mplayer, but the passtrough is the same
 garbled sound as in windows with 32/24bit enabled).  Anyone know how
 to send only 16bit stream passtrough via mplayer/alsa? Or any idea how
 to solve? Must there be a way... we are so close to make this thing
 100% working, it will be the best low price external sound card with
 spdif for linux!

 ___
 Fabrício Nihues



 2009/5/25 Dan Allongo gongo...@gmail.com:
 I did some more USB packet sniffing and discovered that the drivers are
 setting 2 extra undocumented registers and some unknown bits in the existing
 registers.
 Try this out and let me know how it goes.
 I'm trying not to post all of this code to the list immediately in order to
 avoid confusion.
 If this works out, then I'll have to split off the boot quirk for this into
 a separate function due to the extra registers that CM6206 has.
 All I can say is that after these changes the analog channels still
 function.
 Honestly, I don't know that I can do too much more on this because I'm
 working on the assumption that the driver detects and properly handles the
 SPDIF device on this chip, which after looking at the code a little more,
 I'm not sure that it actually does...
 My coding skills are not strong enough to write that sort of code,
 especially since I don't actually have any background in audio sub-systems.
 I guess I just got lucky on this one with the registers being easy enough to
 identify.

 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, 0, 0x200c) +
         snd_usb_cm106_write_int_reg(dev, 1, 0x3000) +
         snd_usb_cm106_write_int_reg(dev, 2, 0xf800) +
         snd_usb_cm106_write_int_reg(dev, 3, 0x143f) +
         snd_usb_cm106_write_int_reg(dev, 4, 0x) +
         snd_usb_cm106_write_int_reg(dev, 5, 0x3000);
 }


 Thanks for helping out with this, it's really great that you're able to give
 me feedback very quickly.
 ---Dan



 On Sun, May 24, 2009 at 3:30 PM, Fabrício Nihues fabricio.nih...@gmail.com
 wrote:

 Hello, I've tried again on windows, and spdif passtrough is working
 with dts/ac3 files if you send it as 16 bit output, if sending as 24
 bit or 32 bit I get noise, but the passtrough is working all the 5.1
 channels, the receiver recognize dts and ac3 even if the analog out is
 set to 2 Ch on the driver control panel. The only thing that enable or
 disables the optical out is that switch in the cmedia control panel
 inside windows.

 If is there something I can do please tell, I'll try to do, I can only
 test tomorrow.

 ___
 Fabrício Nihues



 2009/5/24 Dan Allongo gongo...@gmail.com:
  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

[Alsa-user] USB audio adapters (CM6206 chip)

2009-05-24 Thread Fabrício Nihues
___
Fabrício Nihues




-- Forwarded message --
From: Fabrício Nihues fabricio.nih...@gmail.com
Date: 2009/5/24
Subject: Re: [Alsa-user] USB audio adapters (CM6206 chip)
To: Dan Allongo gongo...@gmail.com


Hello, I've tried again on windows, and spdif passtrough is working
with dts/ac3 files if you send it as 16 bit output, if sending as 24
bit or 32 bit I get noise, but the passtrough is working all the 5.1
channels, the receiver recognize dts and ac3 even if the analog out is
set to 2 Ch on the driver control panel. The only thing that enable or
disables the optical out is that switch in the cmedia control panel
inside windows.

If is there something I can do please tell, I'll try to do, I can only
test tomorrow.

___
Fabrício Nihues



2009/5/24 Dan Allongo gongo...@gmail.com:
 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.0 -0400
 +++ usbaudio.c    2009-05-24 11:07:44.0 -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, 0x) +
 +        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



--
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

Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-05-23 Thread Fabrício Nihues
Dan,

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
out, I hear the music normal, as I was sending to hw:1,0. There must
be a switch on the windows drivers to allow sound to optical or
something.

Linux driver only report one device, and should report two, one as
analog and second as digital...

I'm testing now 5.1 analog and it's normal, I was using a test
Surround WAV and was garbled... but with a movie everything is fine,
or almost, the rear out and the center/lfe is exchanged, nothing
really bad. Both hw:1,0 and plughw:1,0 plays fine, the samplerate
mplayer says is 48khz.

tested with mplayer -channels 6 -ao alsa:device=hw=1,0 movieac3.avi
___
Fabrício Nihues



2009/5/23 Dan Allongo gongo...@gmail.com:
 Fabricio,

 Try changing the boot quirk function (around line 3270) to look like this:

 static int snd_usb_cm106_boot_quirk(struct usb_device *dev)
 {
     /*
      * Enable line-out driver mode, set headphone source to front
      * channels, enable stereo mic.
      */
     return snd_usb_cm106_write_int_reg(dev, 0, 0x) +
 snd_usb_cm106_write_int_reg(dev, 1, 0xf00d) +
 snd_usb_cm106_write_int_reg(dev, 2, 0x8003) +
 snd_usb_cm106_write_int_reg(dev, 3, 0x077f);
 }


 Using these settings, it seems to turn on the light on the SPDIF out, but I
 don't know if it's outputting anything.
 Register 0 is the configuration for the optical out, but the individual bits
 aren't documented.
 I may eventually resort back to packet sniffing with Wireshark, but this is
 low priority for me since I don't have the hardware to test.
 I'm still trying to figure out the 5.1 analog, it seems to be stuck in
 'headphones only' mode.

 ---Dan


 On Fri, May 22, 2009 at 2:18 PM, Fabrício Nihues fabricio.nih...@gmail.com
 wrote:

 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

Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-05-22 Thread Fabrício Nihues
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


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-05-22 Thread Fabrício Nihues
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


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-04-08 Thread Fabrício Nihues
Hello, I don't think it's a prblem here, I'm using Fedora now and tried a
lot of Live CDs and none worked. I've reinstalled Fedora on my laptop and
got the same silence.
___
Fabrício Nihues


2009/4/8 Dominique Michel dominique.mic...@vtxnet.ch

 Le Tue, 7 Apr 2009 14:05:38 -0300,
 Fabrício Nihues fabricio.nih...@gmail.com a écrit :

  Sorry Bill, here are the infos...
 
  Fabrício Nihues wrote:
   I'm looking for a solution to the USB 6 Channel 5.1 PCI External Sound
   Card PC Laptop A14 from ebay, i've bought one too, it show up as
 usb-audio
   like cm106, I can play but can't hear anything...
  
   The chip is a C-media 6206 and inside the .ini of the win drivers it
 says
   CM106 as driver... so it should work but something is missing or need
 to be
   changed for this card.
 
  Example:
 
 http://cgi.ebay.com/USB-6-Channel-5-1-PCI-External-Sound-Card-PC-Laptop-A14_W0QQitemZ160284015210QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item160284015210_trksid=p3286.c0.m14_trkparms=72%3A1205|66%3A2|65%3A12|39%3A1|240%3A1318|301%3A1|293%3A1|294%3A50http://cgi.ebay.com/USB-6-Channel-5-1-PCI-External-Sound-Card-PC-Laptop-A14_W0QQitemZ160284015210QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item160284015210_trksid=p3286.c0.m14_trkparms=72%3A1205%7C66%3A2%7C65%3A12%7C39%3A1%7C240%3A1318%7C301%3A1%7C293%3A1%7C294%3A50
 
  I've selected the sound card to play already, i'm a 4 years user of
  gentoo so it's not a problem, right now using fedora 10 without
  pulseaudio and alsa-driver 1.0.19.
 
  Already tried using audacious playing hw:1,0 (or 0.0 if card goes to
  1st device) with alsa output trying too hear but nothing
  aplay with various combinations don't get sound too
 
  the funny thing is when not playing;
 
  cat /proc/asound/card1/pcm0p/sub0/status
  closed
 
  cat /proc/asound/card1/stream0
  USB Sound Device at usb-:00:02.0-2, full speed : USB Audio
 
  Playback:
Status: Stop
Interface 1
  Altset 1
  Format: 0x2
  Channels: 8
  Endpoint: 6 OUT (ADAPTIVE)
  Rates: 44100, 48000
  (there are more outputs but for example the 1st only)
 
 
 
 
  playing:
  cat /proc/asound/card1/pcm0p/sub0/status
  state: RUNNING
  trigger_time: 1134.777225355
  tstamp  : 1377.123626528
  delay   : 21696
  avail   : 354
  avail_max   : 4411
  -
  hw_ptr  : 10690194
  appl_ptr: 10711890
 
 
  cat /proc/asound/card1/pcm0p/sub0/hw_params
  access: RW_INTERLEAVED
  format: S16_LE
  subformat: STD
  channels: 2
  rate: 44100 (44100/1)
  period_size: 4410
  buffer_size: 22050
 
 
  cat /proc/asound/card1/stream0
  USB Sound Device at usb-:00:02.0-2, full speed : USB Audio
 
  Playback:
Status: Running
  Interface = 1
  Altset = 2
  URBs = 8 [ 8 8 8 8 8 8 8 8 ]
  Packet Size = 196
  Momentary freq = 44100 Hz (0x2c.199a)
 
  but no sound at all
 
 
 
  DMESG:
  usb 3-2: new full speed USB device using ohci_hcd and address 3
  usb 3-2: configuration #1 chosen from 1 choice
  input: USB Sound Device as
  /devices/pci:00/:00:02.0/usb3/3-2/3-2:1.3/input/input15
  input,hidraw2: USB HID v1.00 Device [USB Sound Device] on
  usb-:00:02.0-2
  usb 3-2: New USB device found, idVendor=0d8c, idProduct=0102
  usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
  usb 3-2: Product: USB Sound Device
  usbcore: registered new interface driver snd-usb-audio
 
 
  LSUSB: Bus 001 Device 020: ID 0d8c:0102 C-Media Electronics, Inc.
  CM106 Like Sound Device
 
  ls -l /dev/snd
  total 0
  drwxr-xr-x   2 root root 280 Abr  7 13:23 ./
  drwxr-xr-x  14 root root4720 Abr  7 13:48 ../
  crw-rw+  1 root root 116,  0 Abr  7 13:22 controlC0
  crw-rw+  1 root root 116, 32 Abr  7 13:23 controlC1
  crw-rw+  1 root root 116,  4 Abr  7 13:22 hwC0D0
  crw-rw+  1 root root 116,  7 Abr  7 13:22 hwC0D3
  crw-rw+  1 root root 116, 24 Abr  7 13:22 pcmC0D0c
  crw-rw+  1 root root 116, 16 Abr  7 13:38 pcmC0D0p
  crw-rw+  1 root root 116, 17 Abr  7 13:22 pcmC0D1p
  crw-rw+  1 root root 116, 19 Abr  7 13:22 pcmC0D3p
  crw-rw+  1 root root 116, 56 Abr  7 13:23 pcmC1D0c
  crw-rw+  1 root root 116, 48 Abr  7 13:48 pcmC1D0p
  crw-rw+  1 root root 116,  1 Abr  7 13:22 seq
  crw-rw+  1 root root 116, 33 Abr  7 13:22 timer
 
 
  cat /proc/asound/cards
 
   0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfbf78000 irq 10
   1 [default]: USB-Audio - USB Sound Device
USB Sound Device at usb-:00:02.0-2,
 full
  speed
 
 
  aplay -l (only usb card)
 
  card 1: default [USB Sound Device], device 0: USB Audio [USB
 Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
 
 
  aplay -L (only usb card)
 
  USB Sound Device, USB Audio
  Default Audio Device
  front:CARD=default,DEV=0
  USB Sound Device, USB Audio
  Front speakers
  surround40:CARD=default,DEV=0

Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-04-08 Thread Fabrício Nihues
Never worked with .17 driver... didn't say that?!

That was Dominique reply I think.
___
Fabrício Nihues


2009/4/8 Bill Unruh un...@physics.ubc.ca

 OK, nothing pops out to me at least. You say that .17 worked but .19 did
 not. Maybe you could try compiling the usb driver itself from 17 and install
 it
 OK, nothing pops out to me at least. You say that .17 worked but .19 did
 not. Maybe you could try compiling the usb driver itself from 17 and install
 it
 into your .19 and see if that works (Not sure that it even should, but if
 it
 does and the .19 does not, then you know the problem is with the .19 usb
 driver. If it does not, then either the .17 is incompatible with the .19
 driver, or the problem lies elsewhere. Also look at dmesg to see if there
 are
 any clues just after you do a modprobe on the usb driver. -- ie do a rmmod
 to
 remove the usb driver and then do modprobe.


 On Wed, 8 Apr 2009, Fabrício Nihues wrote:

  Hello, I don't think it's a prblem here, I'm using Fedora now and tried a
 lot of Live CDs and none worked. I've reinstalled Fedora on my laptop and
 got the same silence.
 ___
 Fabrício Nihues


 2009/4/8 Dominique Michel dominique.mic...@vtxnet.ch

  Le Tue, 7 Apr 2009 14:05:38 -0300,
 Fabrício Nihues fabricio.nih...@gmail.com a écrit :

  Sorry Bill, here are the infos...

 Fabrício Nihues wrote:

 I'm looking for a solution to the USB 6 Channel 5.1 PCI External Sound
 Card PC Laptop A14 from ebay, i've bought one too, it show up as

 usb-audio

 like cm106, I can play but can't hear anything...

 The chip is a C-media 6206 and inside the .ini of the win drivers it

 says

 CM106 as driver... so it should work but something is missing or need

 to be

 changed for this card.


 Example:


 http://cgi.ebay.com/USB-6-Channel-5-1-PCI-External-Sound-Card-PC-Laptop-A14_W0QQitemZ160284015210QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item160284015210_trksid=p3286.c0.m14_trkparms=72%3A1205|66%3A2|65%3A12|39%3A1|240%3A1318|301%3A1|293%3A1|294%3A50http://cgi.ebay.com/USB-6-Channel-5-1-PCI-External-Sound-Card-PC-Laptop-A14_W0QQitemZ160284015210QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item160284015210_trksid=p3286.c0.m14_trkparms=72%3A1205%7C66%3A2%7C65%3A12%7C39%3A1%7C240%3A1318%7C301%3A1%7C293%3A1%7C294%3A50
 
 http://cgi.ebay.com/USB-6-Channel-5-1-PCI-External-Sound-Card-PC-Laptop-A14_W0QQitemZ160284015210QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item160284015210_trksid=p3286.c0.m14_trkparms=72%3A1205%7C66%3A2%7C65%3A12%7C39%3A1%7C240%3A1318%7C301%3A1%7C293%3A1%7C294%3A50
 


 I've selected the sound card to play already, i'm a 4 years user of
 gentoo so it's not a problem, right now using fedora 10 without
 pulseaudio and alsa-driver 1.0.19.

 Already tried using audacious playing hw:1,0 (or 0.0 if card goes to
 1st device) with alsa output trying too hear but nothing
 aplay with various combinations don't get sound too

 the funny thing is when not playing;

 cat /proc/asound/card1/pcm0p/sub0/status
 closed

 cat /proc/asound/card1/stream0
 USB Sound Device at usb-:00:02.0-2, full speed : USB Audio

 Playback:
  Status: Stop
  Interface 1
Altset 1
Format: 0x2
Channels: 8
Endpoint: 6 OUT (ADAPTIVE)
Rates: 44100, 48000
 (there are more outputs but for example the 1st only)




 playing:
 cat /proc/asound/card1/pcm0p/sub0/status
 state: RUNNING
 trigger_time: 1134.777225355
 tstamp  : 1377.123626528
 delay   : 21696
 avail   : 354
 avail_max   : 4411
 -
 hw_ptr  : 10690194
 appl_ptr: 10711890


 cat /proc/asound/card1/pcm0p/sub0/hw_params
 access: RW_INTERLEAVED
 format: S16_LE
 subformat: STD
 channels: 2
 rate: 44100 (44100/1)
 period_size: 4410
 buffer_size: 22050


 cat /proc/asound/card1/stream0
 USB Sound Device at usb-:00:02.0-2, full speed : USB Audio

 Playback:
  Status: Running
Interface = 1
Altset = 2
URBs = 8 [ 8 8 8 8 8 8 8 8 ]
Packet Size = 196
Momentary freq = 44100 Hz (0x2c.199a)

 but no sound at all



 DMESG:
 usb 3-2: new full speed USB device using ohci_hcd and address 3
 usb 3-2: configuration #1 chosen from 1 choice
 input: USB Sound Device as
 /devices/pci:00/:00:02.0/usb3/3-2/3-2:1.3/input/input15
 input,hidraw2: USB HID v1.00 Device [USB Sound Device] on
 usb-:00:02.0-2
 usb 3-2: New USB device found, idVendor=0d8c, idProduct=0102
 usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
 usb 3-2: Product: USB Sound Device
 usbcore: registered new interface driver snd-usb-audio


 LSUSB: Bus 001 Device 020: ID 0d8c:0102 C-Media Electronics, Inc.
 CM106 Like Sound Device

 ls -l /dev/snd
 total 0
 drwxr-xr-x   2 root root 280 Abr  7 13:23 ./
 drwxr-xr-x  14 root root4720 Abr  7 13:48 ../
 crw-rw+  1 root root 116,  0 Abr  7 13:22 controlC0
 crw-rw+  1 root root 116, 32 Abr  7 13:23 controlC1
 crw-rw+  1 root root 116,  4 Abr  7 13:22 hwC0D0
 crw-rw+  1 root root 116,  7 Abr  7 13:22

Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-04-07 Thread Fabrício Nihues
Hello, I've searched the forums, i've found the existense of
alsa-usbstream package... installed it but didn't resolve, I'm still
without sound, Already tried every majos distro around, including
Ubuntu and Fedora Beta/Alpha but still no sound, only a pop when the
driver are loaded.

Tried resampling but didn't worked.

Tried the optical out too but no sound too or analog.


___
Fabrício Nihues



2009/3/20  li...@lazygranch.com:
 I searched the suse website and there is a post there regarding some things 
 to do to get usb sound working. Sorry to be so vague, but I'm away from my 
 desktop. Seach the opensuse forum.

 When I get back, I willtry yo find the post.
 .
 -Original Message-
 From: Fabrício Nihues  fabricio.nih...@gmail.com

 Date: Fri, 20 Mar 2009 19:50:22
 To: alsa-user@lists.sourceforge.net
 Subject: Re: [Alsa-user] USB audio adapters (CM6206 chip)



 Hello!

 I've tried Opensuse 10.1, 10.2, and 11.0 and no sound... same as others 
 distro,
 it show as usb Audio, I get all channels (one Left ad Right and another with 6
 channels LF) in mixers, but no sound at all. The only sound is a pop when 
 the
 module start first time...


 --
 Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
 powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
 easily build your RIAs with Flex Builder, the Eclipse(TM)based development
 software that enables intelligent coding and step-through debugging.
 Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
 ___
 Alsa-user mailing list
 Alsa-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/alsa-user


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-04-07 Thread Fabrício Nihues
Sorry Bill, here are the infos...

Fabrício Nihues wrote:
 I'm looking for a solution to the USB 6 Channel 5.1 PCI External Sound Card 
 PC
 Laptop A14 from ebay, i've bought one too, it show up as usb-audio like 
 cm106,
 I can play but can't hear anything...

 The chip is a C-media 6206 and inside the .ini of the win drivers it says 
 CM106 as
 driver... so it should work but something is missing or need to be changed for
 this card.

Example:
http://cgi.ebay.com/USB-6-Channel-5-1-PCI-External-Sound-Card-PC-Laptop-A14_W0QQitemZ160284015210QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item160284015210_trksid=p3286.c0.m14_trkparms=72%3A1205|66%3A2|65%3A12|39%3A1|240%3A1318|301%3A1|293%3A1|294%3A50

I've selected the sound card to play already, i'm a 4 years user of
gentoo so it's not a problem, right now using fedora 10 without
pulseaudio and alsa-driver 1.0.19.

Already tried using audacious playing hw:1,0 (or 0.0 if card goes to
1st device) with alsa output trying too hear but nothing
aplay with various combinations don't get sound too

the funny thing is when not playing;

cat /proc/asound/card1/pcm0p/sub0/status
closed

cat /proc/asound/card1/stream0
USB Sound Device at usb-:00:02.0-2, full speed : USB Audio

Playback:
  Status: Stop
  Interface 1
Altset 1
Format: 0x2
Channels: 8
Endpoint: 6 OUT (ADAPTIVE)
Rates: 44100, 48000
(there are more outputs but for example the 1st only)




playing:
cat /proc/asound/card1/pcm0p/sub0/status
state: RUNNING
trigger_time: 1134.777225355
tstamp  : 1377.123626528
delay   : 21696
avail   : 354
avail_max   : 4411
-
hw_ptr  : 10690194
appl_ptr: 10711890


cat /proc/asound/card1/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 4410
buffer_size: 22050


cat /proc/asound/card1/stream0
USB Sound Device at usb-:00:02.0-2, full speed : USB Audio

Playback:
  Status: Running
Interface = 1
Altset = 2
URBs = 8 [ 8 8 8 8 8 8 8 8 ]
Packet Size = 196
Momentary freq = 44100 Hz (0x2c.199a)

but no sound at all



DMESG:
usb 3-2: new full speed USB device using ohci_hcd and address 3
usb 3-2: configuration #1 chosen from 1 choice
input: USB Sound Device as
/devices/pci:00/:00:02.0/usb3/3-2/3-2:1.3/input/input15
input,hidraw2: USB HID v1.00 Device [USB Sound Device] on
usb-:00:02.0-2
usb 3-2: New USB device found, idVendor=0d8c, idProduct=0102
usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
usb 3-2: Product: USB Sound Device
usbcore: registered new interface driver snd-usb-audio


LSUSB: Bus 001 Device 020: ID 0d8c:0102 C-Media Electronics, Inc.
CM106 Like Sound Device

ls -l /dev/snd
total 0
drwxr-xr-x   2 root root 280 Abr  7 13:23 ./
drwxr-xr-x  14 root root4720 Abr  7 13:48 ../
crw-rw+  1 root root 116,  0 Abr  7 13:22 controlC0
crw-rw+  1 root root 116, 32 Abr  7 13:23 controlC1
crw-rw+  1 root root 116,  4 Abr  7 13:22 hwC0D0
crw-rw+  1 root root 116,  7 Abr  7 13:22 hwC0D3
crw-rw+  1 root root 116, 24 Abr  7 13:22 pcmC0D0c
crw-rw+  1 root root 116, 16 Abr  7 13:38 pcmC0D0p
crw-rw+  1 root root 116, 17 Abr  7 13:22 pcmC0D1p
crw-rw+  1 root root 116, 19 Abr  7 13:22 pcmC0D3p
crw-rw+  1 root root 116, 56 Abr  7 13:23 pcmC1D0c
crw-rw+  1 root root 116, 48 Abr  7 13:48 pcmC1D0p
crw-rw+  1 root root 116,  1 Abr  7 13:22 seq
crw-rw+  1 root root 116, 33 Abr  7 13:22 timer


cat /proc/asound/cards

 0 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0xfbf78000 irq 10
 1 [default]: USB-Audio - USB Sound Device
  USB Sound Device at usb-:00:02.0-2, full speed


aplay -l (only usb card)

card 1: default [USB Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


aplay -L (only usb card)

USB Sound Device, USB Audio
Default Audio Device
front:CARD=default,DEV=0
USB Sound Device, USB Audio
Front speakers
surround40:CARD=default,DEV=0
USB Sound Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=default,DEV=0
USB Sound Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=default,DEV=0
USB Sound Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=default,DEV=0
USB Sound Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=default,DEV=0
USB Sound Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=default,DEV=0
USB Sound Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output


I've already tryed a patch but didn't worked too
http://patchwork.kernel.org/patch/11899/

It's the same USB ID of my card

Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-03-20 Thread Fabrício Nihues

Hello!

I've tried Opensuse 10.1, 10.2, and 11.0 and no sound... same as others distro,
it show as usb Audio, I get all channels (one Left ad Right and another with 6
channels LF) in mixers, but no sound at all. The only sound is a pop when the
module start first time...


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB audio adapters (CM6206 chip)

2009-03-19 Thread Fabrício Nihues
I'm looking for a solution to the USB 6 Channel 5.1 PCI External Sound Card PC
Laptop A14 from ebay, i've bought one too, it show up as usb-audio like cm106,
I can play but can't hear anything...

The chip is a C-media 6206 and inside the .ini of the drivers it says CM106 as
driver... so it should work but something is missing or need to be changed for
this card.

I'm waiting for a optical cable came to test the spdif out too.

Anything that I can help I'll send for the developers.

PS: Works beautifull on windows, 5.1 analog is great sending to a receiver!

Thx!





--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Via82xx, How to play Quake with this card!

2003-03-16 Thread Fabrício Nihues
There is a way to play Quake with this card? It´s a Via 8233, with 
Realtek 650 codec (ac97).
When I run quake, I get an error about can´t acess or write mmap buffer 
or something!

___
Busca Yahoo!
O serviço de busca mais completo da Internet. O que você pensar o Yahoo! encontra.
http://br.busca.yahoo.com/
---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Via82xx error in quake...

2003-03-16 Thread Fabrício Nihues
My last email was read on windows, now i'm on linux and can't reply...
this doesn't work:
echo quake3 0 0 direct  /proc/asound/card0/pcm0p/oss
Here is the error:

--- sound initialization ---
Could not mmap dma buffer PROT_WRITE|PROT_READ
trying mmap PROT_WRITE (with associated better compatibility / less 
performance
code)
/dev/dsp: Input/output error
Could not mmap /dev/dsp




___
Busca Yahoo!
O serviço de busca mais completo da Internet. O que você pensar o Yahoo! encontra.
http://br.busca.yahoo.com/
---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user