I am trying to connect audio through HDMI on a config. aplay - l gives: **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog] Subdevices: 2/2 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 So I change my alsa.conf file to: ; To set which ALSA device to use, change this parameter input_device=hw:0,3 output_device=hw:0,3 When starting asterisk I get: ^[[1;30;40m == ^[[0;37;40mParsing '/etc/asterisk/alsa.conf': Found [Jan 10 18:56:53] ^[[31;40mERROR^[[0;37;40m[23546]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m366^[[0;37;40m ^[[1;37;40malsa_card_init^[[0;37;40m: snd_pcm_open failed: No [Jan 10 18:56:53] ^[[31;40mERROR^[[0;37;40m[23546]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m385^[[0;37;40m ^[[1;37;40malsa_card_init^[[0;37;40m: set_channels failed: Inv [Jan 10 18:56:53] ^[[1;31;40mWARNING^[[0;37;40m[23546]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m390^[[0;37;40m ^[[1;37;40malsa_card_init^[[0;37;40m: Rate not correct, re [Jan 10 18:56:53] ^[[31;40mERROR^[[0;37;40m[23546]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m484^[[0;37;40m ^[[1;37;40msoundcard_init^[[0;37;40m: Problem opening alsa I/O ^[[1;30;40m == ^[[0;37;40mNo sound card detected -- console channel will be unavailable ^[[1;30;40m == ^[[0;37;40mTurn off ALSA support by adding 'noload=chan_alsa.so' in /etc/asterisk/modules.conf How do I tell it to use HDMI? If I comment out the input_device and output_device in alsa.conf (the default), and I change the /etc/asound.conf to point to device 3. I get this error: ^[[1;30;40m == ^[[0;37;40mParsing '/etc/asterisk/alsa.conf': Found [Jan 10 19:01:05] ^[[31;40mERROR^[[0;37;40m[23676]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m366^[[0;37;40m ^[[1;37;40malsa_card_init^[[0;37;40m: snd_pcm_open failed: No [Jan 10 19:01:05] ^[[31;40mERROR^[[0;37;40m[23676]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m484^[[0;37;40m ^[[1;37;40msoundcard_init^[[0;37;40m: Problem opening alsa I/O ^[[1;30;40m == ^[[0;37;40mNo sound card detected -- console channel will be unavailable Any ideas? Jerry
Jerry Geis wrote:> I am trying to connect audio through HDMI on a config. > aplay -l gives: > **** List of PLAYBACK Hardware Devices **** > card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog] > Subdevices: 2/2 > Subdevice #0: subdevice #0 > Subdevice #1: subdevice #1 > card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > > > So I change my alsa.conf file to: > ; To set which ALSA device to use, change this parameter > input_device=hw:0,3 > output_device=hw:0,3 ><snip> HDMI only carries audio in one direction, so I'm guessing trying to open hw:0,3 for audio input is failing. What does 'arecord -l' show? your input_device should come from that list. -- Paul
> > erry Geis wrote: > >/ I am trying to connect audio through HDMI on a config. > />/ aplay -l gives: > />/ **** List of PLAYBACK Hardware Devices **** > />/ card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog] > />/ Subdevices: 2/2 > />/ Subdevice #0: subdevice #0 > />/ Subdevice #1: subdevice #1 > />/ card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI] > />/ Subdevices: 1/1 > />/ Subdevice #0: subdevice #0 > />/ > />/ > />/ So I change my alsa.conf file to: > />/ ; To set which ALSA device to use, change this parameter > />/ input_device=hw:0,3 > />/ output_device=hw:0,3 > />/ > /<snip> > > HDMI only carries audio in one direction, so I'm guessing trying to open > hw:0,3 for audio input is failing. > > What does 'arecord -l' show? your input_device should come from that list. > >Paul, **** List of CAPTURE Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog] Subdevices: 2/2 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 I think your correct from the above. however, what do I do about it. I tried setting: input_device=hw:0,0 output_device=hw:0,3 and I still get errors: ^[[1;30;40m == ^[[0;37;40mParsing '/etc/asterisk/alsa.conf': Found [Jan 11 15:15:51] ^[[31;40mERROR^[[0;37;40m[19093]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m385^[[0;37;40m ^[[1;37;40malsa_card_init^[[0;37;40m: set_channels failed: Invalid argument [Jan 11 15:15:51] ^[[1;31;40mWARNING^[[0;37;40m[19093]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m390^[[0;37;40m ^[[1;37;40malsa_card_init^[[0;37;40m: Rate not correct, requested 8000, got 44100 [Jan 11 15:15:51] ^[[31;40mERROR^[[0;37;40m[19093]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m385^[[0;37;40m ^[[1;37;40malsa_card_init^[[0;37;40m: set_channels failed: Invalid argument [Jan 11 15:15:51] ^[[1;31;40mWARNING^[[0;37;40m[19093]: ^[[1;37;40mchan_alsa.c^[[0;37;40m:^[[1;37;40m390^[[0;37;40m ^[[1;37;40malsa_card_init^[[0;37;40m: Rate not correct, requested 8000, got 48000 ^[[1;30;40m == ^[[0;37;40mRegistered channel type 'Console' (ALSA Console Channel Driver) How would I correctly set this up? I dont need audio in at all. Just out. jerry