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


Groups > linux.debian.user > #173888

[jessie] recording line-in using ALSA?

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

Show all headers | View raw


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

I am trying to set up the ability to record line-in, but have been unable to
make it work and would appreciate advice. (I have looked at quite a few web
pages of various kinds of help for ALSA, but all of them seem to be rather
vague on the details of recording.)

The hardware is very simple:

----

n7dr@shack:~$ cat /proc/asound/cards
 0 [IXP            ]: ATIIXP - ATI IXP
                      ATI IXP rev 2 with ALC658D at 0xfe02a000, irq 17
n7dr@shack:~$

----

The card has a mic input, a line input, and a speaker output.

If I simply run aplay with a WAV file, I hear the contents of the file. For
example:

----

n7dr@shack:~$ aplay -D hw:0,0 c*.wav

----

causes the named file to play. So *playing* seems to be fine.

However, I have been unable to find any way to record the line input.
Everything I have tried has resulted in silence in the output file.

For example:

----

n7dr@shack:~$ arecord -D hw:0,0 -fdat foo.wav

----

produces the file foo.wav, with silence.

amixer says:

----

n7dr@shack:~$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 55141 [84%] [on]
  Front Right: Playback 55141 [84%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 53640 [82%] [off]
  Front Right: Capture 53640 [82%] [off]
n7dr@shack:~$

----

which seems to be OK, insofar as I understand it, except that there is no
indication of whether the capture device is line-in or the mic line. I haven't
been able to find anything that explicitly tells me how to set the capture
device to be the line in.

alsamixer looks like this when viewing the Capture item:


───────────────────── AlsaMixer v1.0.28 ─────────────────────┐
│ Card: PulseAudio                    F1:  Help               │
│ Chip: PulseAudio                    F2:  System information │
│ View: Capture                       F6:  Select sound card  │
│ Item: Capture                       Esc: Exit               │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
│                            ┌──┐                             │
│                            │  │                             │
│                            │  │                             │
│                            │  │                             │
│                            │  │                             │
│                            │  │                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                            │▒▒│                             │
│                           L└──┘R                            │
│                          CAPTURE                            │
│                           82<>82                            │
│                         <Capture >                          │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
│                                                             │
└─────────────────────────────────────────────────────────────┘

I've also tried plugging the incoming audio into the mic socket (in case
that's what's being captured), and that just records silence as well.

So I suppose that my questions are:

1. How do I tell alsa that I want to capture from line-in?

2. How do I actually record the audio that I'm sending on the line-in line?

If more information is needed before these questions can be answered, please
let me know and I'll provide it.

  Doc Evans

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

Back to linux.debian.user | Previous | Next — 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