Re: [Alsa-user] how to make all 8 channels play in a USB sound card ?

2012-11-12 Thread Clemens Ladisch
Sergei Steshenko wrote:
 usb-robot
 =
 This program is to communicate with generic USB devices using
 libusb.

 So, maybe no real programming is needed provided I figure out what control 
 data to send to the card ?

You won't be able to access USB devices that are already handled by a driver.


Regards,
Clemens

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] how to make all 8 channels play in a USB sound card ?

2012-11-11 Thread Sergei Steshenko



Wed, 07 Nov 2012 21:42:35 +0100 от Clemens Ladisch cladi...@googlemail.com:
 Sergei Steshenko wrote:
  Wed, 07 Nov 2012 08:59:51 +0100 от Clemens Ladisch 
  cladi...@googlemail.com:
  Sergei Steshenko wrote:
  what controls should I set in order to make a default input (either
  Mic or Line) an output
 
  The CM106 chip itself does not have the ability to make some input pin
  an output (see section 5 of the datasheet).  This is likely to be
  managed by some external hardware controlled by some GPIO output.
 
  At the moment, the driver doesn't support this.  You could try adding
  a control to toggle GPIOs.
 
  You could try adding a control to toggle GPIOs - can I do it through 
  'amixer' or I need to change the driver ?
 
 The latter.  Real programming needed.
 
 
 Regards,
 Clemens
 

After some web search I cam across 'usb-robot' - 
http://usb-robot.sourceforge.net/ .

Its README file contents are:


This file describes the package and how to use it.
You need a recent libusb. See INSTALL for details of requirements.
See the file INSTALL for instructions on compiling and installing.
See the file AUTHORS for who to mail about problems, suggestions, etc.


usb-robot
=

The latest version is always at http://usb-robot.sourceforge.net.

The status of this release is beta. There are no known bugs, but
virtually no testing has been carried out.

This program is to communicate with generic USB devices using
libusb. It can be used to send commands to the device directly from
the console (usb-robot-slave), or as part of some rapidly prototyped
driver in a language like perl or Python. For a really bad example of
how you can do that, it comes with a program (usb-robot-master) that
translates traces of MS-Windows driver actions into usb-robot-slave
commands, so you can get your device to do whatever MS-Windows did to
it. You can get these traces from sniffusb version 0.1, which is
linked to from the usb-robot homepage.

At the moment only control and bulk transfers are supported.

Note that to communicate usefully with USB devices you need to be the
superuser (root).


Starting up
===

Linux 2.4.2:

First load your USB kernel driver. See USB docs for more help.
Don't forget to mount the /proc/bus/usb usbdevfs filesystem.

*BSD:

Does it work at all? Send mail!


Running the slave directly
==

# ./usb-robot-slave product=0x0099 vendor=0x05da

This will search the USB buses for the specified device and open its
/proc/bus/usb filehandle (via libusb). Now the command prompt will pop
up.

To see the commands you can use, type help and press return.


Running the master
==

The (unpolished) usb-robot-master perl script can be used to control
the usb-robot-slave, using debuglogs produced from sniffusb in
conjunction with dbgview.

Perhaps perl-5.6.0 is required. I don't know.

The following example acts on turnon.log then scansuite.log, using
them to control a device with specified product and vendor id.

# ./usb-robot-master --session-type=interactive --product=0x99 --vendor=0x5da\
 /mnt/d/temp/turnon.log /mnt/d/temp/scansuite.log

A session type other than interactive will produce output to STDOUT
describing what would be passed to the slave and what output from the
slave would be expected.

A session type of dump will produce a condensed (more readable) dump
of the logs passed to the program.
.

So, maybe no real programming is needed provided I figure out what control data 
to send to the card ?

Thanks,
  Sergei.
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] how to make all 8 channels play in a USB sound card ?

2012-11-07 Thread Clemens Ladisch
Sergei Steshenko wrote:
 what controls should I set in order to make a default input (either
 Mic or Line) an output

The CM106 chip itself does not have the ability to make some input pin
an output (see section 5 of the datasheet).  This is likely to be
managed by some external hardware controlled by some GPIO output.

At the moment, the driver doesn't support this.  You could try adding
a control to toggle GPIOs.


Regards,
Clemens

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] how to make all 8 channels play in a USB sound card ?

2012-11-07 Thread Sergei Steshenko



Wed, 07 Nov 2012 08:59:51 +0100 от Clemens Ladisch cladi...@googlemail.com:
 Sergei Steshenko wrote:
  what controls should I set in order to make a default input (either
  Mic or Line) an output
 
 The CM106 chip itself does not have the ability to make some input pin
 an output (see section 5 of the datasheet).  This is likely to be
 managed by some external hardware controlled by some GPIO output.
 
 At the moment, the driver doesn't support this.  You could try adding
 a control to toggle GPIOs.
 
 
 Regards,
 Clemens
 

