让我的 USB 耳机与 ChrUbuntu 内核兼容

让我的 USB 耳机与 ChrUbuntu 内核兼容

我只想通过 Chromebox 在全新的 Ubuntu 12.04 ChruBuntu 内核上拨打音频电话。为此,我尝试使用 2 个设备:

罗技耳机H555:http://www.logitech.com/en-au/webcam-communications/internet-headsets-phones/6810

由于这不起作用,我还尝试了网络摄像头,罗技,不确定型号,但似乎是这个:http://mobile.logitech.com/en-us/support/webcams/legacy-devices/3382

最大的问题是它没有显示在我的设置->声音中。

在此处输入图片描述

在网上搜索一番后,我了解到 dmesg 可能会有帮助......

有用的输出似乎是这些行:

[34253.108017] EXT4-fs (sda5): couldn't mount RDWR because of unsupported optional features (ff000000)
[35669.588208] usb 2-1.5: USB disconnect, device number 5
[35679.288375] usb 1-1.5: USB disconnect, device number 5
[35682.803740] usb 2-1.5: new full-speed USB device number 6 using ehci_hcd
[35682.894724] usb 2-1.5: New USB device found, idVendor=046d, idProduct=0a01
[35682.894735] usb 2-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[35682.894741] usb 2-1.5: Product: Logitech USB Headset
[35682.894746] usb 2-1.5: Manufacturer: Logitech
[36676.293997] init: Failed to create pty - disabling logging for job
[36676.294067] init: Temporary process spawn error: No such file or directory
[36744.413838] usb 2-1.5: USB disconnect, device number 6
[36784.204411] usb 1-1.6: new full-speed USB device number 21 using ehci_hcd
[36784.294884] usb 1-1.6: New USB device found, idVendor=046d, idProduct=0a01
[36784.294895] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[36784.294902] usb 1-1.6: Product: Logitech USB Headset
[36784.294906] usb 1-1.6: Manufacturer: Logitech

我仍在搜索很多论坛和博客,但找不到下一步该做什么的答案。

有什么提示吗?

编辑:

其他信息:

user@ChrUbuntu:~$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor
Family DRAM Controller (rev 09)

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation
Core Processor Family Integrated Graphics Controller (rev 09)

00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset
Family USB Enhanced Host Controller #2 (rev 05)

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset
Family High Definition Audio Controller (rev 05)

00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
Family PCI Express Root Port 1 (rev b5)

00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
Family PCI Express Root Port 3 (rev b5)

00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset
Family PCI Express Root Port 4 (rev b5)

00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset
Family USB Enhanced Host Controller #1 (rev 05)

00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC
Controller (rev 05)

00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series
Chipset Family 6 port SATA AHCI Controller (rev 05)

00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family
SMBus Controller (rev 05)

00:1f.6 Signal processing controller: Intel Corporation 6 Series/C200
Series Chipset Family Thermal Management Controller (rev 05)

01:00.0 Network controller: Atheros Communications Inc. AR9300
Wireless LAN adaptor (rev 01)

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

user@ChrUbuntu:~$ cat /proc/asound/cards

0 [PCH            ]: HDA-Intel - HDA Intel PCH
                     HDA Intel PCH at 0xe0600000 irq 46

更多信息:

user@ChrUbuntu:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 009: ID 046d:0a01 Logitech, Inc. USB Headset
Bus 001 Device 022: ID 046d:08f5 Logitech, Inc. QuickCam Messenger Communicate
Bus 001 Device 006: ID 0cf3:3004 Atheros Communications, Inc. 

再次编辑:

按照 John S Gruber 的建议,以下是包含 v046D 的 /var/log/udev 行,完整输出如下:http://pastebin.com/fWwCeeuu

