Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help! Only left channel on capture ALSA Line In. [Resolved?]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Wed Jun 07, 2006 6:34 pm    Post subject: Help! Only left channel on capture ALSA Line In. [Resolved?] Reply with quote

This is very perplexing. I have nForce4 MoBo with Intel8x0 ALSA driver.

I pipe my XM Radio output to this card's line input. The output goes to my Kloss Model 88. When the radio is playing through the sound card like this, it comes out nicely, with both channels.

However, anytime I try to capture anything through the line in, I get only the left channel. The right channel seems to be muted.

Code:
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 11 [73%] [on]
  Front Right: Capture 11 [73%] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 22 [71%] [on] Capture [on]
  Front Right: Playback 22 [71%] [on] Capture [on]


So the mixer is setup properly.

Sound devices on this machine:
ALSA card #0 - snd-intel8x0 (onboard nForce4 audio -- the problem one)
ALSA card #1 - snd_ice1712 (M-Audio Audiophiile 2496)
ALSA card #2 - snd_audio_usb (Logitech USB headset)
PVR-250 TV capture card

All the other devices work fine, as far as I can tell.

I first thought that this no right channel was a problem with the sound card, but both channels do come through the wires to the radio, so that's not it. It is definitely a capture problem. Also, the problem occurs in more than one application. SND, Rezound, and the standard Gnome Sound Recorder.

I do *NOT* use ESD. I am running Gnome on Enlightenment, so I'm also not using Arts.

I install ALSA via the "alsa-driver" emerge (which allows me to control which sound card is which on loading).

Code:
media-sound/alsa-driver-1.0.10-r2  -debug -doc +oss


My alsa module config:
Code:
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $

alias char-major-116 snd
alias char-major-14 soundcore

# Set this to the correct number of cards.
options snd major=116 cards_limit=3

# Card #0 -- Onboard nForce4 Intel 8x0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/dsp0 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-card-0
alias sound-slot-0 snd-slot-0

# Card #1 -- M-Audio Audiophile 2496
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss

alias /dev/dsp1 snd-pcm-oss

alias snd-card-1 snd-ice1712
alias sound-slot-1 snd-card-1
alias sound-slot-1 snd-slot-1

# Card #2 -- Logitech USB Headset
alias sound-service-2-0 snd-mixer-oss
alias sound-service-2-3 snd-pcm-oss
alias sound-service-2-12 snd-pcm-oss

alias /dev/dsp2 snd-pcm-oss

alias snd-card-2 snd-usb-audio
alias sound-slot-2 snd-card-2
alias sound-slot-2 snd-slot-2


My .asoundrc:
Code:
pcm.intel8x0 {
  type hw
  card 0
}

ctl.intel8x0 {
  type hw
  card 0
}

pcm.ice1712 {
  type hw
  card 1
}

ctl.ice1712 {
  type hw
  card 1
}

pcm.usb-audio {
  type hw
  card 2
}

ctl.usb-audio {
  type hw
  card 2
}

ctl.maudio {
  type hw
  card 1
}

pcm.maudio {
  type plug
  slave.pcm "hw:1,0"
}

pcm.apout {
  type plug
  ttable.1.0 1
  ttable.1.1 1
  slave.pcm ice1712
}


What's going on here? Is there a bug in the driver?
How do I fix this?
_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case


Last edited by longship on Sat Jun 10, 2006 1:45 am; edited 2 times in total
Back to top
View user's profile Send private message
GoofballJM1
Guru
Guru


Joined: 22 Mar 2004
Posts: 392
Location: Denver, CO USA

PostPosted: Wed Jun 07, 2006 7:44 pm    Post subject: Reply with quote

Just a thought, but are you running 2 channels into your line input on your sound card? If it's 1/8 jack, makes sure you have two stripes on the end instead of one. If you have done this, feel free to ignore my suggestion.

Also, you shouldn't need to install alsa-drivers if you are running a 2.6 kernel. Alsa drivers are built into the kernel.
_________________
"Great spirits have often encountered violent opposition from weak minds." - Albert Einstein
Back to top
View user's profile Send private message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Wed Jun 07, 2006 8:06 pm    Post subject: Reply with quote

GoofballJM1 wrote:
Just a thought, but are you running 2 channels into your line input on your sound card? If it's 1/8 jack, makes sure you have two stripes on the end instead of one. If you have done this, feel free to ignore my suggestion.

Also, you shouldn't need to install alsa-drivers if you are running a 2.6 kernel. Alsa drivers are built into the kernel.


Both channels are passing through to my speakers, in stereo, so the plugs and wires are working fine.

Concerning alsa-drivers... I have *THREE* sound devices on this machine. I find alsa-driver a better solution for because I do not have to recompile the kernel every time I change things. I only update /etc/module.d/alsa and reload the drivers.

What makes you think that compiling sound into the kernel will fix my problems?

I want my sound cards in a specific order, but I suppose I can configure the kernel to load everything as modules and my /etc/module.d/alsa will take care of things.

