wkchu

cm108

Sep 22nd, 2022
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 53.65 KB | None | 0 0
  1. dmesg:
  2. [962951.850375] usb 1-1: new full-speed USB device number 89 using xhci_hcd
  3. [962951.991336] usb 1-1: New USB device found, idVendor=0d8c, idProduct=000c, bcdDevice= 1.00
  4. [962951.991351] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
  5. [962951.991358] usb 1-1: Product: C-Media USB Headphone Set  
  6. [962952.005356] input: C-Media USB Headphone Set   as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.3/0003:0D8C:000C.000F/input/input43
  7. [962952.060355] hid-generic 0003:0D8C:000C.000F: input,hidraw1: USB HID v1.00 Device [C-Media USB Headphone Set  ] on usb-0000:00:14.0-1/input3
  8.  
  9. aplay -l:
  10. [user Downloads]$ aplay -l
  11. **** List of PLAYBACK Hardware Devices ****
  12. card 0: PCH [HDA Intel PCH], device 0: ALC295 Analog [ALC295 Analog]
  13.   Subdevices: 1/1
  14.   Subdevice #0: subdevice #0
  15. card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  16.   Subdevices: 1/1
  17.   Subdevice #0: subdevice #0
  18. card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  19.   Subdevices: 1/1
  20.   Subdevice #0: subdevice #0
  21. card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  22.   Subdevices: 1/1
  23.   Subdevice #0: subdevice #0
  24. card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  25.   Subdevices: 1/1
  26.   Subdevice #0: subdevice #0
  27. card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  28.   Subdevices: 1/1
  29.   Subdevice #0: subdevice #0
  30. card 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  31.   Subdevices: 1/1
  32.   Subdevice #0: subdevice #0
  33.  
  34.  
  35.  
  36. aplay -L:
  37. [user Downloads]$ aplay -L
  38. null
  39.     Discard all samples (playback) or generate zero samples (capture)
  40. lavrate
  41.     Rate Converter Plugin Using Libav/FFmpeg Library
  42. samplerate
  43.     Rate Converter Plugin Using Samplerate Library
  44. speexrate
  45.     Rate Converter Plugin Using Speex Resampler
  46. jack
  47.     JACK Audio Connection Kit
  48. oss
  49.     Open Sound System
  50. pipewire
  51.     PipeWire Sound Server
  52. pulse
  53.     PulseAudio Sound Server
  54. speex
  55.     Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
  56. upmix
  57.     Plugin for channel upmix (4,6,8)
  58. vdownmix
  59.     Plugin for channel downmix (stereo) with a simple spacialization
  60. sysdefault:CARD=PCH
  61.     HDA Intel PCH, ALC295 Analog
  62.     Default Audio Device
  63. front:CARD=PCH,DEV=0
  64.     HDA Intel PCH, ALC295 Analog
  65.     Front output / input
  66. surround21:CARD=PCH,DEV=0
  67.     HDA Intel PCH, ALC295 Analog
  68.     2.1 Surround output to Front and Subwoofer speakers
  69. surround40:CARD=PCH,DEV=0
  70.     HDA Intel PCH, ALC295 Analog
  71.     4.0 Surround output to Front and Rear speakers
  72. surround41:CARD=PCH,DEV=0
  73.     HDA Intel PCH, ALC295 Analog
  74.     4.1 Surround output to Front, Rear and Subwoofer speakers
  75. surround50:CARD=PCH,DEV=0
  76.     HDA Intel PCH, ALC295 Analog
  77.     5.0 Surround output to Front, Center and Rear speakers
  78. surround51:CARD=PCH,DEV=0
  79.     HDA Intel PCH, ALC295 Analog
  80.     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  81. surround71:CARD=PCH,DEV=0
  82.     HDA Intel PCH, ALC295 Analog
  83.     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  84. hdmi:CARD=PCH,DEV=0
  85.     HDA Intel PCH, HDMI 0
  86.     HDMI Audio Output
  87. hdmi:CARD=PCH,DEV=1
  88.     HDA Intel PCH, HDMI 1
  89.     HDMI Audio Output
  90. hdmi:CARD=PCH,DEV=2
  91.     HDA Intel PCH, HDMI 2
  92.     HDMI Audio Output
  93. hdmi:CARD=PCH,DEV=3
  94.     HDA Intel PCH, HDMI 3
  95.     HDMI Audio Output
  96. hdmi:CARD=PCH,DEV=4
  97.     HDA Intel PCH, HDMI 4
  98.     HDMI Audio Output
  99. usbstream:CARD=PCH
  100.     HDA Intel PCH
  101.     USB Stream Output
  102. sysdefault:CARD=Set
  103.     C-Media USB Headphone Set, USB Audio
  104.     Default Audio Device
  105. front:CARD=Set,DEV=0
  106.     C-Media USB Headphone Set, USB Audio
  107.     Front output / input
  108. surround21:CARD=Set,DEV=0
  109.     C-Media USB Headphone Set, USB Audio
  110.     2.1 Surround output to Front and Subwoofer speakers
  111. surround40:CARD=Set,DEV=0
  112.     C-Media USB Headphone Set, USB Audio
  113.     4.0 Surround output to Front and Rear speakers
  114. surround41:CARD=Set,DEV=0
  115.     C-Media USB Headphone Set, USB Audio
  116.     4.1 Surround output to Front, Rear and Subwoofer speakers
  117. surround50:CARD=Set,DEV=0
  118.     C-Media USB Headphone Set, USB Audio
  119.     5.0 Surround output to Front, Center and Rear speakers
  120. surround51:CARD=Set,DEV=0
  121.     C-Media USB Headphone Set, USB Audio
  122.     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  123. surround71:CARD=Set,DEV=0
  124.     C-Media USB Headphone Set, USB Audio
  125.     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  126. iec958:CARD=Set,DEV=0
  127.     C-Media USB Headphone Set, USB Audio
  128.     IEC958 (S/PDIF) Digital Audio Output
  129. usbstream:CARD=Set
  130.     C-Media USB Headphone Set
  131.     USB Stream Output
  132.  
  133.  
  134.  
  135. [user Downloads]$ amixer -c 1 controls                                                                                                                                                                                                  
  136. numid=5,iface=MIXER,name='Headphone Playback Switch'
  137. numid=6,iface=MIXER,name='Headphone Playback Volume'
  138. numid=3,iface=MIXER,name='Mic Playback Switch'            
  139. numid=4,iface=MIXER,name='Mic Playback Volume'                                                                                                                                                                                                
  140. numid=7,iface=MIXER,name='Mic Capture Switch'              
  141. numid=8,iface=MIXER,name='Mic Capture Volume'                                                                          
  142. numid=9,iface=MIXER,name='Auto Gain Control'                                                                          
  143. numid=2,iface=PCM,name='Capture Channel Map'                                                                          
  144. numid=1,iface=PCM,name='Playback Channel Map'
  145.  
  146. Note: missing any iec958-related switch, e.g. "IEC958 Output Switch".
  147.  
  148.  
  149. amixer cget:
  150. [user Downloads]$  amixer -c 1 cget iface=PCM,name='Playback Channel Map'
  151. numid=1,iface=PCM,name='Playback Channel Map'
  152.   ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  153.   : values=0,0
  154.   | container
  155.     | chmap-fixed=FL,FR
  156.  
  157.  
  158.  
  159. amixer cset:
  160. [user Downloads]$ amixer -c 1 cset iface=PCM,name='Playback Channel Map' 3,4
  161. amixer: Control sysdefault:1 element write error: Operation not permitted
  162.  
  163.  
  164. sudo strace speaker-test -D iec958:Set -c2 2>&1
  165. [...]
  166. openat(AT_FDCWD, "/dev/snd/pcmC1D999p"
Add Comment
Please, Sign In to add comment