Jump to content
man8user

2009.1: Intel HDA Line-In Recording Problem

Recommended Posts

Hello,

I cannot seem to get past the hurdle of recording via line-in for old cassettes. The 1990's 2-in-1 has headphone out and I connected that to Line-in of the motherboard's Intel HDA port. The Line-out is normal PC speaker which I can hear without problem. When I attempt to record, I can hear what is playing on 2-in-1 via those PC speakers. But nothing gets recorded -- not even a blip. I tried to create some line noise by plugging in and out the audio jack several times while recording but still nothing!

 

There are 2 sound cards in my PC. One is from Gigabyte motherboard and the other from ATI Radeon 34xx PCI Express VGA add-on card. I forced the ATI card with "Unknown" driver during install from my prior experience with 2009.0. So, that ATI card should be doing VGA only, nothing else.

 

Started with Audacity and when it failed I tried with Ardour too without success. Down to comannd line with arecord, aplay, alsamixer, amixer, pavucontrol, etc. but still no success.

 

By the way, the Microphone Input works fine and I can record with Audacity.

 

Since I can hear on PC speakers what I want to record, it looks to me a configuration or software issue. Could someone help?

 

Here are some existing config info:

MCC--> Sound Config Screen
==========================
There's is no known OSS/ALSA alternative driver for your sound card (ATI
RV620 [ Radeon HD 34xx series]) which currently uses "unknown".

Enable PulseAudio: Box checked
Automatic routing from ALSA to PulseAudio: Box checked
Enable 5.1 sound with PulseAudio: Box unchecked
Enable user switching for audio apps: Box checked
Use Glitch-free mode: Box checked.

pavucontrol
===========
Configuration:
HDA ATI HDMI: Profile = Off
HDA Intel:    Profile = Output Analog Stereo + Input Analog Stereo.

Input Devices:
HDA Intel: Front Left = 100%.  Front Right = 100%.  The LED Bar is dancing.
Monitor of HDA Intel: Use as fallback. Front Left = Front Right = 100%.
The LED Bar is sielnt.


amixer -c 0
===========
Simple mixer control 'IEC958',0
 Capabilities: pswitch pswitch-joined
 Playback channels: Mono
 Mono: Playback [off]


amixer -c 1
===========
Simple mixer control 'Master',0
 Capabilities: pvolume pvolume-joined pswitch pswitch-joined
 Playback channels: Mono
 Limits: Playback 0 - 64
 Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
 Capabilities: pswitch
 Playback channels: Front Left - Front Right
 Mono:
 Front Left: Playback [on]
 Front Right: Playback [on]
Simple mixer control 'PCM',0
 Capabilities: pvolume
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 255
 Mono:
 Front Left: Playback 255 [100%] [0.00dB]
 Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
 Capabilities: pvolume pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 64
 Mono:
 Front Left: Playback 51 [80%] [-13.00dB] [on]
 Front Right: Playback 51 [80%] [-13.00dB] [on]
Simple mixer control 'Front Mic',0
 Capabilities: pvolume pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 31
 Mono:
 Front Left: Playback 24 [77%] [1.50dB] [off]
 Front Right: Playback 24 [77%] [1.50dB] [off]
Simple mixer control 'Front Mic Boost',0
 Capabilities: volume
 Playback channels: Front Left - Front Right
 Capture channels: Front Left - Front Right
 Limits: 0 - 3
 Front Left: 2 [67%]
 Front Right: 2 [67%]
Simple mixer control 'Surround',0
 Capabilities: pvolume pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 64
 Mono:
 Front Left: Playback 51 [80%] [-13.00dB] [on]
 Front Right: Playback 51 [80%] [-13.00dB] [on]
Simple mixer control 'Center',0
 Capabilities: pvolume pvolume-joined pswitch pswitch-joined
 Playback channels: Mono
 Limits: Playback 0 - 64
 Mono: Playback 51 [80%] [-13.00dB] [on]
Simple mixer control 'LFE',0
 Capabilities: pvolume pvolume-joined pswitch pswitch-joined
 Playback channels: Mono
 Limits: Playback 0 - 64
 Mono: Playback 51 [80%] [-13.00dB] [on]
Simple mixer control 'Side',0
 Capabilities: pvolume pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 64
 Mono:
 Front Left: Playback 51 [80%] [-13.00dB] [on]
 Front Right: Playback 51 [80%] [-13.00dB] [on]
Simple mixer control 'Line',0
 Capabilities: pvolume pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 31
 Mono:
 Front Left: Playback 30 [97%] [10.50dB] [on]
 Front Right: Playback 30 [97%] [10.50dB] [on]
Simple mixer control 'CD',0
 Capabilities: pvolume pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 31
 Mono:
 Front Left: Playback 24 [77%] [1.50dB] [on]
 Front Right: Playback 24 [77%] [1.50dB] [on]
Simple mixer control 'Mic',0
 Capabilities: pvolume pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 31
 Mono:
 Front Left: Playback 24 [77%] [1.50dB] [off]
 Front Right: Playback 24 [77%] [1.50dB] [off]
