Re: alsa arecord works then stops working - Re: alsa capture works then stops working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul, my knowledge is not enough to help you, I'm sorry.
I have run "arecord -D plughw:1,0 -c 2 -r 48000 | aplay". How do you stop it ?. Is "arecord -D plughw:1,0 -c 2 -r 48000 | aplay" correct?. I ask you it because to stop "arecord -D plughw:1,0 -c 2 -r 48000 | aplay" I've tried "Ctrl z", but to return everything to the beginning I need to reload alsa (as root) with "alsa force-reload".
You can try to reload alsa (as root) with "alsa force-reload" instead of restarting the whole system.
José Luis

El lun, 12-11-2012 a las 12:22 +0000, alsa-user-request@xxxxxxxxxxxxxxxxxxxxx escribió:
Send Alsa-user mailing list submissions to
	alsa-user@xxxxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/alsa-user
or, via email, send a message with subject or body 'help' to
	alsa-user-request@xxxxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
	alsa-user-owner@xxxxxxxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Alsa-user digest..."


Today's Topics:

   1. Re: how to make all 8 channels play in a USB sound card ?
      (Sergei Steshenko)
   2. Re: alsa arecord works then stops working - Re: alsa capture
      works then stops working (Paul Homlish)


----------------------------------------------------------------------

Message: 1
Date: Mon, 12 Nov 2012 04:01:08 +0400
From: Sergei Steshenko <steshenko_sergei@xxxxxxx>
Subject: Re:  how to make all 8 channels play in a USB
	sound card ?
To: Clemens Ladisch <cladisch@xxxxxxxxxxxxxx>
Cc: alsa-user@xxxxxxxxxxxxxxxxxxxxx
Message-ID: <1352678468.807718327@xxxxxxxxxxx>
Content-Type: text/plain; charset=utf-8




Wed, 07 Nov 2012 21:42:35 +0100 ?? Clemens Ladisch <cladisch@xxxxxxxxxxxxxx>:
> Sergei Steshenko wrote:
> > Wed, 07 Nov 2012 08:59:51 +0100 ?? Clemens Ladisch <cladisch@xxxxxxxxxxxxxx>:
> >> 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.

------------------------------

Message: 2
Date: Mon, 12 Nov 2012 05:39:12 -0500
From: Paul Homlish <phomlish@xxxxxxxxxxx>
Subject: Re:  alsa arecord works then stops working - Re:
	alsa capture works then stops working
To: Jos? Luis Artuch <artuch@xxxxxxxxxxxxx>
Cc: alsa-user@xxxxxxxxxxxxxxxxxxxxx
Message-ID: <50A0D1D0.3080409@xxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 11/12/2012 5:35 AM, Paul J. Homlish III wrote:
> Thanks for the suggestion Jose.
>
> I believe my description was poor:
> arecord|aplay I hear sound, vlc I don't, back to arecord|aplay and no 
> sound until reboot.
>
> I did
> amixer > amixer_dump
> and
> amixer contents > amixer_contents
> before and after, the diff reports exact same settings.
>
>




------------------------------

------------------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


End of Alsa-user Digest, Vol 79, Issue 15
*****************************************


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux