View previous topic :: View next topic |
Author |
Message |
joe_piskor n00b
Joined: 20 Nov 2005 Posts: 20 Location: rota, spain
|
Posted: Tue Dec 18, 2007 11:53 am Post subject: alsa/snd-hda-intel no line-in with sp/dif out (6-channel ok) |
|
|
Hi all -
A weird problem here with Intel audio (ALC882) on my Asus P5WD2-Premium Pentium-D system:
I am using the alsa drivers (not kernel) and recently added a 5.1 amplifier to my system. I originally set it up to use the discrete 5.1 output from the mobo, and everything works as expected: xine, mplayer, cmus, kaffeine (DVB-S), and tvtime/kdetv/xdtv. The terrestrial tv apps drive their audio out of the Pinnacle PCTV card to line-in on the motherboard. The line-level slider is present in the mixer and works as expected. Life is good.
I finally decided to go optical between the motherboard and amplifier and it works just fine for everything except for the tv-watching apps that send their audio to the mobo line-in - no audio whatsoever.
I'm confused - and apologize for not posting any config info - I'm at work and not in front of my system. I do roughly weekly system updates (~x86) and am pretty much ahead of the power curve on everything.
I have played with the alsa options in modules.conf/alsa (if I remember the filename correctly) and am using the 6stack-dig model for the ALC882 chipset as determined by help found in other threads.
Any ideas? (One that just occurred to me would be to pipe another audio source into the line-in on the mobo while in optical mode on the receiver to see if it's driver related or app related...)
Thanks,
Joe _________________ Pure Gentoo Goodness
ASUS P5WD2 - 3.6GHz Pentium D (O/C) - 4Gb RAM
XFX nVIDIA 8600GTS 256Mb; Technisat SkyStar2 DVB
AverMedia AverTV
-----------------------------------------------------------
Acer 6930G Laptop
Last edited by joe_piskor on Tue Dec 18, 2007 7:06 pm; edited 1 time in total |
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Tue Dec 18, 2007 6:53 pm Post subject: |
|
|
I have your same problem
my motherboard is ASUS P5GD2-X with built-in Chip C-Media CMI9880 , hda-intel
Code: | Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03) |
What i can do ? all is perfect except line-in (mic i don't know)
I need it, because i have a bt878 tv card...
Here my /etc/modules.d/alsa
Code: |
# ALSA portion snd-hda-intel
alias char-major-116 snd
alias snd-card-0 snd-hda-intel
alias snd-card-1 snd-cmipci
# module options should go here
alias snd-card-2 snd-bt87x
options snd-hda-intel model=auto
options snd-cmipci id="first" mpu_port=0x330
options snd-bt87x index=1 load_all
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
# card #1
# OSS/Free portion - card #1
alias sound-slot-0 snd-card-0
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
# OSS/Free portion - card #2 (cmipci)
alias sound-slot-1 snd-card-1
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
# OSS/Free portion - card #3 (bt87x)
alias sound-slot-1 snd-card-1
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/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
|
i think that the line-in can be a line-out too... should be this the problem ? _________________ C. |
|
Back to top |
|
|
joe_piskor n00b
Joined: 20 Nov 2005 Posts: 20 Location: rota, spain
|
Posted: Tue Dec 18, 2007 7:04 pm Post subject: |
|
|
Ok -
I tested the audio output of the TV card and verified that it is working in either case - pretty much what I expected... _________________ Pure Gentoo Goodness
ASUS P5WD2 - 3.6GHz Pentium D (O/C) - 4Gb RAM
XFX nVIDIA 8600GTS 256Mb; Technisat SkyStar2 DVB
AverMedia AverTV
-----------------------------------------------------------
Acer 6930G Laptop |
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Tue Dec 18, 2007 7:11 pm Post subject: |
|
|
joe_piskor wrote: | Ok -
I tested the audio output of the TV card and verified that it is working in either case - pretty much what I expected... |
yes... the tv-card is workinh to me too... Line-in jack is broken
EDIT 1: putting the volume at maximum on my external amplifier... i can hear something...
WHAT CAN BE?? aslamixer has all at maximum value !! _________________ C. |
|
Back to top |
|
|
jnh n00b
Joined: 06 Jan 2003 Posts: 13
|
Posted: Wed Dec 19, 2007 6:50 am Post subject: Digital outputs won't carry analog sources |
|
|
This is by design. With every soundcard I've worked with, the SP-DIF out (optical / coax digital-out, aka IEC-958) comes directly from the PCM synthesizer, bypassing the mixer and all analog sources. This is one reason it's so clean and noise-free. Notice that your volume control sliders probably have no effect on it as well, apart from mute/unmute.
As for audio from the TV card, first check to see whether your card provides a way of extracting this digitally, directly over the PCI bus. My cx88-based tuner does, but needs a separate driver (cx88_alsa):
Code: |
$ cat /proc/asound/cards
0 [CK8S ]: NFORCE - NVidia CK8S
NVidia CK8S with ALC655 at irq 17
1 [CX8801 ]: CX88x - Conexant CX8801 <-- the TV card
Conexant CX8801 at 0xf8000000
|
I know the bt878 provides a similar feature. With the driver loaded, TV audio can be heard by digitally looping it back to your main soundcard. This works for mine:
Code: |
arecord -D hw:1,0 -r 48000 -c 2 -f S16_LE -B 100 | aplay -B 100
|
In case the TV card can't sample its own sound, then keep the line-in connected and have your main soundcard record and play back from itself, after setting sources & levels as needed:
Code: |
arecord -D hw:0,0 -r 48000 -c 2 -f S16_LE | aplay
|
You may need to play with the buffer sizes a bit, to avoid sound interruptions when your system gets busy (too big of a buffer may result in lip-sync issues, though).
Some soundcards may provide a toggle to directly loop analog out the SP-DIF optical port, without having to involve the CPU.
This control on mine looks promising, but doesn't actually work:
Code: |
$ amixer cget numid=40
numid=40,iface=MIXER,name='IEC958 Playback Source'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 'PCM'
; Item #1 'Analog In' <-- try setting this
; Item #2 'IEC958 In'
: values=0
|
|
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Wed Dec 19, 2007 1:34 pm Post subject: Re: Digital outputs won't carry analog sources |
|
|
jnh wrote: | ...
Some soundcards may provide a toggle to directly loop analog out the SP-DIF optical port, without having to involve the CPU.
This control on mine looks promising, but doesn't actually work:
Code: |
$ amixer cget numid=40
numid=40,iface=MIXER,name='IEC958 Playback Source'
; type=ENUMERATED,access=rw------,values=1,items=3
; Item #0 'PCM'
; Item #1 'Analog In' <-- try setting this
; Item #2 'IEC958 In'
: values=0
|
|
I don't have this feature... i have this one :
Code: | amixer cget numid=7
numid=7,iface=MIXER,name='Input Source',index=1
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Front Mic'
; Item #1 'Rear Mic'
; Item #2 'Line'
; Item #3 'CD'
: values=2
|
You say that my line-in is for a digital line? I don't want to install windozz to try it !!! HAAAAAAAAAAAAA
P.S. it seems to be a problem like this _________________ C. |
|
Back to top |
|
|
jnh n00b
Joined: 06 Jan 2003 Posts: 13
|
Posted: Wed Dec 19, 2007 1:47 pm Post subject: Re: Digital outputs won't carry analog sources |
|
|
CarloJekko wrote: |
I don't have this feature... i have this one :
Code: | amixer cget numid=7
numid=7,iface=MIXER,name='Input Source',index=1
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Front Mic'
; Item #1 'Rear Mic'
; Item #2 'Line'
; Item #3 'CD'
: values=2
|
|
This isn't the same thing... I think that just tells it which analog source to record from (called "capture source", numid=26 on mine).
CarloJekko wrote: |
You say that my line-in is for a digital line? I don't want to install windozz to try it !!! HAAAAAAAAAAAAA |
No, line-in is analog. A signal coming into that jack goes to both the PCM capture/digitizer (for recording), and to an analog mixer, which in turn feeds into the analog-out. The mixer doesn't connect to digital-out, though,which means there's no way to directly pass analog audio through. |
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Wed Dec 19, 2007 2:23 pm Post subject: |
|
|
Code: | amixer cget numid=8
numid=8,iface=MIXER,name='Capture Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=30,step=0
: values=30,30
| dBscale-min=0.00dB,step=1.50dB,mute=0
amixer cget numid=9
numid=9,iface=MIXER,name='Capture Volume',index=1
; type=INTEGER,access=rw---R--,values=2,min=0,max=30,step=0
: values=30,30
| dBscale-min=0.00dB,step=1.50dB,mute=0
numid=19,iface=MIXER,name='Digital Capture Volume'
; type=INTEGER,access=rw---RW-,values=2,min=0,max=120,step=0
: values=120,120
| dBscale-min=-30.00dB,step=0.50dB,mute=0
|
I have only these in captue... (from 1 to 20), but i think it's not what you are looking for.... Maybe are the drivers that doesn't fully support this device... _________________ C. |
|
Back to top |
|
|
star882 n00b
Joined: 22 Sep 2007 Posts: 62
|
Posted: Wed Dec 19, 2007 3:40 pm Post subject: |
|
|
Have you tried something like MythTV? MythTV decodes audio in software instead of using the card's onboard decoder. In fact, newer cards don't even have onboard audio decoders. |
|
Back to top |
|
|
|
|
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
|
|