Alsa Crashes for ARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am using linux on APQ8053 SOC with alsa-lib v1.1.0. I have ZL38063 sound card  connected with APQ8053 over I2S. I can play wav file on my board using aplay utility and can hear sound on speaker connected to Audio Board as well.
When I try aplay -D with multiple hw:0,.... options and below are the observations:
aplay -D hw:0,0 /data/Haze.wav - File gets played and can hear sound on speaker.
aplay -D hw:0,1 /data/Haze.wav - aplay -D hw:0,4 /data/Haze.wav - File does not get played and observe below output.
aplay -D hw:0,5 /data/Haze.wav - Segmentation fault

Why I do get segmentation fault when executing aplay -D hw:0,5 /data/Haze.wav?

I am attaching the devices list for your reference. (alsa_devices_list.txt)
Please guide to resolve this crash issue. Actually another library (portaudio) is dependent on alsa-lib. Attaching debug for the crash of the portaudio library for reference (patest_sine8_alsa_1_1_0.txt). From debug it could be seen that when it tries to access hw:0,5 it crashes. Please let me know in case of any additional information required from my end.

aplay -D hw:0,1 /data/Haze.wav - aplay -D hw:0,4 /data/Haze.wav Output :
Playing WAVE '/data/Haze.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
aplay: set_params:1305: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 44100
PERIOD_TIME: (125170 125171)  - This parameter value changes with every hw:0,.. value
PERIOD_SIZE: 5520 - This parameter value changes with every hw:0,.. value
PERIOD_BYTES: 11040 - This parameter value changes with every hw:0,.. value
PERIODS: 4 - This parameter value changes with every hw:0,.. value
BUFFER_TIME: (500680 500681) - This parameter value changes with every hw:0,.. value
BUFFER_SIZE: 22080 - This parameter value changes with every hw:0,.. value
BUFFER_BYTES: 44160 - This parameter value changes with every hw:0,.. value
TICK_TIME: 0
 

--
Thanks & Regards,
Arjav Parikh
cat /proc/asound/cards 
 0 [msm8953sndcardm]: msm8953-snd-car - msm8953-snd-card-mtp
                      msm8953-snd-card-mtp

/ # cat /proc/asound/devices 
  2: [ 0]   : control
  3: [ 0- 0]: digital audio playback
  4: [ 0- 0]: digital audio capture
  5: [ 0- 1]: digital audio playback
  6: [ 0- 1]: digital audio capture
  7: [ 0- 2]: digital audio playback
  8: [ 0- 2]: digital audio capture
  9: [ 0- 3]: digital audio playback
 10: [ 0- 3]: digital audio capture
 11: [ 0- 4]: digital audio playback
 12: [ 0- 5]: digital audio playback
 13: [ 0- 6]: digital audio capture
 14: [ 0- 7]: digital audio playback
 15: [ 0- 8]: digital audio capture
 16: [ 0-10]: digital audio playback
 17: [ 0-10]: digital audio capture
 18: [ 0-11]: digital audio capture
 19: [ 0-12]: digital audio playback
 20: [ 0-12]: digital audio capture
 21: [ 0-13]: digital audio playback
 22: [ 0-13]: digital audio capture
 23: [ 0-14]: digital audio playback
 24: [ 0-14]: digital audio capture
 25: [ 0-15]: digital audio playback
 26: [ 0-15]: digital audio capture
 27: [ 0-16]: digital audio playback
 28: [ 0-16]: digital audio capture
 29: [ 0-17]: digital audio playback
 30: [ 0-17]: digital audio capture
 31: [ 0-18]: digital audio playback
 33:        : timer
 34: [ 0-18]: digital audio capture
 35: [ 0-19]: digital audio capture
 36: [ 0-20]: digital audio capture
 37: [ 0-21]: digital audio capture
 38: [ 0-22]: digital audio capture
 39: [ 0-23]: digital audio capture
 40: [ 0-25]: digital audio playback
 41: [ 0-26]: digital audio capture
 42: [ 0-34]: digital audio playback
 43: [ 0-34]: digital audio capture
 44: [ 0-35]: digital audio playback
 45: [ 0-35]: digital audio capture
 46: [ 0-36]: digital audio playback
 47: [ 0-36]: digital audio capture
 48: [ 0-37]: digital audio playback
 49: [ 0-37]: digital audio capture
 50: [ 0- 9]: ?
 51: [ 0-24]: ?
 52: [ 0-27]: ?
 53: [ 0-28]: ?
 54: [ 0-29]: ?
 55: [ 0-30]: ?
 56: [ 0-31]: ?
 57: [ 0-32]: ?
 58: [ 0-33]: ?
 59: [ 0-38]: ?
 60: [ 0-39]: ?
 61: [ 0-40]: ?
 62: [ 0-34]: hardware dependent
 63: [ 0-32]: hardware dependent
 65: [ 0-37]: hardware dependent
 66: [ 0-30]: hardware dependent
 67: [ 0-31]: hardware dependent
 68: [ 0-11]: hardware dependent
 69: [ 0-12]: hardware dependent
 70: [ 0- 5]: hardware dependent
 71: [ 0- 6]: hardware dependent
 72: [ 0- 7]: hardware dependent
 73: [ 0- 8]: hardware dependent
 74: [ 0- 9]: hardware dependent
 75: [ 0-10]: hardware dependent
 76: [ 0-16]: hardware dependent
 77: [ 0-15]: hardware dependent
 78: [ 0-13]: hardware dependent
 79: [ 0-14]: hardware dependent
 80: [ 0-47]: hardware dependent
 81: [ 0-46]: hardware dependent

