mkv

HDMI output with ALSA

mkv
May 3rd, 2014
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. # ALSA improvements for Debian Wheezy
  2. # 2014-05-03, ed <irc.rizon.net>
  3. #
  4. # This does the following:
  5. # - Sets HDMI output as default
  6. # - Adds dmixer (multiple sources)
  7. # - Adds softvol (volume control)
  8. #
  9. # Use aplay to find required device IDs:
  10. # $ aplay -l
  11. # - card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
  12. # - card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  13. #
  14. # Save this to your .asoundrc then restart alsa:
  15. # # nano /home/ed/.asoundrc; service alsa-utils restart
  16. #
  17. # Finally, to set the volume:
  18. # $ amixer set fgsfds 50
  19. #
  20. pcm.!default {
  21. type hw
  22. card 0
  23. device 0
  24. device 3
  25. }
  26. pcm.!default {
  27. type plug
  28. slave.pcm "svol"
  29. }
  30. pcm.!svol {
  31. type softvol
  32. slave.pcm "dmixer"
  33. control.name "fgsfds"
  34. control.card 0
  35. }
  36. ctl.!svol {
  37. type hw
  38. card 0
  39. }
  40. pcm.!dmixer {
  41. type dmix
  42. ipc_key 1024
  43. slave {
  44. pcm "hw:0,3"
  45. period_time 0
  46. period_size 1024
  47. buffer_size 4096
  48. rate 44100
  49. }
  50. bindings {
  51. 0 0
  52. 1 1
  53. }
  54. }
  55. ctl.!dmixer {
  56. type hw
  57. card 0
  58. }
Advertisement
Add Comment
Please, Sign In to add comment