aplay crashes on 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.

When I try aplay -D with multiple hw:0,.... options, 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?

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

Please find below the list of play/record devices:
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

aplay -L -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
**** List of PLAYBACK 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 4: ULL (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 5: Primary MI2S_RX Hostless (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: msm8953sndcardm [msm8953-snd-card-mtp], device 7: AFE-PROXY RX msm-stub-rx-7 []
  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 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 25: QUAT_MI2S Hostless (*) []
  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

--
Thanks & Regards,
Arjav Parikh
_______________________________________________
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