/ # cat /proc/asound/pcm 
00-00: MultiMedia1 (*) :  : playback 1 : capture 1
00-01: MultiMedia2 (*) :  : playback 1 : capture 1
00-02: CS-Voice (*) :  : playback 1 : capture 1
00-03: VoIP (*) :  : playback 1 : capture 1
00-04: ULL (*) :  : playback 1
00-05: Primary MI2S_RX Hostless (*) :  : playback 1
00-06: INT_FM Hostless (*) :  : capture 1
00-07: AFE-PROXY RX msm-stub-rx-7 :  : playback 1
00-08: AFE-PROXY TX msm-stub-tx-8 :  : capture 1
00-09: (Compress1) :  : playback 1 : capture 1
00-10: AUXPCM Hostless (*) :  : playback 1 : capture 1
00-11: Tertiary MI2S_TX Hostless (*) :  : capture 1
00-12: MultiMedia5 (*) :  : playback 1 : capture 1
00-13: Voice2 (*) :  : playback 1 : capture 1
00-14: MultiMedia9 (*) :  : playback 1 : capture 1
00-15: VoLTE (*) :  : playback 1 : capture 1
00-16: VoWLAN (*) :  : playback 1 : capture 1
00-17: INT_HFP_BT Hostless (*) :  : playback 1 : capture 1
00-18: MultiMedia6 (*) :  : playback 1 : capture 1
00-19: Listen 1 Audio Service (*) :  : capture 1
00-20: Listen 2 Audio Service (*) :  : capture 1
00-21: Listen 3 Audio Service (*) :  : capture 1
00-22: Listen 4 Audio Service (*) :  : capture 1
00-23: Listen 5 Audio Service (*) :  : capture 1
00-24: (Compress2) :  : playback 1
00-25: QUAT_MI2S Hostless (*) :  : playback 1
00-26: Senary_mi2s Capture snd-soc-dummy-dai-26 :  : capture 1
00-27: (Compress3) :  : playback 1
00-28: (Compress4) :  : playback 1
00-29: (Compress5) :  : playback 1
00-30: (Compress6) :  : playback 1
00-31: (Compress7) :  : playback 1
00-32: (Compress8) :  : playback 1
00-33: (Compress9) :  : playback 1
00-34: VoiceMMode1 (*) :  : playback 1 : capture 1
00-35: VoiceMMode2 (*) :  : playback 1 : capture 1
00-36: MultiMedia8 (*) :  : playback 1 : capture 1
00-37: QCHAT (*) :  : playback 1 : capture 1
00-38: (Compress10) :  : capture 1
00-39: (Compress11) :  : capture 1
00-40: (Compress12) :  : capture 1
00-41: (Primary MI2S Playback) :  : playback 1
00-42: (Secondary MI2S Playback) :  : playback 1
00-43: (Tertiary MI2S Capture) :  : capture 1
00-44: (Quaternary MI2S Playback) :  : playback 1
00-45: (Quaternary MI2S Capture) :  : capture 1
00-46: (AUX PCM Playback) :  : playback 1
00-47: (AUX PCM Capture) :  : capture 1
00-48: (Internal BT-SCO Playback) :  : playback 1
00-49: (Internal BT-SCO Capture) :  : capture 1
00-50: (Internal FM Playback) :  : playback 1
00-51: (Internal FM Capture) :  : capture 1
00-52: (AFE Playback) :  : playback 1
00-53: (AFE Capture) :  : capture 1
00-54: (Voice Uplink Capture) :  : capture 1
00-55: (Voice Downlink Capture) :  : capture 1
00-56: (Voice Farend Playback) :  : playback 1
00-57: (Voice2 Farend Playback) :  : playback 1
00-58: (Quinary MI2S Capture) :  : capture 1
00-59: (Quinary MI2S Playback) :  : playback 1

/ # aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=msm8953sndcardm
    msm8953-snd-card-mtp, 
    Default Audio Device
