Recently I noticed that I had no HDMI audio when running kernels starting from v4.12.0 on an Intel Compute Stick model STK1AW32SC (Cherry Trail).
First I ran the command 'aplay -l' to see I had an HDMI LPE Audio device. In fact I had three:
I then tried playing an audio file on the default device with 'aplay /usr/share/sounds/alsa/Front_Left.wav' which didn't work:
First I ran the command 'aplay -l' to see I had an HDMI LPE Audio device. In fact I had three:
I then tried playing an audio file on the default device with 'aplay /usr/share/sounds/alsa/Front_Left.wav' which didn't work:
So I listed the PCM devices with 'aplay -L':
and tested each PCM in turn:
which confirmed that audio worked on device 2.
As the default sink device is 0:
it needs to be changed by editing '/etc/pulse/default.pa'. I can do this manually:
or write and use a script:
The advantage of the script is that I can make use of it when respinning an ISO with 'isorespin.sh' (using the '-f' option) and automatically fix HDMI audio in the respun ISO for use on this device.
After running the script whilst using Ubuntu 'pulseaudio' needs to be restarted (using 'pulseaudio -k' is sufficient) for the changes to take effect:
Now playing an audio file on the default device with 'aplay /usr/share/sounds/alsa/Front_Left.wav' works together with sound in Chrome and other applications.
Please donate if you find this tip helpful using the following link http://goo.gl/nXWSGf.