UDEV  [2.342758] add      /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 (usb)
ACTION=add
BUSNUM=002
DEVICE=/proc/bus/usb/002/003
DEVNAME=/dev/bus/usb/002/003
DEVNUM=003
DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2
DEVTYPE=usb_device
ID_BUS=usb
ID_MODEL=Logitech_USB_Headset
ID_MODEL_ENC=Logitech\x20USB\x20Headset
ID_MODEL_ID=0a01
ID_REVISION=1013
ID_SERIAL=Logitech_Logitech_USB_Headset
ID_USB_INTERFACES=:010100:010200:
ID_VENDOR=Logitech
ID_VENDOR_ENC=Logitech
ID_VENDOR_ID=046d
MAJOR=189
MINOR=130
PRODUCT=46d/a01/1013
SEQNUM=1286
SUBSYSTEM=usb
TYPE=0/0/0
UDEV_LOG=3
UPOWER_VENDOR=Logitech, Inc.
USEC_INITIALIZED=2342558

KERNEL[2.180449] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0 (usb)
ACTION=add
DEVICE=/proc/bus/usb/001/005
DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0
DEVTYPE=usb_interface
INTERFACE=255/255/255
MODALIAS=usb:v046Dp08F5d0100dcFFdscFFdpFFicFFiscFFipFF
PRODUCT=46d/8f5/100
SEQNUM=1282
SUBSYSTEM=usb
TYPE=255/255/255
UDEV_LOG=3

注意:这些行仅出现在 v046DpC52 中,这似乎是鼠标 + 键盘,实际上工作正常,我没有包含 v046Dp0A01(耳机)或 v046Dp08F5(网络摄像头)的行

UDEV  [2.077186] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.2/0003:046D:C52B.0003/input/input4 (input)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.2/0003:046D:C52B.0003/input/input4
EV=17
ID_BUS=usb
ID_INPUT=1
ID_INPUT_MOUSE=1
ID_MODEL=USB_Receiver
ID_MODEL_ENC=USB\x20Receiver
ID_MODEL_ID=c52b
ID_PATH=pci-0000:00:1a.0-usb-0:1.1:1.2
ID_PATH_TAG=pci-0000_00_1a_0-usb-0_1_1_1_2
ID_REVISION=1201
ID_SERIAL=Logitech_USB_Receiver
ID_TYPE=hid
ID_USB_DRIVER=usbhid
ID_USB_INTERFACES=:030101:030102:030000:
ID_USB_INTERFACE_NUM=02
ID_VENDOR=Logitech
ID_VENDOR_ENC=Logitech
ID_VENDOR_ID=046d
KEY=ffff0000 0 0 0 0
MODALIAS=input:b0003v046DpC52Be0111-e0,1,2,4,k110,111,112,113,114,115,116,117,118,119,11A,11B,11C,11D,11E,11F,r0,1,6,8,am4,lsfw
MSC=10
NAME="Logitech Unifying Device. Wireless PID:101a"
PHYS="usb-0000:00:1a.0-1.1:2"
PRODUCT=3/46d/c52b/111
PROP=0
REL=143
SEQNUM=1239
SUBSYSTEM=input
UDEV_LOG=3
UNIQ=""
USEC_INITIALIZED=2067428

重新编辑:

