# How do I play a simple audio file from the cmd line?

**URL:** <https://mangoh.discourse.group/t/how-do-i-play-a-simple-audio-file-from-the-cmd-line/4130>\
**Category:** mangOH Red\
**Created:** [March 24, 2020, 3:48pm UTC](https://mangoh.discourse.group/t/how-do-i-play-a-simple-audio-file-from-the-cmd-line/4130 "2020-03-24T15:48:35Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 5, 2020, 5:11am UTC](https://mangoh.discourse.group/t/how-do-i-play-a-simple-audio-file-from-the-cmd-line/4130/14 "2020-05-05T05:11:40Z")

</div>

I don’t see problem on my WP7607 module even no AT command:

root@swi-mdm9x28-wp:~# amix ‘PRI\_RX Audio Mixer MultiMedia1’ 1  
root@swi-mdm9x28-wp:~# amix ‘Sys Clock Enable Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘Capture PGA Mute Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘Digital Playback Mute Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘Digital Playback Volume’ 192  
capability: volume  
dBscale- min=-72.00dB step=0.37dB max=2.55dB mute=1  
min = ffffe3e0 max = ffval = c0Value = 1.92dB  
root@swi-mdm9x28-wp:~# amix ‘Speaker Playback Volume’ 57  
capability: volume  
dBscale- min=-57.00dB step=1.00dB max=0.63dB mute=0  
min = ffffe9bc max = 3fval = 39Value = 0.57dB  
root@swi-mdm9x28-wp:~# amix ‘Speaker Playback Mute Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘SPKOUTP VDD Enable Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘SPKOUTN VDD Enable Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘SPKOUTP Mute Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘SPKOUTN Mute Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘SPKOUTP Enable Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘SPKOUTN Enable Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘ADC Mute All Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘Speaker Function’ 1  
Value: 1 idx:0  
[66.043157] wm8944-codec wm8944-codec: ASoC: DAPM unknown pin Ext Spk Bottom Pos  
[66.050604] wm8944-codec wm8944-codec: ASoC: DAPM unknown pin Ext Spk Bottom Neg  
[66.057830] wm8944-codec wm8944-codec: ASoC: DAPM unknown pin Ext Spk Top Pos  
[66.065434] wm8944-codec wm8944-codec: ASoC: DAPM unknown pin Ext Spk Top Neg  
root@swi-mdm9x28-wp:~# amix ‘SPKOUTP Mixer Speak PGA to Speaker P Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘SPKOUTN Mixer Speak PGA to Speaker N Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘Speaker Mixer DAC to Speak PGA Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘MultiMedia1 Mixer PRI\_TX’ 1  
root@swi-mdm9x28-wp:~# amix ‘Input PGA Enable Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘Left ADC Enable Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘Input PGA AUX to Invert InPGA Switch’ 1  
root@swi-mdm9x28-wp:~# amix ‘Input PGA IN1 to InPGA Switch’ 1  
Value: 1 idx:0  
root@swi-mdm9x28-wp:~# amix ‘PRI\_MI2S\_RX Audio Mixer MultiMedia1’ 1  
root@swi-mdm9x28-wp:~# aplay ./0-to-9.wav  
aplay: Playing ‘./0-to-9.wav’:Signed 16 bit Little Endian  
buffer\_bytes = (1024,1024) omin=0 omax=0 int=1 empty=0  
period\_bytes = (128,128) omin=0 omax=0 int=1 empty=0  
[94.597620] afe\_send\_custom\_topology\_block: AFE SVC cal has invalid size: 0!  
[94.603809] afe\_send\_custom\_topology: No cal sent for cal\_index 7! ret -22  
[94.611093] afe\_get\_cal\_topology\_id: [AFE\_TOPOLOGY\_CAL] not initialized for this port 4096  
[94.640234] q6asm\_callback: cmd = 0x10da1 returned error = 0x3  
[94.645162] q6asm\_send\_cal: DSP returned error[3] audio audstrm cal send  
[94.662618] adm\_callback: cmd = 0x10328 returned error = 0x3  
[94.667332] send\_adm\_cal\_block: DSP returned error[ADSP\_EUNSUPPORTED]  
Aplay: Done playing  
[100.715822] BUG: sleeping function called from invalid context at /usr/src/kernel/kernel/locking/mutex.c:97  
[100.724533] in\_atomic(): 0, irqs\_disabled(): 128, pid: 1759, name: aplay  
root@swi-mdm9x28-wp:~# pwd  
/home/root  
root@swi-mdm9x28-wp:~# cm info  
Device: WP7607  
IMEI: 359779081234565  
IMEISV: 6  
FSN: VN730485080103  
Firmware Version: SWI9X07Y\_02.28.03.05 000000 jenkins 2019/07/08 11:04:16  
Bootloader Version: SWI9X07Y\_[134.606893] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv\_addr:0x3a MSTR\_STS:0x0c1300c8 OPER:0x00000090  
02.28.03.05 000000 jenkins 2019/07/08 11:04:16  
[134.628097] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv\_addr:0x3a MSTR\_STS:0x0c1300c8 OPER:0x00000090  
MCU Version: 002.011  
PRI Part Number (PN): 9908958  
PRI Revision: 001.000  
Carrier PRI Name: GENERIC  
Carrier PRI Revision: 002.073\_000  
SKU: 1104301  
Last Reset Cause: Reset, User Requested  
Resets Count: Expected: 101 Unexpected: 3  
root@swi-mdm9x28-wp:~#

---

_[View the full topic](https://mangoh.discourse.group/t/how-do-i-play-a-simple-audio-file-from-the-cmd-line/4130)._
