Linux Sound Card HDMI problems

1.  How can I change the default audio device from command line?

  • Normally Gui of Ubuntu allows you to do that  (System->Preferences->Sound), like the default input/output device and setting the volume.

      If that not works

[crayon-669e1feca834d963221841/]
2. Use The AlsaMixer 

kutayzorlu.com alsamixer HDMI configuration

F1 – Help
F2 – System Information
F6 – Select Sound Card
Esc – Exit the menu

3. Show the all of the sound devices 
[crayon-669e1feca8357286681061/]
[crayon-669e1feca8359118927737/]
[crayon-669e1feca835d186398422/]
Other Option list cards
[crayon-669e1feca8361717400386/]
4. Change it from GRUB
[crayon-669e1feca8364858693140/]
5. Change the config files and test it by Command Line
[crayon-669e1feca8366340542253/]
[crayon-669e1feca8368024222260/]
Reconfigure again for sound-base
[crayon-669e1feca836b486224777/]
 

Restart PC test again,  It works on my pc.
[crayon-669e1feca836d489127804/]
This test is very important to find which sound card you need to use,   1, and 3   is important  first is  Device  other is  port.