Aug  5 21:47:59 ChrUbuntu kernel: [ 1318.128047] usb 2-1.2: USB disconnect, device number 4
Aug  5 21:48:02 ChrUbuntu kernel: [ 1320.940343] usb 2-1.1: USB disconnect, device number 3
Aug  5 21:48:06 ChrUbuntu kernel: [ 1324.493860] usb 2-1.1: new full-speed USB device number 5 using ehci_hcd
Aug  5 21:48:06 ChrUbuntu kernel: [ 1324.580875] usb 2-1.1: New USB device found, idVendor=046d, idProduct=08f5
Aug  5 21:48:06 ChrUbuntu kernel: [ 1324.580885] usb 2-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Aug  5 21:48:06 ChrUbuntu kernel: [ 1324.580891] usb 2-1.1: Product: Camera
Aug  5 21:48:06 ChrUbuntu mtp-probe: checking bus 2, device 5: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Aug  5 21:48:06 ChrUbuntu mtp-probe: bus: 2, device: 5 was not an MTP device
Aug  5 21:48:21 ChrUbuntu kernel: [ 1339.603896] usb 2-1.1: USB disconnect, device number 5
Aug  5 21:48:21 ChrUbuntu kernel: [ 1339.782120] usb 2-1.1: new full-speed USB device number 6 using ehci_hcd
Aug  5 21:48:21 ChrUbuntu kernel: [ 1339.868933] usb 2-1.1: New USB device found, idVendor=046d, idProduct=08f5
Aug  5 21:48:21 ChrUbuntu kernel: [ 1339.868948] usb 2-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Aug  5 21:48:21 ChrUbuntu kernel: [ 1339.868958] usb 2-1.1: Product: Camera
Aug  5 21:48:21 ChrUbuntu mtp-probe: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Aug  5 21:48:21 ChrUbuntu mtp-probe: bus: 2, device: 6 was not an MTP device
Aug  5 21:48:21 ChrUbuntu kernel: [ 1340.291313] usb 2-1.5: new full-speed USB device number 7 using ehci_hcd
Aug  5 21:48:22 ChrUbuntu kernel: [ 1340.382321] usb 2-1.5: New USB device found, idVendor=046d, idProduct=0a01
Aug  5 21:48:22 ChrUbuntu kernel: [ 1340.382332] usb 2-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Aug  5 21:48:22 ChrUbuntu kernel: [ 1340.382338] usb 2-1.5: Product: Logitech USB Headset
Aug  5 21:48:22 ChrUbuntu kernel: [ 1340.382343] usb 2-1.5: Manufacturer: Logitech
Aug  5 21:48:22 ChrUbuntu mtp-probe: checking bus 2, device 7: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5"
Aug  5 21:48:22 ChrUbuntu mtp-probe: bus: 2, device: 7 was not an MTP device