Simple mixer control 'Mic Boost',0
 Capabilities: volume
 Playback channels: Front Left - Front Right
 Capture channels: Front Left - Front Right
 Limits: 0 - 3
 Front Left: 2 [67%]
 Front Right: 2 [67%]
Simple mixer control 'IEC958',0
 Capabilities: pswitch pswitch-joined cswitch cswitch-joined
 Playback channels: Mono
 Capture channels: Mono
 Mono: Playback [on] Capture [on]
Simple mixer control 'IEC958 Default PCM',0
 Capabilities: pswitch pswitch-joined
 Playback channels: Mono
 Mono: Playback [on]
Simple mixer control 'PC Speaker',0
 Capabilities: pvolume pswitch
 Playback channels: Front Left - Front Right
 Limits: Playback 0 - 31
 Mono:
 Front Left: Playback 6 [19%] [-25.50dB] [on]
 Front Right: Playback 6 [19%] [-25.50dB] [on]
Simple mixer control 'Capture',0
 Capabilities: cvolume cswitch
 Capture channels: Front Left - Front Right
 Limits: Capture 0 - 46
 Front Left: Capture 46 [100%] [30.00dB] [on]
 Front Right: Capture 46 [100%] [30.00dB] [on]
Simple mixer control 'Capture',1
 Capabilities: cvolume cswitch
 Capture channels: Front Left - Front Right
 Limits: Capture 0 - 46
 Front Left: Capture 44 [96%] [28.00dB] [on]
 Front Right: Capture 44 [96%] [28.00dB] [on]
Simple mixer control 'Capture',2
 Capabilities: cvolume cswitch
 Capture channels: Front Left - Front Right
 Limits: Capture 0 - 46
 Front Left: Capture 44 [96%] [28.00dB] [on]
 Front Right: Capture 44 [96%] [28.00dB] [on]
Simple mixer control 'Channel Mode',0
 Capabilities: enum
 Items: '6ch' '8ch'
 Item0: '6ch'
Simple mixer control 'Digital',0
 Capabilities: cvolume
 Capture channels: Front Left - Front Right
 Limits: Capture 0 - 120
 Front Left: Capture 60 [50%] [0.00dB]
 Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Input Source',0
 Capabilities: cenum
 Items: 'Mic' 'Front Mic' 'Line' 'CD'
 Item0: 'Mic'
Simple mixer control 'Input Source',1
 Capabilities: cenum
 Items: 'Mic' 'Front Mic' 'Line' 'CD'
 Item0: 'Mic'
Simple mixer control 'Input Source',2
 Capabilities: cenum
 Items: 'Mic' 'Front Mic' 'Line' 'CD'
 Item0: 'Mic'

/sbin/lsmod | grep snd
===================
snd_hda_codec_atihdmi     4128  1 
snd_hda_codec_realtek   260900  1 
snd_seq_dummy           3236  0 
snd_seq_oss            33696  0 
snd_hda_intel          29480  2 
snd_seq_midi_event      8352  1 snd_seq_oss
snd_seq                58240  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          8020  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_hda_codec          78272  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
snd_pcm_oss            43520  0 
snd_hwdep               8712  1 snd_hda_codec
snd_pcm                90216  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              25008  2 snd_seq,snd_pcm
snd_mixer_oss          16800  1 snd_pcm_oss
snd                    72520  15 snd_hda_codec_realtek,snd_seq_oss,snd_hda_intel,snd_seq,snd_seq_device,snd_hda_c
odec,snd_pcm_oss,snd_hwdep,snd_pcm,snd_timer,snd_mixer_oss
soundcore               8608  1 snd
snd_page_alloc         10544  2 snd_hda_intel,snd_pcm

 

Thanks.

 

 

[moved from Software by spinynorman]

Share this post


Link to post
Share on other sites

Likely the chip is identified as the wrong model (they are quite a few which are using the snd-hda-intel module).

See here:

http://my.opera.com/pacho/blog/show.dml/3290753

If you don't find an answer there, an idea would be switching to OSS v.4, which generally has less issues and offers better sound quality, although it does have its own quirks with certain applications and hardware (namely MIDI and the laptop's power management features).

Share this post


Link to post
Share on other sites

Thanks scarecrow. I tried your suggestion but MCC's SoundDrake doesn't offer me to use any driver other than snd_hda_intel. The OSS v.4 was not even in my list of applicable drivers (from Advanced menu).

 

After going to Pacho Ramos's page I tried looking for alternate CODEC. Mine is Realtek ALC889A by default and this is not there in the list of alternate CODECs that he linked to.

 

I next verified that the PCI DevId of my sound dev (0x3A3E) is in the list of supported devs in snd_hda_intel source code. What surprised me is that there are at least two versions of this soundcard on ICH10: 3A3E and 3A6E. The 3A6E I guess is Intel's unmodified stuff but the 3A3E is Gigabyte special! Its sub-vendorId is hardcoded to Gigabyte. I may be wrong but it is possible that the behavior between the two can be subtly different. Hopefully the snd_hda_intel can take care of all these.

 

