You are not logged in.

#1 2011-03-14 00:05:38

seca
Member
Registered: 2011-03-13
Posts: 4

Sound over HDMI works halfway.[SOLVED]

//After looking around, HDMI only sends the signals to turn down the HDMI connected device. I guess it's as good as it gets...//

Using nVidia GT218 [ION] on Zotac Hd-id11.
NVIDIA Driver Version: 260.19.44
2.6.37-ARCH

//pianobar uses libao. My config, ~/.libao, looks like this and fixed pianobar over hdmi//

default_driver=alsa
dev=hw:1,3

Sound works over HDMI for most of my applications(Flash, Gnome player, Skype) but I have no volume leveler under alsamixer nor does pianobar output to HDMI unless I launch it twice. The error that allows pianobar to work over HDMI is

ao_alsa WARNING: Unable to open surround playback.  Trying default device...

I'm wondering, is there something I'm missing?

//this will have 4 outputs if you don't use sound.conf instead of just one//
What alsamixer looks like on card 1
FluxBB bbcode test


//if you don't use a sound.conf file(see next section) the defaults will probably be hw1,7)//
This plays "Front Center" over HDMI.

$ aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
$ cat /etc/asound.conf 
pcm.!default {
      type plug
      slave.pcm {
              type hw
              card 1
              device 3
      }
 }

//Turns out I didn't have to even make a sound.conf//

$ cat /etc/modprobe.d/sound.conf 
options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2

//snd_hda_codec_realtek is the codec used to replace snd_hda_codec_nvhdmi, make sure it's loaded//

$ lsmod|grep '^snd' | column -t
snd_hda_codec_hdmi     20024   1
snd_hda_codec_realtek  224540  1
snd_seq_dummy          1119    0
snd_seq_oss            25232   0
snd_seq_midi_event     4568    1   snd_seq_oss
snd_seq                41912   5   snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            33950   0
snd_mixer_oss          15366   1   snd_pcm_oss
snd_usb_audio          70888   0
snd_hda_intel          18988   3
snd_usbmidi_lib        15361   1   snd_usb_audio
snd_hda_codec          64796   3   snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              4804    2   snd_usb_audio,snd_hda_codec
snd_pcm                59496   6   snd_hda_codec_hdmi,snd_pcm_oss,snd_usb_audio,snd_hda_intel,snd_hda_codec
snd_timer              15687   2   snd_seq,snd_pcm
snd_rawmidi            15512   1   snd_usbmidi_lib
snd_page_alloc         6021    2   snd_hda_intel,snd_pcm
snd_seq_device         4409    4   snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd                    43987   20  snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_usb_audio,snd_hda_intel,snd_usbmidi_lib,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device
$ ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       80 Mar 13 10:22 by-path
crw-rw----+ 1 root audio 116,  8 Mar 13 10:22 controlC0
crw-rw----+ 1 root audio 116, 11 Mar 13 10:22 controlC1
crw-rw----+ 1 root audio 116,  7 Mar 13 10:22 hwC0D2
crw-rw----+ 1 root audio 116, 10 Mar 13 10:22 hwC1D1
crw-rw----+ 1 root audio 116,  6 Mar 13 10:22 pcmC0D0c
crw-rw----+ 1 root audio 116,  5 Mar 13 19:40 pcmC0D0p
crw-rw----+ 1 root audio 116,  4 Mar 13 10:22 pcmC0D1p
crw-rw----+ 1 root audio 116,  9 Mar 13 19:38 pcmC1D3p
crw-rw----+ 1 root audio 116,  3 Mar 13 10:22 seq
crw-rw----+ 1 root audio 116,  2 Mar 13 10:22 timer

Last edited by seca (2011-03-22 03:43:43)

Offline

#2 2011-03-19 04:53:52

seca
Member
Registered: 2011-03-13
Posts: 4

Re: Sound over HDMI works halfway.[SOLVED]

I found out that pianobar has it's own sound config but I would still like to control the volume of my hdmi signal. Is this possible or a pitfall of using audio over hdmi?

Offline

#3 2011-05-06 18:49:11

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Sound over HDMI works halfway.[SOLVED]

I am also having this problem... I get this error when I play certain songs in pianobar:

ao_alsa WARNING: Unable to open surround playback.  Trying default device...

I am not sure how to fix this

Offline

Board footer

Powered by FluxBB