You could try adding a control to toggle GPIOs - can I do it through 'amixer' 
or I need to change the driver ?

Thanks,
  Sergei.
--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] how to make all 8 channels play in a USB sound card ?

2012-11-07 Thread Clemens Ladisch
Sergei Steshenko wrote:
 Wed, 07 Nov 2012 08:59:51 +0100 от Clemens Ladisch cladi...@googlemail.com:
 Sergei Steshenko wrote:
 what controls should I set in order to make a default input (either
 Mic or Line) an output

 The CM106 chip itself does not have the ability to make some input pin
 an output (see section 5 of the datasheet).  This is likely to be
 managed by some external hardware controlled by some GPIO output.

 At the moment, the driver doesn't support this.  You could try adding
 a control to toggle GPIOs.

 You could try adding a control to toggle GPIOs - can I do it through 
 'amixer' or I need to change the driver ?

The latter.  Real programming needed.


Regards,
Clemens

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] how to make all 8 channels play in a USB sound card ?

2012-11-06 Thread Sergei Steshenko



Tue, 06 Nov 2012 08:52:32 +0100 от Clemens Ladisch cladi...@googlemail.com:
 Sergei Steshenko wrote:
  the card is shown as 7.1. so an 8 channel playback should be possible
 
 Does speaker-test work?
 
  I've enabled playback through Line, I hear nothing when headphones are 
  plugged into line.
 
 I'd guess the Line controls are for playback from the line input.
 
 
 Regards,
 Clemens
 


I didn't run speaker-test, I was using 'sox'. As I wrote, I _can_ get sound 
out of every default output channel of the 6 available: FRONT OUT, REAR 
OUT, CEN/BASS OUT.

Please pay attention that in



numid=6,iface=MIXER,name='Speaker Playback Volume'
  ; type=INTEGER,access=rw---R--,values=8,min=0,max=197,step=0
  : values=197,197,197,197,197,197,197,197
  | dBscale-min=-36.93dB,step=0.18dB,mute=0


there are exactly _eight_ (8) values.

Again, my question is very specific: what controls should I set in order to 
make a default input (either Mic or Line) an output - because there are 
just 6 (3 x 2) default outputs.

Thanks,
  Sergei.
--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] how to make all 8 channels play in a USB sound card ?

2012-11-06 Thread Paulino Kenji Sato
Hi,

On Tue, Nov 6, 2012 at 2:32 AM, Sergei Steshenko
steshenko_ser...@list.ru wrote:
 Hello,

 I have a sound card listed as

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

 The card physically is this: 
 http://www.buyincoins.com/new_en/details/usb-2-0-6-channel-7-1-external-audio-sound-card-s-pdif-product-724.html
  .


Where is the jack for output to side speakers?

CM106 have a eight output, but the sound card have only six.
The side outputs is not connected.
And, it not share with input.

6 channel 7.1? How do 8 channels if have only 6?


Paulino

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] how to make all 8 channels play in a USB sound card ?

2012-11-06 Thread Sergei Steshenko



Tue, 6 Nov 2012 14:14:32 -0200 от Paulino Kenji Sato pks...@gmail.com:
 Hi,
 
 On Tue, Nov 6, 2012 at 2:32 AM, Sergei Steshenko
 steshenko_ser...@list.ru wrote:
  Hello,
 
  I have a sound card listed as
 
  Bus 002 Device 002: ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound 
  Device
  .
 
  The card physically is this: 
  http://www.buyincoins.com/new_en/details/usb-2-0-6-channel-7-1-external-audio-sound-card-s-pdif-product-724.html
   .
 
 
 Where is the jack for output to side speakers?
 
 CM106 have a eight output, but the sound card have only six.
 The side outputs is not connected.
 And, it not share with input.
 
 6 channel 7.1? How do 8 channels if have only 6?
 
 
 Paulino
 
 --
 LogMeIn Central: Instant, anywhere, Remote PC access and management.
 Stay in control, update software, and manage PCs from one command center
 Diagnose problems and improve visibility into emerging IT issues
 Automate, monitor and manage. Do more in less time with Central
 http://p.sf.net/sfu/logmein12331_d2d
 ___
 Alsa-user mailing list
 Alsa-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/alsa-user
 


Electronics allow analog port to be bidirectional. If the ports were designed 
that way. I.e. such ports can be programmed to be either input (capture) or 
output (playback).

And that was the essence of the questions I've been asking:

how do I program either Mic or Line port in order to make it an output 
(playback) port.


Regards,
  Sergei.
--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] how to make all 8 channels play in a USB sound card ?

2012-11-05 Thread Clemens Ladisch
Sergei Steshenko wrote:
 the card is shown as 7.1. so an 8 channel playback should be possible

Does speaker-test work?

 I've enabled playback through Line, I hear nothing when headphones are 
 plugged into line.

I'd guess the Line controls are for playback from the line input.


Regards,
Clemens

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user