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-662cd78d3318f794163440/]
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-662cd78d33196019191753/]
[crayon-662cd78d33199383894546/]
[crayon-662cd78d3319d967399223/]
Other Option list cards
[crayon-662cd78d331a1867191574/]
4. Change it from GRUB
[crayon-662cd78d331a3874626484/]
5. Change the config files and test it by Command Line
[crayon-662cd78d331a6378613247/]
[crayon-662cd78d331a8781973457/]
Reconfigure again for sound-base
[crayon-662cd78d331ab260026631/]
 

Restart PC test again,  It works on my pc.
[crayon-662cd78d331ad769668389/]
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.