IMX8MP - No audio during playback with SOF sound card

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MP - No audio during playback with SOF sound card

Jump to solution
584 Views
aporter28
Contributor I

Hi,

I am trying to run playback using the SOF sound card on the IMX8M Plus EVK, but I am not able to hear any audio from the headphone jack.

Here are the steps I am using to run the playback:

  1. Boot the device and interrupt to enter uboot
  2. Use "editenv fdtfile" and change the device tree name to "imx8mp-evk-sof-wm8960.dtb"
  3. Continue the boot
  4. Run "aplay -l" to obtain SOF sound card ID
  5. Run the following commands to initiate playback:
    1. amixer -c [sof_card_id] cset name="Left Output Mixer PCM Playback Switch" on
    2. amixer -c [sof_card_id] cset name="Right Output Mixer PCM Playback Switch" on
    3. aplay -Dhw:[sof_card_id],0 [path_to_wav_file]

The wav file used in this case is 32 bit, 48Khz stereo. I see no error when running the playback command.

I have also tried playing the same wav file using the default device tree and the wm8960 sound card, and I am able to hear the output.

Please let me know what I can do to solve this issue.

0 Kudos
Reply
1 Solution
323 Views
dbaluta
NXP Employee
NXP Employee

Hello @aporter28 ,

On my setup the control you want to modify is named 'Headphone'.

Assuming SOF card number is 0 please try this.

amixer -c 0 sset Headphone 80%


Also you can use the alsamixer TUI and modify the Headphone control


Can you share with us what project are you working on with the Sound Open Firmware? 

View solution in original post

0 Kudos
Reply
3 Replies
324 Views
dbaluta
NXP Employee
NXP Employee

Hello @aporter28 ,

On my setup the control you want to modify is named 'Headphone'.

Assuming SOF card number is 0 please try this.

amixer -c 0 sset Headphone 80%


Also you can use the alsamixer TUI and modify the Headphone control


Can you share with us what project are you working on with the Sound Open Firmware? 

0 Kudos
Reply
295 Views
aporter28
Contributor I

That worked great, thanks! I am currently just exploring the capabilities of SOF on NXP boards.

0 Kudos
Reply
410 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2291138%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8MP%20-%20No%20audio%20during%20playback%20with%20SOF%20sound%20card%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291138%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20run%20playback%20using%20the%20SOF%20sound%20card%20on%20the%20IMX8M%20Plus%20EVK%2C%20but%20I%20am%20not%20able%20to%20hear%20any%20audio%20from%20the%20headphone%20jack.%3C%2FP%3E%3CP%3EHere%20are%20the%20steps%20I%20am%20using%20to%20run%20the%20playback%3A%3C%2FP%3E%3COL%3E%3CLI%3EBoot%20the%20device%20and%20interrupt%20to%20enter%20uboot%3C%2FLI%3E%3CLI%3EUse%20%22editenv%20fdtfile%22%20and%20change%20the%20device%20tree%20name%20to%20%22imx8mp-evk-sof-wm8960.dtb%22%3C%2FLI%3E%3CLI%3EContinue%20the%20boot%3C%2FLI%3E%3CLI%3ERun%20%22aplay%20-l%22%20to%20obtain%20SOF%20sound%20card%20ID%3C%2FLI%3E%3CLI%3ERun%20the%20following%20commands%20to%20initiate%20playback%3A%3COL%3E%3CLI%3Eamixer%20-c%20%5Bsof_card_id%5D%20cset%20name%3D%22Left%20Output%20Mixer%20PCM%20Playback%20Switch%22%20on%3C%2FLI%3E%3CLI%3Eamixer%20-c%20%5Bsof_card_id%5D%20cset%20name%3D%22Right%20Output%20Mixer%20PCM%20Playback%20Switch%22%20on%3C%2FLI%3E%3CLI%3Eaplay%20-Dhw%3A%5Bsof_card_id%5D%2C0%20%5Bpath_to_wav_file%5D%3C%2FLI%3E%3C%2FOL%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3EThe%20wav%20file%20used%20in%20this%20case%20is%2032%20bit%2C%2048Khz%20stereo.%20I%20see%20no%20error%20when%20running%20the%20playback%20command.%3C%2FP%3E%3CP%3EI%20have%20also%20tried%20playing%20the%20same%20wav%20file%20using%20the%20default%20device%20tree%20and%20the%20wm8960%20sound%20card%2C%20and%20I%20am%20able%20to%20hear%20the%20output.%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20what%20I%20can%20do%20to%20solve%20this%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2291138%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMultimedia%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2292050%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20-%20No%20audio%20during%20playback%20with%20SOF%20sound%20card%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2292050%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258654%22%20target%3D%22_blank%22%3E%40aporter28%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EDid%20you%20refer%20this%20guide%3F%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fthesofproject.github.io%2Flatest%2Fgetting_started%2Fnxp%2Fsof_imx_user_guide.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ESOF%20User%20Guide%20on%20NXP%20i.MX8%20platforms%20%E2%80%94%20SOF%20Project%202.11.0%20documentation%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2294528%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20-%20No%20audio%20during%20playback%20with%20SOF%20sound%20card%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2294528%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThat%20worked%20great%2C%20thanks!%20I%20am%20currently%20just%20exploring%20the%20capabilities%20of%20SOF%20on%20NXP%20boards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2294152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20-%20No%20audio%20during%20playback%20with%20SOF%20sound%20card%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2294152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258654%22%20target%3D%22_blank%22%3E%40aporter28%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3E%3CBR%20%2F%3EOn%20my%20setup%20the%20control%20you%20want%20to%20modify%20is%20named%20'Headphone'.%3CBR%20%2F%3E%3CBR%20%2F%3EAssuming%20SOF%20card%20number%20is%200%20please%20try%20this.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CPRE%3Eamixer%20-c%200%20sset%20Headphone%2080%25%3C%2FPRE%3E%0A%3CP%3E%3CBR%20%2F%3EAlso%20you%20can%20use%20the%20alsamixer%20TUI%20and%20modify%20the%20Headphone%20control%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20share%20with%20us%20what%20project%20are%20you%20working%20on%20with%20the%20Sound%20Open%20Firmware%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E