saurabhmesh17

PCM Cards - Google Nexus 5

Aug 1st, 2014
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.28 KB | None | 0 0
  1. /* There is only one card on the Device card0 == msm8974taikomtp */
  2. root@hammerhead:/proc/asound # ls -l
  3. dr-xr-xr-x root     root              2014-08-01 13:34 card0
  4. lrwxrwxrwx root     root              2014-08-01 13:34 msm8974taikomtp -> card0
  5.  
  6. root@hammerhead:/ # cat /proc/asound/cards                                                                                                    
  7.  0 [msm8974taikomtp]: msm8974-taiko-m - msm8974-taiko-mtp-snd-card
  8.                       msm8974-taiko-mtp-snd-card
  9.  
  10. /* Different Types of Card:Device */
  11. root@hammerhead:/ # cat /proc/asound/pcm                                                                                                      
  12. 00-00: MultiMedia1 (*) :  : playback 1 : capture 1
  13. 00-01: MultiMedia2 (*) :  : playback 1 : capture 1
  14. 00-02: CS-Voice (*) :  : playback 1 : capture 1
  15. 00-03: VoIP (*) :  : playback 1 : capture 1
  16. 00-04: LPA (*) :  : playback 1
  17. 00-05: SLIMBUS_0 Hostless (*) :  : playback 1 : capture 1
  18. 00-06: INT_FM Hostless (*) :  : playback 1 : capture 1
  19. 00-07: AFE-PROXY RX msm-stub-rx-7 :  : playback 1
  20. 00-08: AFE-PROXY TX msm-stub-tx-8 :  : capture 1
  21. 00-09: (COMPR) :  : playback 1
  22. 00-10: AUXPCM Hostless (*) :  : playback 1 : capture 1
  23. 00-11: SLIMBUS_1 Hostless (*) :  : playback 1 : capture 1
  24. 00-12: SLIMBUS_3 Hostless (*) :  : playback 1 : capture 1
  25. 00-13: SLIMBUS_4 Hostless (*) :  : playback 1 : capture 1
  26. 00-14: VoLTE (*) :  : playback 1 : capture 1
  27. 00-15: MultiMedia5 (*) :  : playback 1 : capture 1
  28. 00-16: Listen Audio Service (*) :  : capture 1
  29. 00-17: COMPR2 (*) :  : playback 1 : capture 1
  30. 00-18: COMPR3 (*) :  : playback 1
  31. 00-19: COMPR4 (*) :  : playback 1
  32. 00-20: HDMI_RX_HOSTLESS (*) :  : playback 1
  33. 00-21: INT_HFP_BT Hostless (*) :  : playback 1 : capture 1
  34. 00-22: MultiMedia6 (*) :  : playback 1 : capture 1
  35. 00-23: Slimbus4 Capture taiko_vifeedback-23 :  : capture 1
  36. 00-24: SLIMBUS_2 Hostless Playback taiko_rx2-24 :  : playback 1
  37. 00-25: SLIMBUS_2 Hostless Capture taiko_tx2-25 :  : capture 1
  38. 00-26: (Internal BT-SCO Playback) :  : playback 1
  39. 00-27: (Internal BT-SCO Capture) :  : capture 1
  40. 00-28: (Internal FM Playback) :  : playback 1
  41. 00-29: (Internal FM Capture) :  : capture 1
  42. 00-30: (AFE Playback) :  : playback 1
  43. 00-31: (AFE Capture) :  : capture 1
  44. 00-32: (AUX PCM Playback) :  : playback 1 : capture 1
  45. 00-33: (AUX PCM Capture) :  : playback 1 : capture 1
  46. 00-34: (Sec AUX PCM Playback) :  : playback 1 : capture 1
  47. 00-35: (Sec AUX PCM Capture) :  : playback 1 : capture 1
  48. 00-36: (Slimbus Playback) :  : playback 1
  49. 00-37: (Slimbus Capture) :  : capture 1
  50. 00-38: (Slimbus1 Playback) :  : playback 1
  51. 00-39: (Slimbus1 Capture) :  : capture 1
  52. 00-40: (Slimbus3 Playback) :  : playback 1
  53. 00-41: (Slimbus3 Capture) :  : capture 1
  54. 00-42: (Slimbus4 Playback) :  : playback 1
  55. 00-43: (Voice Uplink Capture) :  : capture 1
  56. 00-44: (Voice Downlink Capture) :  : capture 1
  57. 00-45: (Slimbus5 Capture) :  : capture 1
  58. 00-46: (Voice Farend Playback) :  : playback 1
  59. 00-47: (HDMI Playback) :  : playback 1
  60.  
  61.  
  62. /* Logcat Output - When a Song is played*/
  63. V/audio_hw_primary(  216): start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2)
  64. D/audio_hw_primary(  216): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
  65. V/audio_hw_primary(  216): enable_snd_device: snd_device(2: speaker) is already active
  66. V/audio_hw_primary(  216): enable_audio_route: enter: usecase(1)
  67. V/audio_hw_primary(  216): enable_audio_route: apply mixer path: low-latency-playback
  68. V/audio_hw_primary(  216): enable_audio_route: exit
  69. V/audio_hw_primary(  216): start_output_stream: Opening PCM device card_id(0) device_id(15)     /* hw:0:15 */
  70. V/audio_hw_primary(  216): start_output_stream: exit
  71. V/audio_hw_primary(  216): out_resume
  72.  
  73. /* Simultaneously looking at changes in pcm15p */
  74.  
  75. root@hammerhead:/proc/asound # cat /proc/asound/card0/pcm15p/sub0/status                                                                      
  76. state: RUNNING
  77. owner_pid   : 915
  78. trigger_time: 5433.323668648
  79. tstamp      : 5436.358784898
  80. delay       : 480
  81. avail       : 0
  82. avail_max   : 240
  83. -----
  84. hw_ptr      : 145920
  85. appl_ptr    : 146400
  86.  
  87. root@hammerhead:/proc/asound # cat /proc/asound/card0/pcm15p/sub0/status                                                                  
  88. closed
  89.  
  90. /* It is not showing state:RUNNING continuously */
Add Comment
Please, Sign In to add comment