lsusb -v 输出(终端太短,无法显示前几行:

      Right Front (R)
    iChannelNames           0 
    iTerminal               0 
  AudioControl Interface Descriptor:
    bLength                13
    bDescriptorType        36
    bDescriptorSubtype      4 (MIXER_UNIT)
    bUnitID                 9
    bNrInPins               2
    baSourceID( 0)         12
    baSourceID( 1)          6
    bNrChannels             2
    wChannelConfig     0x0003
      Left Front (L)
      Right Front (R)
    iChannelNames           0 
    bmControls         0x00
    iMixer                  0 
  AudioControl Interface Descriptor:
    bLength                10
    bDescriptorType        36
    bDescriptorSubtype      6 (FEATURE_UNIT)
    bUnitID                 1
    bSourceID               9
    bControlSize            1
    bmaControls( 0)      0x01
      Mute Control
    bmaControls( 1)      0x02
      Volume Control
    bmaControls( 2)      0x02
      Volume Control
    iFeature                0 
  AudioControl Interface Descriptor:
    bLength                 9
    bDescriptorType        36
    bDescriptorSubtype      3 (OUTPUT_TERMINAL)
    bTerminalID            14
    wTerminalType      0x0301 Speaker
    bAssocTerminal          0
    bSourceID               1
    iTerminal               0 
  AudioControl Interface Descriptor:
    bLength                12
    bDescriptorType        36
    bDescriptorSubtype      2 (INPUT_TERMINAL)
    bTerminalID            11
    wTerminalType      0x0201 Microphone
    bAssocTerminal          0
    bNrChannels             1
    wChannelConfig     0x0001
      Left Front (L)
    iChannelNames           0 
    iTerminal               0 
  AudioControl Interface Descriptor:
    bLength                 9
    bDescriptorType        36
    bDescriptorSubtype      6 (FEATURE_UNIT)
    bUnitID                 2
    bSourceID              11
    bControlSize            1
    bmaControls( 0)      0x03
      Mute Control
      Volume Control
    bmaControls( 1)      0x00
    iFeature                0 
  AudioControl Interface Descriptor:
    bLength                12
    bDescriptorType        36
    bDescriptorSubtype      4 (MIXER_UNIT)
    bUnitID                 7
    bNrInPins               1
    baSourceID( 0)          2
    bNrChannels             1
    wChannelConfig     0x0001
      Left Front (L)
    iChannelNames           0 
    bmControls         0x00
    iMixer                  0 
  AudioControl Interface Descriptor:
    bLength                 9
    bDescriptorType        36
    bDescriptorSubtype      3 (OUTPUT_TERMINAL)
    bTerminalID            10
    wTerminalType      0x0101 USB Streaming
    bAssocTerminal          0
    bSourceID               7
    iTerminal               0 
Interface Descriptor:
  bLength                 9
  bDescriptorType         4
  bInterfaceNumber        1
  bAlternateSetting       0
  bNumEndpoints           0
  bInterfaceClass         1 Audio
  bInterfaceSubClass      2 Streaming
  bInterfaceProtocol      0 
  iInterface              0 
Interface Descriptor:
  bLength                 9
  bDescriptorType         4
  bInterfaceNumber        1
  bAlternateSetting       1
  bNumEndpoints           1
  bInterfaceClass         1 Audio
  bInterfaceSubClass      2 Streaming
  bInterfaceProtocol      0 
  iInterface              0 
  AudioStreaming Interface Descriptor:
    bLength                 7
    bDescriptorType        36
    bDescriptorSubtype      1 (AS_GENERAL)
    bTerminalLink          12
    bDelay                  1 frames
    wFormatTag              1 PCM
  AudioStreaming Interface Descriptor:
    bLength                23
    bDescriptorType        36
    bDescriptorSubtype      2 (FORMAT_TYPE)
    bFormatType             1 (FORMAT_TYPE_I)
    bNrChannels             2
    bSubframeSize           2
    bBitResolution         16
    bSamFreqType            5 Discrete
    tSamFreq[ 0]         8000
    tSamFreq[ 1]        11025
    tSamFreq[ 2]        22050
    tSamFreq[ 3]        44100
    tSamFreq[ 4]        48000
  Endpoint Descriptor:
    bLength                 9
    bDescriptorType         5
    bEndpointAddress     0x01  EP 1 OUT
    bmAttributes            9
      Transfer Type            Isochronous
      Synch Type               Adaptive
      Usage Type               Data
    wMaxPacketSize     0x00c0  1x 192 bytes
    bInterval               1
    bRefresh                0
    bSynchAddress           0
    AudioControl Endpoint Descriptor:
      bLength                 7
      bDescriptorType        37
      bDescriptorSubtype      1 (EP_GENERAL)
      bmAttributes         0x01
        Sampling Frequency
      bLockDelayUnits         0 Undefined
      wLockDelay              0 Undefined
Interface Descriptor:
  bLength                 9
  bDescriptorType         4
  bInterfaceNumber        1
  bAlternateSetting       2
  bNumEndpoints           1
  bInterfaceClass         1 Audio
  bInterfaceSubClass      2 Streaming
  bInterfaceProtocol      0 
  iInterface              0 
  AudioStreaming Interface Descriptor:
    bLength                 7
    bDescriptorType        36
    bDescriptorSubtype      1 (AS_GENERAL)
    bTerminalLink          12
    bDelay                  1 frames
    wFormatTag              1 PCM
  AudioStreaming Interface Descriptor:
    bLength                23
    bDescriptorType        36
    bDescriptorSubtype      2 (FORMAT_TYPE)
    bFormatType             1 (FORMAT_TYPE_I)
    bNrChannels             1
    bSubframeSize           2
    bBitResolution         16
    bSamFreqType            5 Discrete
    tSamFreq[ 0]         8000
    tSamFreq[ 1]        11025
    tSamFreq[ 2]        22050
    tSamFreq[ 3]        44100
    tSamFreq[ 4]        48000
  Endpoint Descriptor:
    bLength                 9
    bDescriptorType         5
    bEndpointAddress     0x01  EP 1 OUT
    bmAttributes            9
      Transfer Type            Isochronous
      Synch Type               Adaptive
      Usage Type               Data
    wMaxPacketSize     0x0060  1x 96 bytes
    bInterval               1
    bRefresh                0
    bSynchAddress           0
    AudioControl Endpoint Descriptor:
      bLength                 7
      bDescriptorType        37
      bDescriptorSubtype      1 (EP_GENERAL)
      bmAttributes         0x01
        Sampling Frequency
      bLockDelayUnits         0 Undefined
      wLockDelay              0 Undefined
Interface Descriptor:
  bLength                 9
  bDescriptorType         4
  bInterfaceNumber        2
  bAlternateSetting       0
  bNumEndpoints           0
  bInterfaceClass         1 Audio
  bInterfaceSubClass      2 Streaming
  bInterfaceProtocol      0 
  iInterface              0 
Interface Descriptor:
  bLength                 9
  bDescriptorType         4
  bInterfaceNumber        2
  bAlternateSetting       1
  bNumEndpoints           1
  bInterfaceClass         1 Audio
  bInterfaceSubClass      2 Streaming
  bInterfaceProtocol      0 
  iInterface              0 
  AudioStreaming Interface Descriptor:
    bLength                 7
    bDescriptorType        36
    bDescriptorSubtype      1 (AS_GENERAL)
    bTerminalLink          10
    bDelay                  0 frames
    wFormatTag              1 PCM
  AudioStreaming Interface Descriptor:
    bLength                23
    bDescriptorType        36
    bDescriptorSubtype      2 (FORMAT_TYPE)
    bFormatType             1 (FORMAT_TYPE_I)
    bNrChannels             1
    bSubframeSize           2
    bBitResolution         16
    bSamFreqType            5 Discrete
    tSamFreq[ 0]         8000
    tSamFreq[ 1]        11025
    tSamFreq[ 2]        22050
    tSamFreq[ 3]        44100
    tSamFreq[ 4]        48000
  Endpoint Descriptor:
    bLength                 9
    bDescriptorType         5
    bEndpointAddress     0x84  EP 4 IN
    bmAttributes            9
      Transfer Type            Isochronous
      Synch Type               Adaptive
      Usage Type               Data
    wMaxPacketSize     0x0060  1x 96 bytes
    bInterval               1
    bRefresh                0
    bSynchAddress           0
    AudioControl Endpoint Descriptor:
      bLength                 7
      bDescriptorType        37
      bDescriptorSubtype      1 (EP_GENERAL)
      bmAttributes         0x01
        Sampling Frequency
      bLockDelayUnits         2 Decoded PCM samples
      wLockDelay              1 Decoded PCM samples

编辑(再次..)

gksu gedit /etc/modprobe.d/alsa-base.conf 将选项 snd-usb-audio index=-2 更改为“选项 snd-usb-audio index=1

然后再次插入耳机。

我失去了数字输出并且我的耳机变成了输出:

在此处输入图片描述

user@ChrUbuntu:~$ modprobe snd-usb-audio
FATAL: Module snd_usb_audio not found.

系统日志:

Aug 10 22:51:56 ChrUbuntu kernel: [   27.765382] usb 2-1.1: USB disconnect, device number 3
Aug 10 22:51:58 ChrUbuntu kernel: [   28.964259] usb 2-1.5: new full-speed USB device number 4 using ehci_hcd
Aug 10 22:51:58 ChrUbuntu kernel: [   29.055118] usb 2-1.5: New USB device found, idVendor=046d, idProduct=0a01
Aug 10 22:51:58 ChrUbuntu kernel: [   29.055128] usb 2-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Aug 10 22:51:58 ChrUbuntu kernel: [   29.055135] usb 2-1.5: Product: Logitech USB Headset
Aug 10 22:51:58 ChrUbuntu kernel: [   29.055139] usb 2-1.5: Manufacturer: Logitech
Aug 10 22:51:58 ChrUbuntu mtp-probe: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5"
Aug 10 22:51:58 ChrUbuntu mtp-probe: bus: 2, device: 4 was not an MTP device

牌:

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xe0600000 irq 46

设备:

  2: [ 0- 8]: digital audio playback
  3: [ 0- 7]: digital audio playback
  4: [ 0- 3]: digital audio playback
  5: [ 0- 0]: digital audio playback
  6: [ 0- 0]: digital audio capture
  7: [ 0- 3]: hardware dependent
  8: [ 0- 0]: hardware dependent
  9: [ 0]   : control
 33:        : timer


user@ChrUbuntu:~$ uname -a
Linux ChrUbuntu 3.2.7 #1 SMP Tue Jun 26 23:10:36 PDT 2012 x86_64 x86_64 x86_64 GNU/Linux

bash:/home/user/.bashrc:第 110 行:查找匹配的 `'' 时出现意外的 EOF bash:/home/user/.bashrc:第 114 行:语法错误:意外的文件结尾

user@ChrUbuntu:~$ locate snd-usb-audio
/lib/modules/3.2.0-23-generic/kernel/sound/usb/snd-usb-audio.ko
/lib/modules/3.2.0-24-generic/kernel/sound/usb/snd-usb-audio.ko
/lib/modules/3.2.0-26-generic/kernel/sound/usb/snd-usb-audio.ko
/lib/modules/3.2.0-27-generic/kernel/sound/usb/snd-usb-audio.ko
/lib/modules/3.2.0-29-generic/kernel/sound/usb/snd-usb-audio.ko
user@ChrUbuntu:~$ lsmod
Module                  Size  Used by
fuse                   59804  2 
snd_hda_codec_hdmi     29062  1 
snd_hda_codec_cirrus    20544  1 
rfcomm                 25259  0 
joydev                 16448  0 
hid_logitech_dj        16448  0 
ath3k                  12352  0 
bluetooth             116787  10 rfcomm,ath3k
snd_hda_intel          24640  3 
ath9k                 117696  0 
snd_hda_codec          67292  3 snd_hda_codec_hdmi,snd_hda_codec_cirrus,snd_hda_intel
snd_hwdep              12390  1 snd_hda_codec
mac80211              198984  1 ath9k
ath9k_common           12643  1 ath9k
ath9k_hw              363295  2 ath9k,ath9k_common
ath                    21066  3 ath9k,ath9k_common,ath9k_hw
snd_pcm                61378  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
memconsole             12352  0 
cfg80211              140766  3 ath9k,mac80211,ath
r8169                  45120  0 
snd_timer              21094  1 snd_pcm
rtc_cmos               16448  0 
snd_page_alloc         12757  2 snd_hda_intel,snd_pcm
nm10_gpio              12352  0 
user@ChrUbuntu:~$ 

答案1

在我看来,您正在使用自定义内核,因为输出中列出的 Linux 3.2.7 的uname -a版本号高于当前版本的 12.04 内核 (3.2.0-29)。 (它也低于当前的 12.10 内核)。

查看输出,lsmod我们可以看到没有模块snd_usb_audio 位于已加载模块列表中。您需要使用它来运行大多数使用 USB 音频设备标准的 USB 音频设备。

location 命令列出了几个 snd_usb_audio 模块,但不适用于您正在运行的内核。

  • 我建议您使用标准内核,看看它是否无法检测和支持您的耳机。

  • 如果您自己编译了自定义内核,您可能希望使其工作,我建议通过更改相应的内核配置变量将 snd_usb_audio 设为模块,重新编译内核,然后运行make modules_installmake install重新安装重新制作的自定义内核。我认识到这个内核可能已将 snd_usb_audio 链接到内核,在这种情况下,我不知道为什么自定义内核没有正确使用它来安装必要的音频设备。

CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=m

答案2

根据lsusb -v输出,Linux 内核的 ALSA 子系统 snd_usb_audio 应该为您的设备分配控制和 pcm 设备并驱动它们。

看着帖子,可能值得尝试该解决方案:

gksu gedit /etc/modprobe.d/alsa-base.conf

改成options snd-usb-audio index=-2`options snd-usb-audio index=1

然后再次插入耳机。


如果这不起作用,请运行 lsmod 并将输出放在您的问题中。

如果 snd-usb-audio 没有出现在列表中,请尝试modprobe snd-usb-audio,并在出现时捕获 /var/log/syslog。同时,请检查 lsmod 和 /proc/asound/devices 以及 /proc/asound/cards 并再次查找接口。

相关内容