Re: [Alsa-user] Microphone + AudioOut to HDMI

2010-01-07 Thread An St
On Wed, Jan 6, 2010 at 3:41 AM, An St vit@gmail.com wrote:
 On Tue, Jan 5, 2010 at 8:59 PM, Jamie Lokier ja...@shareable.org wrote:
 James Shatto wrote:
 On Tue, 5 Jan 2010 01:07:21 +0300
 An St vit@gmail.com wrote:

  Hello!
 
  Please help. I can't get working microphone at HDMI output.

 HDMI audio normally has some sort of limit in place.  For my ATI
 HD4550 video card, the audio has to be transmitted in an AC3 codec(5.1
 surround).  AKA compressed, it will not work with PCM audio which
 might be where your making a connection is giving you trouble.  That
 capability might depend on your graphics card, but that's the quirk of
 mine.  Assuming that your HDMI audio is provided via a graphics card.

 Maybe alsa can handle the AC3 conversion transparently / internally,
 or NOT.  It's seems a bit destined for problems IMO, so I just avoid
 the issue with an RCA cable from a dedicated soundcard.  Fortunately
 my HDTV has a channel with HDMI/DVI input and RCA audio input so
 running that machine on a 42 display is possible.

 If my graphics card does handle PCM audio over HDMI, it's probably
 limited to 2 channels, 48kHz, 16 bit, and all that jazz.  Maybe even
 44.1kHz.  I really haven't checked the specs that recently on it.
 But I only have one receiving device for HDMI audio (HDTV) so it's
 not a priority to explore for me.  Which is kind of ironic since the
 audio device registers and an hda-intel device.  AKA high definition
 audio.  But the limits are listed in the manual.  Not that I've
 looked at it in the past year+.

 Normally it is the HDMI receiving device (i.e. the TV/monitor) which
 determines which audio formats can be sent, and you should be able to
 send any of the major standard compressed formats if the receiving
 device accepts them.

 The EDID data, read from the TV/monitor over DDC, tells the sender
 (i.e. graphics card + drivers + X + apps) what formats it accepts.

 It is very similar to the way EDID tells the sender what video formats
 it accepts.

 -- Jamie


 There is audio at LCD TV from any ALSA-programs, but not from microphone.
 I think it does not a audio format problem.
 Also, I can hear microphone only at anolog output.
 Problem is in forwarding microphone signal to HDMI.




Is it possible send voice from microphone to SPDIF output ?

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Microphone + AudioOut to HDMI

2010-01-05 Thread James Shatto
On Tue, 5 Jan 2010 01:07:21 +0300
An St vit@gmail.com wrote:

 Hello!
 
 Please help. I can't get working microphone at HDMI output.

HDMI audio normally has some sort of limit in place.  For my ATI HD4550 video 
card, the audio has to be transmitted in an AC3 codec(5.1 surround).  AKA 
compressed, it will not work with PCM audio which might be where your making a 
connection is giving you trouble.  That capability might depend on your 
graphics card, but that's the quirk of mine.  Assuming that your HDMI audio is 
provided via a graphics card.  

Maybe alsa can handle the AC3 conversion transparently / internally, or NOT.  
It's seems a bit destined for problems IMO, so I just avoid the issue with an 
RCA cable from a dedicated soundcard.  Fortunately my HDTV has a channel with 
HDMI/DVI input and RCA audio input so running that machine on a 42 display is 
possible.  

If my graphics card does handle PCM audio over HDMI, it's probably limited to 2 
channels, 48kHz, 16 bit, and all that jazz.  Maybe even 44.1kHz.  I really 
haven't checked the specs that recently on it.  But I only have one receiving 
device for HDMI audio (HDTV) so it's not a priority to explore for me.  Which 
is kind of ironic since the audio device registers and an hda-intel device.  
AKA high definition audio.  But the limits are listed in the manual.  Not that 
I've looked at it in the past year+.

HTH,
James

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Microphone + AudioOut to HDMI

2010-01-05 Thread Jamie Lokier
James Shatto wrote:
 On Tue, 5 Jan 2010 01:07:21 +0300
 An St vit@gmail.com wrote:
 
  Hello!
  
  Please help. I can't get working microphone at HDMI output.
 
 HDMI audio normally has some sort of limit in place.  For my ATI
 HD4550 video card, the audio has to be transmitted in an AC3 codec(5.1
 surround).  AKA compressed, it will not work with PCM audio which
 might be where your making a connection is giving you trouble.  That
 capability might depend on your graphics card, but that's the quirk of
 mine.  Assuming that your HDMI audio is provided via a graphics card.
 
 Maybe alsa can handle the AC3 conversion transparently / internally,
 or NOT.  It's seems a bit destined for problems IMO, so I just avoid
 the issue with an RCA cable from a dedicated soundcard.  Fortunately
 my HDTV has a channel with HDMI/DVI input and RCA audio input so
 running that machine on a 42 display is possible.
 
 If my graphics card does handle PCM audio over HDMI, it's probably
 limited to 2 channels, 48kHz, 16 bit, and all that jazz.  Maybe even
 44.1kHz.  I really haven't checked the specs that recently on it.
 But I only have one receiving device for HDMI audio (HDTV) so it's
 not a priority to explore for me.  Which is kind of ironic since the
 audio device registers and an hda-intel device.  AKA high definition
 audio.  But the limits are listed in the manual.  Not that I've
 looked at it in the past year+.

Normally it is the HDMI receiving device (i.e. the TV/monitor) which
determines which audio formats can be sent, and you should be able to
send any of the major standard compressed formats if the receiving
device accepts them.