sysdefault:CARD=msm8953sndcardm
    msm8953-snd-card-mtp, 
    Default Audio Device

/ # arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 0: MultiMedia1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 1: MultiMedia2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 2: CS-Voice (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 3: VoIP (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 6: INT_FM Hostless (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 8: AFE-PROXY TX msm-stub-tx-8 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 10: AUXPCM Hostless (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 11: Tertiary MI2S_TX Hostless (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 12: MultiMedia5 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 13: Voice2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 14: MultiMedia9 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 15: VoLTE (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 16: VoWLAN (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 17: INT_HFP_BT Hostless (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 18: MultiMedia6 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 19: Listen 1 Audio Service (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 20: Listen 2 Audio Service (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 21: Listen 3 Audio Service (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 22: Listen 4 Audio Service (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 23: Listen 5 Audio Service (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 26: Senary_mi2s Capture snd-soc-dummy-dai-26 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 34: VoiceMMode1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 35: VoiceMMode2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 36: MultiMedia8 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 37: QCHAT (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

/data/alexa # ./patest_sine8 
PortAudio Test: output signed 8 bit sine wave.
before paHostApiInitializers[0].
ALSA version (build): 1.1.0
ALSA version (runtime): 1.1.0
BuildDeviceList: Ignoring ALSA plugin device [cards] of type [unknown]
BuildDeviceList: Found plugin [default] of type [unknown]
BuildDeviceList: Found plugin [sysdefault] of type [unknown]
BuildDeviceList: Found plugin [front] of type [unknown]
BuildDeviceList: Found plugin [rear] of type [unknown]
BuildDeviceList: Found plugin [center_lfe] of type [unknown]
BuildDeviceList: Found plugin [side] of type [unknown]
BuildDeviceList: Found plugin [surround21] of type [unknown]
BuildDeviceList: Found plugin [surround40] of type [unknown]
BuildDeviceList: Found plugin [surround41] of type [unknown]
BuildDeviceList: Found plugin [surround50] of type [unknown]
BuildDeviceList: Found plugin [surround51] of type [unknown]
BuildDeviceList: Found plugin [surround71] of type [unknown]
BuildDeviceList: Found plugin [iec958] of type [unknown]
BuildDeviceList: Found plugin [spdif] of type [unknown]
BuildDeviceList: Found plugin [hdmi] of type [unknown]
BuildDeviceList: Found plugin [dmix] of type [unknown]
BuildDeviceList: Ignoring ALSA plugin device [dsnoop] of type [unknown]
BuildDeviceList: Found plugin [modem] of type [unknown]
BuildDeviceList: Found plugin [phoneline] of type [unknown]
BuildDeviceList: Ignoring ALSA plugin device [hw] of type [hw]
BuildDeviceList: Ignoring ALSA plugin device [plughw] of type [plug]
BuildDeviceList: Ignoring ALSA plugin device [plug] of type [plug]
BuildDeviceList: Ignoring ALSA plugin device [shm] of type [shm]
BuildDeviceList: Ignoring ALSA plugin device [tee] of type [file]
BuildDeviceList: Ignoring ALSA plugin device [file] of type [file]
BuildDeviceList: Ignoring ALSA plugin device [null] of type [null]
BuildDeviceList: Filling device info for 47 devices
FillInDevInfo: Filling device info for: msm8953-snd-card-mtp: - (hw:0,0)
GropeDevice: collecting info ..
GropeDevice: collecting info ..
Default input device: msm8953-snd-card-mtp: - (hw:0,0)
Default output device: msm8953-snd-card-mtp: - (hw:0,0)
FillInDevInfo: Adding device msm8953-snd-card-mtp: - (hw:0,0): 0
FillInDevInfo: Filling device info for: msm8953-snd-card-mtp: - (hw:0,1)
GropeDevice: collecting info ..
GropeDevice: collecting info ..
FillInDevInfo: Adding device msm8953-snd-card-mtp: - (hw:0,1): 1
FillInDevInfo: Filling device info for: msm8953-snd-card-mtp: - (hw:0,2)
GropeDevice: collecting info ..
GropeDevice: collecting info ..
FillInDevInfo: Adding device msm8953-snd-card-mtp: - (hw:0,2): 2
FillInDevInfo: Filling device info for: msm8953-snd-card-mtp: - (hw:0,3)
GropeDevice: collecting info ..
GropeDevice: collecting info ..
FillInDevInfo: Adding device msm8953-snd-card-mtp: - (hw:0,3): 3
FillInDevInfo: Filling device info for: msm8953-snd-card-mtp: - (hw:0,4)
GropeDevice: collecting info ..
FillInDevInfo: Adding device msm8953-snd-card-mtp: - (hw:0,4): 4
FillInDevInfo: Filling device info for: msm8953-snd-card-mtp: - (hw:0,5)
Segmentation fault

_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux