젠투에서 ALSA를 사용하여 USB 태블릿 마이크의 사운드 녹음

젠투에서 ALSA를 사용하여 USB 태블릿 마이크의 사운드 녹음

USB를 통해 Gentoo Linux에 연결된 태블릿 마이크를 사용하여 소리를 녹음할 수 없습니다.

설정을 확인해보니 USB 마이크가 감지되었습니다.

arecord --list-devices
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 0/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 1: Device [PrimeSense Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Phone [MT65xx Android Phone], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

그래서 나는 추측한다

arecord -D hw:2,0 -d 5 test.wav

나에게 녹음을 제공하지만 결과는 다음과 같습니다.

arecord: main:722: audio open error: Device or resource busy

이 문제의 원인을 찾는 방법을 아시나요? 아니면 내가 잘못된 길로 가고 있는 걸까? asound.conf에 특수 항목을 추가해야 합니까?

현재는 다음과 같습니다.

cat /etc/asound.conf
#input device
pcm.AD1989A_inputs {
type multi

slaves.a.pcm "hw:PCH,0,0"
slaves.a.channels 2
slaves.b.pcm "hw:PCH,0,1"
slaves.b.channels 2

bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}

어쩌면 pcm 목록도 솔루션과 관련이 있을 수 있습니다. 그래서 여기에 추가합니다.

arecord --list-pcms
  sysdefault:CARD=PCH
      HDA Intel PCH, AD198x Analog
      Default Audio Device
  front:CARD=PCH,DEV=0
      HDA Intel PCH, AD198x Analog
      Front speakers
  surround40:CARD=PCH,DEV=0
      HDA Intel PCH, AD198x Analog
      4.0 Surround output to Front and Rear speakers
  surround41:CARD=PCH,DEV=0
      HDA Intel PCH, AD198x Analog
      4.1 Surround output to Front, Rear and Subwoofer speakers
  surround50:CARD=PCH,DEV=0
      HDA Intel PCH, AD198x Analog
      5.0 Surround output to Front, Center and Rear speakers
  surround51:CARD=PCH,DEV=0
      HDA Intel PCH, AD198x Analog
      5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=PCH,DEV=0
      HDA Intel PCH, AD198x Analog
      7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  sysdefault:CARD=Device
      PrimeSense Device, USB Audio
      Default Audio Device
  front:CARD=Device,DEV=0
      PrimeSense Device, USB Audio
      Front speakers
  surround40:CARD=Device,DEV=0
      PrimeSense Device, USB Audio
      4.0 Surround output to Front and Rear speakers
  surround41:CARD=Device,DEV=0
      PrimeSense Device, USB Audio
      4.1 Surround output to Front, Rear and Subwoofer speakers
  surround50:CARD=Device,DEV=0
      PrimeSense Device, USB Audio
      5.0 Surround output to Front, Center and Rear speakers
  surround51:CARD=Device,DEV=0
      PrimeSense Device, USB Audio
      5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=Device,DEV=0
      PrimeSense Device, USB Audio
      7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=Device,DEV=0
      PrimeSense Device, USB Audio
      IEC958 (S/PDIF) Digital Audio Output
  sysdefault:CARD=Phone
      MT65xx Android Phone, USB Audio
      Default Audio Device
  front:CARD=Phone,DEV=0
      MT65xx Android Phone, USB Audio
      Front speakers
  surround40:CARD=Phone,DEV=0
      MT65xx Android Phone, USB Audio
      4.0 Surround output to Front and Rear speakers
  surround41:CARD=Phone,DEV=0
      MT65xx Android Phone, USB Audio
      4.1 Surround output to Front, Rear and Subwoofer speakers
  surround50:CARD=Phone,DEV=0
      MT65xx Android Phone, USB Audio
      5.0 Surround output to Front, Center and Rear speakers
  surround51:CARD=Phone,DEV=0
      MT65xx Android Phone, USB Audio
      5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=Phone,DEV=0
      MT65xx Android Phone, USB Audio
      7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=Phone,DEV=0
      MT65xx Android Phone, USB Audio
      IEC958 (S/PDIF) Digital Audio Output

관련 정보