Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.19 KB | None | 0 0
  1. $ uname -rvi
  2. 3.13.0-46-generic #76-Ubuntu SMP Thu Feb 26 18:52:13 UTC 2015 x86_64
  3.  
  4. $ dmesg
  5. ...
  6. [14973.155287] usb 3-2: new full-speed USB device number 7 using ohci-pci
  7. [14973.355783] usb 3-2: not running at top speed; connect to a high speed hub
  8. [14973.370772] usb 3-2: New USB device found, idVendor=1235, idProduct=800a
  9. [14973.370784] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
  10. [14973.370791] usb 3-2: Product: Scarlett 2i4 USB
  11. [14973.370797] usb 3-2: Manufacturer: Focusrite
  12. ...
  13.  
  14. $ lsusb -v
  15. ...
  16. Bus 003 Device 007: ID 1235:800a Focusrite-Novation Scarlett 2i4
  17. Couldn't open device, some information will be missing
  18. Device Descriptor:
  19. bLength 18
  20. bDescriptorType 1
  21. bcdUSB 2.00
  22. bDeviceClass 0 (Defined at Interface level)
  23. bDeviceSubClass 0
  24. bDeviceProtocol 0
  25. bMaxPacketSize0 64
  26. idVendor 0x1235 Focusrite-Novation
  27. idProduct 0x800a Scarlett 2i4
  28. bcdDevice 1.25
  29. iManufacturer 1
  30. iProduct 2
  31. iSerial 0
  32. bNumConfigurations 1
  33. Configuration Descriptor:
  34. bLength 9
  35. bDescriptorType 2
  36. wTotalLength 18
  37. bNumInterfaces 1
  38. bConfigurationValue 1
  39. iConfiguration 0
  40. bmAttributes 0x80
  41. (Bus Powered)
  42. MaxPower 500mA
  43. Interface Descriptor:
  44. bLength 9
  45. bDescriptorType 4
  46. bInterfaceNumber 0
  47. bAlternateSetting 0
  48. bNumEndpoints 0
  49. bInterfaceClass 0 (Defined at Interface level)
  50. bInterfaceSubClass 0
  51. bInterfaceProtocol 0
  52. iInterface 0
  53. ...
  54.  
  55. $ cat /proc/asound/cards
  56. 0 [NVidia ]: HDA-Intel - HDA NVidia
  57. HDA NVidia at 0xfbe78000 irq 21
  58. 1 [HDMI ]: HDA-Intel - HDA ATI HDMI
  59. HDA ATI HDMI at 0xfbffc000 irq 41
  60.  
  61. $ aplay -l
  62. **** List of PLAYBACK Hardware Devices ****
  63. card 0: NVidia [HDA NVidia], device 0: VT1708S Analog [VT1708S Analog]
  64. Subdevices: 1/1
  65. Subdevice #0: subdevice #0
  66. card 0: NVidia [HDA NVidia], device 3: VT1708S Digital [VT1708S Digital]
  67. Subdevices: 1/1
  68. Subdevice #0: subdevice #0
  69. card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  70. Subdevices: 1/1
  71. Subdevice #0: subdevice #0
  72. card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  73. Subdevices: 1/1
  74. Subdevice #0: subdevice #0
  75.  
  76. $ cat /etc/modprobe.d/alsa-base.conf
  77. # autoloader aliases
  78. install sound-slot-0 /sbin/modprobe snd-card-0
  79. install sound-slot-1 /sbin/modprobe snd-card-1
  80. install sound-slot-2 /sbin/modprobe snd-card-2
  81. install sound-slot-3 /sbin/modprobe snd-card-3
  82. install sound-slot-4 /sbin/modprobe snd-card-4
  83. install sound-slot-5 /sbin/modprobe snd-card-5
  84. install sound-slot-6 /sbin/modprobe snd-card-6
  85. install sound-slot-7 /sbin/modprobe snd-card-7
  86.  
  87. # Cause optional modules to be loaded above generic modules
  88. install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
  89. #
  90. # Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
  91. install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
  92. install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
  93. install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
  94. #
  95. install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
  96. # Cause optional modules to be loaded above sound card driver modules
  97. install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
  98. install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }
  99.  
  100. # Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
  101. install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
  102. # Prevent abnormal drivers from grabbing index 0
  103. options bt87x index=-2
  104. options cx88_alsa index=-2
  105. options saa7134-alsa index=-2
  106. options snd-atiixp-modem index=-2
  107. options snd-intel8x0m index=-2
  108. options snd-via82xx-modem index=-2
  109. #options snd-usb-audio index=-2
  110. options snd-usb-audio index=2
  111. options snd-usb-caiaq index=-2
  112. options snd-usb-ua101 index=-2
  113. options snd-usb-us122l index=-2
  114. options snd-usb-usx2y index=-2
  115. # Ubuntu #62691, enable MPU for snd-cmipci
  116. options snd-cmipci mpu_port=0x330 fm_port=0x388
  117. # Keep snd-pcsp from being loaded as first soundcard
  118. options snd-pcsp index=-2
  119. # Keep snd-usb-audio from beeing loaded as first soundcard
  120. #options snd-usb-audio index=-2
  121. #Focusrite Scarlett 2i4 to hw:2
  122. options snd-usb-audio index=2 vid=0x1235 pid=0x800a
  123.  
  124. $ cat .asoundrc
  125. pcm.usb-audio {
  126. type hw
  127. card 2
  128. }
  129.  
  130. ctl.usb-audio {
  131. type hw
  132. card 2
  133. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement