Eu tenho o Ubuntu 14.04.3 com o kernel 3.16.0-48 instalado no mini-PC Gigabyte GB-BXBT-2807. O chipset também integra o controlador de áudio Realtek ALC283. Eu tenho lutado para ter meu áudio reproduzido via HDMI, sem sorte.
Primeiro, removi o PulseAudio e reinstalei o ALSA, conforme recomendado em vários artigos na Web:
% dpkg -l | grep alsa
ii alsa-base 1.0.25+dfsg-0ubuntu4 ...
ii alsa-utils 1.0.27.2-1ubuntu2 ...
Após a reinicialização, todos os módulos parecem estar presentes:
% lsmod | grep snd
snd_hda_codec_hdmi 47548 1
snd_hda_codec_realtek 77561 1
snd_hda_codec_generic 69011 1 snd_hda_codec_realtek
snd_hda_intel 30469 0
snd_soc_rt5640 93042 0
snd_soc_rl6231 13037 1 snd_soc_rt5640
snd_hda_controller 30228 1 snd_hda_intel
snd_hda_codec 139719 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 17698 1 snd_hda_codec
snd_soc_core 200204 1 snd_soc_rt5640
snd_compress 19200 1 snd_soc_core
snd_pcm_dmaengine 15172 1 snd_soc_core
snd_pcm 104112 7 snd_soc_rt5640,snd_soc_core,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller,snd_pcm_dmaengine
snd_seq_midi 13564 0
snd_seq_midi_event 14899 1 snd_seq_midi
snd_rawmidi 30876 1 snd_seq_midi
snd_seq 63074 2 snd_seq_midi_event,snd_seq_midi
snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 29562 2 snd_pcm,snd_seq
snd 79468 13 snd_hda_codec_realtek,snd_soc_core,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_compress
soundcore 15047 2 snd,snd_hda_codec
snd_soc_sst_acpi 13007 0
%
% aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
%
Também adicionei minha conta no grupo audio
. Aqui está uma lista de PCMs:
% aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
HDA Intel PCH, ALC283 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC283 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Front speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC283 Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Hardware device with all software conversions
%
O que acontece é que eu sou capaz de reproduzir sons via fone de ouvido conectado ao conector de áudio, mas não consigo fazer isso via link HDMI ligado a uma TV. Eu tentei executar aplay -D
para diferentes dispositivos marcados como DEV = 3, conforme listado acima, mas nenhum deles funcionou. Além disso, não funciona no FireFox.
Existe uma configuração especial para definir a reprodução de áudio em HDMI? O que mais devo tentar?