Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #173907

Re: [jessie] recording line-in using ALSA?

From "D. R. Evans" <doc.evans@gmail.com>
Newsgroups linux.debian.user
Subject Re: [jessie] recording line-in using ALSA?
Date 2016-10-27 20:10 +0200
Message-ID <swXhM-5la-37@gated-at.bofh.it> (permalink)
References <swG7f-2fy-5@gated-at.bofh.it> <swMw2-6AV-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

deloptes wrote on 10/27/2016 12:32 AM:

> 
> It is very simple

I am glad to hear it.

> 
> 1) find out the input
> 
> shell> cat /proc/asound/devices

----

n7dr@shack:~$ cat /proc/asound/devices
  2: [ 0]   : control
  3: [ 0- 0]: digital audio playback
  4: [ 0- 0]: digital audio capture
  5: [ 0- 1]: digital audio playback
 33:        : timer
n7dr@shack:~$

----

> 
> => my input is the capture on the second card
> 
>  88: [ 2- 0]: digital audio capture

So presumably the equivalent on my system is:

  4: [ 0- 0]: digital audio capture

> 
> 2) so no we can test the input
> 
> shell> arecord -c2 -Dplughw:2,0 -f cd -vv /dev/null

This is essentially how I have been trying to record, and it just creates
silence. Specifically, I just tried:

----

n7dr@shack:~$ arecord -c2 -Dplughw:0,0 -f cd -vv foo.wav
Recording WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Hardware PCM card 0 'ATI IXP' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 92879
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 4096
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
  appl_ptr     : 0
  hw_ptr       : 0

----

That creates foo.wav. And when I play foo.wav, it just plays silence. (I did
remember to make sure that audio was being played on the line-in line :-).)

> 
> You are looking at PulseAudio, not at ALSA mixer
> 

I don't understand that statement. Quoting my e-mail:

> alsamixer looks like this when viewing the Capture item:
>
>
> ───────────────────── AlsaMixer v1.0.28 ─────────────────────┐

That output states that it is from alsamixer. (Unfortunately, alsamixer clears
the screen so that the name of the command isn't visible; but I assure you
that what I typed was "alsamixer" (with no parameters).)

I know that the output from "alsamixer" says "Pulseaudio"; I have no idea why
it says that. But I was definitely looking at ALSA mixer.

> Try alsamixer -c0 and check the input section
> 

Hmmm. I see this:

https://dl.dropboxusercontent.com/u/18494055/audio/alsamixer-1.png

which doesn't mean much to me (that is, I don't know whether it looks reasonable).

  Doc

-- 
Web:  http://www.sff.net/people/N7DR

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[jessie] recording line-in using ALSA? "D. R. Evans" <doc.evans@gmail.com> - 2016-10-27 01:50 +0200
  Re: [jessie] recording line-in using ALSA? deloptes <deloptes@gmail.com> - 2016-10-27 08:40 +0200
    Re: [jessie] recording line-in using ALSA? "D. R. Evans" <doc.evans@gmail.com> - 2016-10-27 20:10 +0200
      Re: [jessie] recording line-in using ALSA? deloptes <deloptes@gmail.com> - 2016-10-27 20:20 +0200
        [SOLVED] Re: [jessie] recording line-in using ALSA? "D. R. Evans" <doc.evans@gmail.com> - 2016-10-27 22:00 +0200
          Re: [SOLVED] Re: [jessie] recording line-in using ALSA? Ric Moore <wayward4now@gmail.com> - 2016-10-28 05:50 +0200
            Re: [SOLVED] Re: [jessie] recording line-in using ALSA? deloptes <deloptes@gmail.com> - 2016-10-28 23:50 +0200
              Re: [SOLVED] Re: [jessie] recording line-in using ALSA? Ric Moore <wayward4now@gmail.com> - 2016-10-29 18:40 +0200
                Re: [SOLVED] Re: [jessie] recording line-in using ALSA? Reco <recoverym4n@gmail.com> - 2016-10-29 19:10 +0200
                Re: [SOLVED] Re: [jessie] recording line-in using ALSA? deloptes <deloptes@gmail.com> - 2016-10-29 20:00 +0200
                Re: [SOLVED] Re: [jessie] recording line-in using ALSA? Reco <recoverym4n@gmail.com> - 2016-10-29 21:00 +0200
                Re: [SOLVED] Re: [jessie] recording line-in using ALSA? Brian <ad44@cityscape.co.uk> - 2016-10-29 21:40 +0200
                Re: [SOLVED] Re: [jessie] recording line-in using ALSA? deloptes <deloptes@gmail.com> - 2016-10-29 23:10 +0200
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Reco <recoverym4n@gmail.com> - 2016-10-29 23:30 +0200
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording line-in using ALSA?) deloptes <deloptes@gmail.com> - 2016-10-29 23:40 +0200
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Brian <ad44@cityscape.co.uk> - 2016-10-30 15:30 +0100
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Reco <recoverym4n@gmail.com> - 2016-10-30 16:30 +0100
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Brian <ad44@cityscape.co.uk> - 2016-10-30 18:20 +0100
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Reco <recoverym4n@gmail.com> - 2016-10-31 15:20 +0100
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Brian <ad44@cityscape.co.uk> - 2016-10-31 16:20 +0100
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Jonathan Dowland <jmtd@debian.org> - 2016-10-31 16:50 +0100
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Brian <ad44@cityscape.co.uk> - 2016-10-31 19:50 +0100
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording line-in using ALSA?) deloptes <deloptes@gmail.com> - 2016-10-30 20:00 +0100
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Brian <ad44@cityscape.co.uk> - 2016-10-30 20:50 +0100
                Re: [OT] Sorry state of hplip (was: [SOLVED] Re: [jessie] recording  line-in using ALSA?) Reco <recoverym4n@gmail.com> - 2016-10-31 14:20 +0100
      Re: [jessie] recording line-in using ALSA? deloptes <deloptes@gmail.com> - 2016-10-27 20:30 +0200

csiph-web