In the end, I submitted a bug report following Mr. Ramos' format.

 

Regards.

Share this post


Link to post
Share on other sites

Well, the sound experts suspect that Mandriva sound drivers may not completely support the Realtek ALC889A soundchip. (Ref Bug# 51440). The motherboard is a relatively new one: Gigabyte GA-EP45-UD3R. And the sad part is that the Line-in works in the same setup with Gigabyte drivers in windoze xp sp2.

Thanks.

Share this post


Link to post
Share on other sites

I do not have codec#0. It is codec#2 for me. Here is the info..

 

[rcomix@localhost ~]$ 
[rcomix@localhost ~]$ l /proc/asound/card0
total 0
dr-xr-xr-x 7 root root 0 2009-06-10 16:59 ./
dr-xr-xr-x 6 root root 0 2009-06-10 16:59 ../
-r--r--r-- 1 root root 0 2009-06-10 16:59 codec#2
-r--r--r-- 1 root root 0 2009-06-10 16:59 id
-rw-r--r-- 1 root root 0 2009-06-10 16:59 oss_mixer
dr-xr-xr-x 3 root root 0 2009-06-10 16:59 pcm0c/
dr-xr-xr-x 3 root root 0 2009-06-10 16:59 pcm0p/
dr-xr-xr-x 3 root root 0 2009-06-10 16:59 pcm1c/
dr-xr-xr-x 3 root root 0 2009-06-10 16:59 pcm1p/
dr-xr-xr-x 4 root root 0 2009-06-10 16:59 pcm2c/
[rcomix@localhost ~]$ 
[rcomix@localhost ~]$ 
[rcomix@localhost ~]$ head /proc/asound/card0/codec#2 
Codec: Realtek ALC889A
Address: 2
Vendor Id: 0x10ec0885
Subsystem Id: 0x1458a102
Revision Id: 0x100101
No Modem Function Group found
Default PCM:
   rates [0x560]: 44100 48000 96000 192000
   bits [0xe]: 16 20 24
   formats [0x1]: PCM
[rcomix@localhost ~]$ 
[rcomix@localhost ~]$ l /proc/asound
total 0
dr-xr-xr-x   6 root root 0 2009-06-10 17:06 ./
dr-xr-xr-x   7 root root 0 2009-06-10 17:06 card0/
dr-xr-xr-x   3 root root 0 2009-06-10 17:06 card1/
-r--r--r--   1 root root 0 2009-06-10 17:06 cards
-r--r--r--   1 root root 0 2009-06-10 17:06 devices
lrwxrwxrwx   1 root root 5 2009-06-10 17:06 HDMI -> card1/
-r--r--r--   1 root root 0 2009-06-10 17:06 hwdep
lrwxrwxrwx   1 root root 5 2009-06-10 17:06 Intel -> card0/
-r--r--r--   1 root root 0 2009-06-10 17:06 modules
dr-xr-xr-x   2 root root 0 2009-06-10 17:06 oss/
-r--r--r--   1 root root 0 2009-06-10 17:06 pcm
dr-xr-xr-x   2 root root 0 2009-06-10 17:06 seq/
-r--r--r--   1 root root 0 2009-06-10 17:06 timers
-r--r--r--   1 root root 0 2009-06-10 17:06 version
dr-xr-xr-x 154 root root 0 2009-06-10 10:50 ../
[rcomix@localhost ~]$ 
[rcomix@localhost ~]$ 
[rcomix@localhost ~]$ cat /proc/asound/cards
0 [intel          ]: HDA-Intel - HDA Intel
                     HDA Intel at 0xed200000 irq 22
1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                     HDA ATI HDMI at 0xec010000 irq 17
[rcomix@localhost ~]$ cat /proc/asound/modules 
0 snd_hda_intel
1 snd_hda_intel
[rcomix@localhost ~]$ 
[rcomix@localhost ~]$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.18a.
[rcomix@localhost ~]$ 
[rcomix@localhost ~]$ 

 

Looks like the patch you pointed to will correctly identify the ALC889A and emit KERN_INFO that I can check. Shall wait for your confirmation however. :)

Share this post


Link to post
Share on other sites

Yes, the patch takes care of the problem with your revision of the ALC889A codec.

However, this isn't included in the latest alsa 1.0.20... you have to pick from

1. waiting for alsa 1.0.21

2. building yourself alsa from git

Both these solutions may break PulseAudio, unless you rebuild that one as well, I have to warn you.

 

The final fix, according to the alsa mailing list, will be when kernel 2.6.31 is out, which will take a few weeks (2.6.30 stable was released fairly recently).

Regards.

Share this post


Link to post
Share on other sites

Thanks for the details. I would rather wait for 2.6.31 kernel to do the tape transfer project instead of jeopardizing what I already have! Kudos to scarecrow for finding the root problem and the solution.

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...