The EDID data, read from the TV/monitor over DDC, tells the sender
(i.e. graphics card + drivers + X + apps) what formats it accepts.

It is very similar to the way EDID tells the sender what video formats
it accepts.

-- Jamie

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Microphone + AudioOut to HDMI

2010-01-05 Thread An St
On Tue, Jan 5, 2010 at 8:59 PM, Jamie Lokier ja...@shareable.org wrote:
 James Shatto wrote:
 On Tue, 5 Jan 2010 01:07:21 +0300
 An St vit@gmail.com wrote:

  Hello!
 
  Please help. I can't get working microphone at HDMI output.

 HDMI audio normally has some sort of limit in place.  For my ATI
 HD4550 video card, the audio has to be transmitted in an AC3 codec(5.1
 surround).  AKA compressed, it will not work with PCM audio which
 might be where your making a connection is giving you trouble.  That
 capability might depend on your graphics card, but that's the quirk of
 mine.  Assuming that your HDMI audio is provided via a graphics card.

 Maybe alsa can handle the AC3 conversion transparently / internally,
 or NOT.  It's seems a bit destined for problems IMO, so I just avoid
 the issue with an RCA cable from a dedicated soundcard.  Fortunately
 my HDTV has a channel with HDMI/DVI input and RCA audio input so
 running that machine on a 42 display is possible.

 If my graphics card does handle PCM audio over HDMI, it's probably
 limited to 2 channels, 48kHz, 16 bit, and all that jazz.  Maybe even
 44.1kHz.  I really haven't checked the specs that recently on it.
 But I only have one receiving device for HDMI audio (HDTV) so it's
 not a priority to explore for me.  Which is kind of ironic since the
 audio device registers and an hda-intel device.  AKA high definition
 audio.  But the limits are listed in the manual.  Not that I've
 looked at it in the past year+.

 Normally it is the HDMI receiving device (i.e. the TV/monitor) which
 determines which audio formats can be sent, and you should be able to
 send any of the major standard compressed formats if the receiving
 device accepts them.

 The EDID data, read from the TV/monitor over DDC, tells the sender
 (i.e. graphics card + drivers + X + apps) what formats it accepts.

 It is very similar to the way EDID tells the sender what video formats
 it accepts.

 -- Jamie


There is audio at LCD TV from any ALSA-programs, but not from microphone.
I think it does not a audio format problem.
Also, I can hear microphone only at anolog output.
Problem is in forwarding microphone signal to HDMI.

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Microphone + AudioOut to HDMI

2010-01-04 Thread An St
Hello!

Please help. I can't get working microphone at HDMI output.

I have computer: ASRock 330 ION.
1. audio  video translated to LCD TV via HDMI cable.
2. external microphone connected to Mic IN.
3. headphones connected to Line Out (analog).

Sound from MP3/Video players go through HDMI output (hw:0,3) without
any problems.
Voice from microphone I _can_ hear only at analog output (headphones) (hw:0,0).
Please help forward voice from microphone to HDMI.
I have played with `asym', but unsuccessfully.
I want simultaneously sounds from video player and microphone go to output HDMI.

There are two versions `.asoundrc', but no one are forward microphone to HDMI.

Version 1 `.asoundrc'  (simplifed version)

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

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

Version 2 `.asoundrc'

# Dupe output to HDMI  Analog
# pcm.!default plug:both
pcm.!default plug:asymed

pcm.analog {
type hw
card 0
device 0
}

pcm.hd {
type hw
card 0
device 3
}

pcm.dmix_analog {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm analog
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 5120
}
}

pcm.dmix_hd {
type dmix
ipc_key 2048
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm hd
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 5120
}
}

# Two In One
pcm.tio {
type multi

slaves.a.pcm dmix_analog
slaves.a.channels 2

slaves.b.pcm dmix_hd
slaves.b.channels 2

bindings.0.slave a
bindings.0.channel 0

bindings.1.slave a
bindings.1.channel 1

bindings.2.slave b
bindings.2.channel 0

bindings.3.slave b
bindings.3.channel 1
}


pcm.both {
type route;
slave.pcm tio;
slave.channels 4;
ttable.0.0 1;
ttable.1.1 1;
ttable.0.2 1;
ttable.1.3 1;
}

pcm.asymed {
type asym
playback.pcm both
capture.pcm {
type plug
slave.pcm hw:0,0
}
}

Thanks!

System info:

$ uname -a
Linux ion.b12 2.6.30-std-def-alt15 #1 SMP Mon Dec 14 08:45:48 UTC 2009
i686 GNU/Linux

$ lsmod | grep snd
snd_hda_codec_nvhdmi 3020  1
snd_hda_codec_realtek   197616  1
snd_hda_intel  25928  4
snd_hda_codec  75148  3
snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep   7056  1 snd_hda_codec
snd_pcm74096  4 snd_hda_intel,snd_hda_codec
snd_timer  20788  3 snd_pcm
snd58180  10
snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore   7072  1 snd
snd_page_alloc  8852  2 snd_hda_intel,snd_pcm

$ cat /proc/asound/devices
2: : timer
3: [ 0- 3]: digital audio playback
4: [ 0- 2]: digital audio capture
5: [ 0- 1]: digital audio playback
6: [ 0- 0]: digital audio playback
7: [ 0- 0]: digital audio capture
8: [ 0- 3]: hardware dependent
9: [ 0- 0]: hardware dependent
10: [ 0] : control

$ aplay -l
 List of PLAYBACK Hardware Devices 
card 0: NVidia [HDA NVidia], device 0: ALC883 Analog [ALC883 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC883 Digital [ALC883 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 0/1
Subdevice #0: subdevice #0


Mixer settings anywhere UnMute.

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user