I have Ubuntu 14.04.3 with kernel 3.16.0-48 installed on mini-PC Gigabyte GB-BXBT-2807. The chipset also integrates audio controller Realtek ALC283. I've been struggling to have my audio play over HDMI, with no luck.First of all, I removed PulseAudio and reinstalled ALSA as was recommended in multiple articles on the web:% dpkg -l | grep alsaii  alsa-base  1.0.25+dfsg-0ubuntu4 ...ii  alsa-utils 1.0.27.2-1ubuntu2 ...After reboot all modules seem to be present:% lsmod | grep sndsnd_hda_codec_hdmi     47548  1snd_hda_codec_realtek    77561  1snd_hda_codec_generic    69011  1 snd_hda_codec_realteksnd_hda_intel          30469  0snd_soc_rt5640         93042  0snd_soc_rl6231         13037  1 snd_soc_rt5640snd_hda_controller     30228  1 snd_hda_intelsnd_hda_codec         139719  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controllersnd_hwdep              17698  1 snd_hda_codecsnd_soc_core          200204  1 snd_soc_rt5640snd_compress           19200  1 snd_soc_coresnd_pcm_dmaengine      15172  1 snd_soc_coresnd_pcm               104112  7 snd_soc_rt5640,snd_soc_core,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller,snd_pcm_dmaenginesnd_seq_midi           13564  0snd_seq_midi_event     14899  1 snd_seq_midisnd_rawmidi            30876  1 snd_seq_midisnd_seq                63074  2 snd_seq_midi_event,snd_seq_midisnd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midisnd_timer              29562  2 snd_pcm,snd_seqsnd                    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_compresssoundcore              15047  2 snd,snd_hda_codecsnd_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 #0card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]  Subdevices: 1/1  Subdevice #0: subdevice #0%I also added my account in audio group. Here is a list of PCMs:% aplay -Lnull    Discard all samples (playback) or generate zero samples (capture)default:CARD=PCH    HDA Intel PCH, ALC283 Analog    Default Audio Devicesysdefault:CARD=PCH    HDA Intel PCH, ALC283 Analog    Default Audio Devicefront:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    Front speakerssurround40:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    4.0 Surround output to Front and Rear speakerssurround41:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    4.1 Surround output to Front, Rear and Subwoofer speakerssurround50:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    5.0 Surround output to Front, Center and Rear speakerssurround51:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    5.1 Surround output to Front, Center, Rear and Subwoofer speakerssurround71:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    7.1 Surround output to Front, Center, Side, Rear and Woofer speakershdmi:CARD=PCH,DEV=0    HDA Intel PCH, HDMI 0    HDMI Audio Outputdmix:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    Direct sample mixing devicedmix:CARD=PCH,DEV=3    HDA Intel PCH, HDMI 0    Direct sample mixing devicedsnoop:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    Direct sample snooping devicedsnoop:CARD=PCH,DEV=3    HDA Intel PCH, HDMI 0    Direct sample snooping devicehw:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    Direct hardware device without any conversionshw:CARD=PCH,DEV=3    HDA Intel PCH, HDMI 0    Direct hardware device without any conversionsplughw:CARD=PCH,DEV=0    HDA Intel PCH, ALC283 Analog    Hardware device with all software conversionsplughw:CARD=PCH,DEV=3    HDA Intel PCH, HDMI 0    Hardware device with all software conversions%What happens is that I'm able to play sounds via headset connected to audio jack, however I'm unable to do this via HDMI link hooked to a TV. I tried to run aplay -D for different devices marked as DEV=3 as listed above, but none of them worked. Also, it doesn't work in FireFox.Is there a special configuration to set audio play on HDMI? What else should I try?
ALSA doesn't play on HDMI
linux;ubuntu;audio;alsa;hdmi