LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   HDMI and onboard microphone (https://www.linuxquestions.org/questions/linux-hardware-18/hdmi-and-onboard-microphone-695418/)

drivesoslow 01-06-2009 03:17 PM

HDMI and onboard microphone
 
I'm trying to use by system for Karaoke and I have a issue with my sound setup. I'm using audio over HDMI through my ATI video card to my TV, and I am using the on board sound card for the microphone. When I do this there is a decent delay (1/4-1/2 a second) from what goes in the mic to what comes out over the TV. Does anyone know a way to remedy this?

Here is my .asoundrc
Code:

pcm.!default {
        type asym
        playback.pcm {
                type plug
                slave.pcm "hw:1,3"
        }

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


GlennsPref 01-08-2009 01:07 AM

Hi, Welcome to LQ!

To get fast sound from a pc, you'll have to get a dedicated sound card.

There will be a latency with OnBoard sound chips, that will be hard to overcome.

A cheap pci card will reduce the delay significantly, but there will still be a small delay.

A more expensive but profoundly better option is to get a firewire or usb solution,

where you can get very fast (low times) latency, (the time it takes to get a signal from the input to the output)

And being outside the box (pc) there's all of that electronic noise (rfi) from the pc the sound circuit won't have to deal with

requiring less cmr (common mode rejection ratio, for amplifier circuits) and less distortions just from the extra shielding.

There may be other ways but I haven't found them easy.

A better option would be to use the pc as the jukebox and get a mic preamp (small mixer) and use that to get the mic into the TV.

You may even be able to make one that would plug into the tv rca connectors.

With a small mixer, Plug the pc and the mic into the mixer and that into the TV. Most small mixers have mic preamp/s

I have a Behringer xenyx 802 mixer. Under $100 (au). 2 mic's, 2 stero lines, tape and fx-send and str aux returns too.

You've picked one of my favourite topics, This post is getting long.....

I hope this gives you some indications.

Cheers, Glenn :)

Electro 01-08-2009 01:57 AM

Capturing the audio from the microphone and then playing it back through another device is causing the delay. If the ALSA module for your sound card is written differently, it will minimize the delay. If your sound card can redirect the microphone to another digital output internally and with out letting the computer to record and play it back, it will then be near real time. You may then need a device to combine VGA or DVI with digital audio to HDMI converter if another digital output works. The following device should work.

DVI-I and Digital Audio to HDMI
http://www.gefen.com/kvm/dproduct.jsp?prod_id=3570

Buying a dedicated sound card will not fix your problem. The problem you have is AMD motherboard chipsets 780G or 790GX shows up as two sound cards to Linux.

GlennsPref, there is no such thing as fast sound. There is low latency for sound recording, but kernel developers does not care for low latency. At this time only jack can provide near low latency in Linux. The problem that drivesoslow has is AMD motherboard chipsets like the 780G and 790GX shows up as two sound cards. The sound is recording from one sound card and playing back on the other sound card. After fooling around with 780G chipset, HDMI is only good for playing back and not for real time duplexing. Not all external sound cards works reliable and stable in Linux.

GlennsPref 01-09-2009 08:16 AM

You're absolutely right Electro, I lept over the first hill.

alsa is the first place to start configuring.

I still feel it won't be fast enough.

"Fast sound" as in "getting it through your pc" to keep (my main objective).

I meant it metaphorically any way, we're often dealing with different languages, so I try to be descriptive, not miss leading.

I feel I could have dealt with any questions regarding My response.

I do have some experience, But do not compete. I have a lot to learn about GNU/Linux, but at the time I had lept to that mechanical conclusion.

Cheers, And thanks for the tip.

Regards Glenn

drivesoslow 01-10-2009 01:27 AM

Quote:

Originally Posted by Electro (Post 3400791)
Capturing the audio from the microphone and then playing it back through another device is causing the delay. If the ALSA module for your sound card is written differently, it will minimize the delay. If your sound card can redirect the microphone to another digital output internally and with out letting the computer to record and play it back, it will then be near real time. You may then need a device to combine VGA or DVI with digital audio to HDMI converter if another digital output works. The following device should work.

DVI-I and Digital Audio to HDMI
http://www.gefen.com/kvm/dproduct.jsp?prod_id=3570

Buying a dedicated sound card will not fix your problem. The problem you have is AMD motherboard chipsets 780G or 790GX shows up as two sound cards to Linux.

GlennsPref, there is no such thing as fast sound. There is low latency for sound recording, but kernel developers does not care for low latency. At this time only jack can provide near low latency in Linux. The problem that drivesoslow has is AMD motherboard chipsets like the 780G and 790GX shows up as two sound cards. The sound is recording from one sound card and playing back on the other sound card. After fooling around with 780G chipset, HDMI is only good for playing back and not for real time duplexing. Not all external sound cards works reliable and stable in Linux.

FYI I am not on a AMD motherboard. It is a Intel chip. I am using two seperate sound cards, one onboard and the other is the HDMI video card.

Electro 01-10-2009 07:56 PM

You did not say it was an on-board sound from Intel. You just said it was an on-board sound. It does not make any difference because Linux sees both the on-board sound and the digital audio through HDMI as two sound cards.

Recording from one sound card and sending it to a different sound card will always have latency that you are experiencing. Again the only way to get around it is use your on-board sound and direct it to either its digital output or line-out. Though if you can hook up a loop cable from the digital audio from your on-board sound to the video card's digital input then you can experience near real time duplexing and with out the need for using the asym plug-in.

Use HDMI interface for media playback, but not for real time duplexing.


All times are GMT -5. The time now is 12:03 AM.