Isn't the alsa-driver emerge newer than the kernel ALSA? Or, could that be part of my problem?

I need some resolution here before I go stark raving mad (short trip ;-).
_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case
Back to top
View user's profile Send private message
GoofballJM1
Guru
Guru


Joined: 22 Mar 2004
Posts: 392
Location: Denver, CO USA

PostPosted: Wed Jun 07, 2006 8:23 pm    Post subject: Reply with quote

longship wrote:

What makes you think that compiling sound into the kernel will fix my problems?

I want my sound cards in a specific order, but I suppose I can configure the kernel to load everything as modules and my /etc/module.d/alsa will take care of things.

Isn't the alsa-driver emerge newer than the kernel ALSA? Or, could that be part of my problem?

I need some resolution here before I go stark raving mad (short trip ;-).


All alsa-driver does is provide kernel modules for your soundcards. Using the kernel to load your modules will do the same thing as emerging alsa-driver (technically).
_________________
"Great spirits have often encountered violent opposition from weak minds." - Albert Einstein
Back to top
View user's profile Send private message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Wed Jun 07, 2006 8:51 pm    Post subject: Reply with quote

GoofballJM1 wrote:
longship wrote:

What makes you think that compiling sound into the kernel will fix my problems?

I want my sound cards in a specific order, but I suppose I can configure the kernel to load everything as modules and my /etc/module.d/alsa will take care of things.

Isn't the alsa-driver emerge newer than the kernel ALSA? Or, could that be part of my problem?

I need some resolution here before I go stark raving mad (short trip ;-).


All alsa-driver does is provide kernel modules for your soundcards. Using the kernel to load your modules will do the same thing as emerging alsa-driver (technically).


Except that the version of the alsa drivers will be the one that comes with the kernel, and not necessarily the latest version. Is this not an important distinction?

The issue here is NOT the method by which I compile ALSA, it's the fact that the capture doesn't work on one of my cards.

Question: Are you convinced that an older ALSA in the kernel will result in the Intel8x0 capture working?

It seems to me that the problem is a configuration problem, and not necessarily a driver problem. However, I have taken the trouble to update alsa-driver to 1.0.11-rc2 which is masked in Portage. The results are identical. Both channels play fine through the card. However, on capture, only the left channel has any level. All my mixer's capture parameters are all properly setup.

Note: I am not a newbie on this stuff. I just do not understand why stereo capture is not working on this one card.

Please look at my configuration files in my original post and help me see what I've done wrong.

BTW, my kernel is: Linux version 2.6.15-gentoo-r7 (root@magritte) (gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #7 SMP PREEMPT
_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case
Back to top
View user's profile Send private message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Thu Jun 08, 2006 4:26 am    Post subject: Reply with quote

Okay! I updated my kernel to 2.6.16-r9 and compiled the damned sound modules with the kernel instead of emerging "alsa-driver".

All that work and I get the same damned thing.

The right channel of my onboard nForce4 audio will not capture, however the Line In passes stereo through the card just fine. I can listen to stereo PCM stuff just fine. Everything works perfectly except recording.

Now I know that this is one of two things:

1. Something is configured wrong with this card.
2. There is a bug in the ALSA driver.
3. The audio device on my motherboard is defective.... one of three things...

I highly suspect that my .asoundrc needs to be set up to fix this.

Here's my lspci -v entry. Somebody with this audio card give me a hand, please.
Code:
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
        Subsystem: ASUSTeK Computer Inc. K8N4-E Mainboard
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 17
        I/O ports at dc00 [size=256]
        I/O ports at e000 [size=256]
        Memory at c7103000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2


What in the flaming Hell is happening here?
Where do I go from here?

HELP!!!
_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case
Back to top
View user's profile Send private message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Sat Jun 10, 2006 1:44 am    Post subject: Reply with quote

I have no damned idea how this was resolved. But I can finally capture both channels on my Intel8x0 onboard audio.

I have been playing around with my system for a couple of days, switching to new kernel, 2.6.16-r9, which did not resolve the issue and added many more issues. So I rebooted back into the old one 2.6.15-r7 and began an emerge --sync and emerge --deep world. This is still in process--I take things a step or two at a time on these things--however, all of a sudden, I test Rezound again. Both channels are mysteriously present.

I have not changed a single thing in my configuration at the module or the .asoundrc level. Things just started working again. I *did* power down momentarily today. Maybe that fixed things.

BTW, I am using alsa-driver-1.0.11, and have not compiled ALSA into the kernel.

-----Twilight Zonish music-------
_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case
Back to top
View user's profile Send private message
gustafson
Guru
Guru


Joined: 12 Aug 2004
Posts: 430

PostPosted: Mon Jul 03, 2006 3:39 pm    Post subject: Reply with quote

I had trouble with the same module (intel8x0) and had to downgrade alsa-utils just to get sound out of the card. It worked fine with alsa-utils-1.0.10.

https://forums.gentoo.org/viewtopic-t-476766-highlight-.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum