Play on speaker using MQS protocol

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

Play on speaker using MQS protocol

360 Views
dhruvinrajpura
Contributor II

I am using IMX8ULP-EVK9 and on that I want to play audio on speaker from the A core with MQS protocol.

 

For that I checked the dmesg logs overthere I am not able to see any logs for "MQS"

 

I also checked necessary dts and dtsi files there also there is no node for "MQS".

 

Can anyone guide us how to enable MQS from A core and play audio(wav file) on speaker for IMX8ULP-EVK9. 

0 Kudos
Reply
2 Replies

346 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

You need to use some of the available MQS pins.

Enable MQS clock on CGC0/CGC1 adding these definitions on imx8ulp-clock.h and clk-imx8ulp.c.

And add it on device tree, you can use this as a reference:

imx91-11x11-evk-mqs.dts

Best regards.

 

0 Kudos
Reply

319 Views
dhruvinrajpura
Contributor II

Hi @JorgeCas 

I followed your guidence and changed necessary files in yocto by taking reference of imx91.

After that I boot up board and searched for base adress of sai4 which is mqs and found below logs

root@imx8ulp-9x9-lpddr4-evk:/# find -name "*2988*"                                                                                                    
./sys/kernel/debug/regmap/29880000.sai
./sys/class/devlink/platform:292c0000.clock-controller--platform:29880000.sai
./sys/class/devlink/platform:29800000.clock-controller--platform:29880000.sai
./sys/class/devlink/platform:298c0000.pinctrl--platform:29880000.sai
./sys/devices/platform/soc@0/29000000.bus/292c0000.clock-controller/consumer:platform:29880000.sai
./sys/devices/platform/soc@0/29800000.bus/29880000.sai
./sys/devices/platform/soc@0/29800000.bus/29800000.clock-controller/consumer:platform:29880000.sai
./sys/devices/platform/soc@0/29800000.bus/298c0000.pinctrl/consumer:platform:29880000.sai
./sys/devices/virtual/devlink/platform:292c0000.clock-controller--platform:29880000.sai
./sys/devices/virtual/devlink/platform:29800000.clock-controller--platform:29880000.sai
./sys/devices/virtual/devlink/platform:298c0000.pinctrl--platform:29880000.sai
./sys/bus/platform/devices/29880000.sai
./sys/bus/platform/drivers/fsl-sai/29880000.sai
./sys/firmware/devicetree/base/soc@0/bus@29800000/sai@29880000
./run/udev/data/+platform:29880000.sai

 

 

and I searched for mqs as well

root@imx8ulp-9x9-lpddr4-evk:/# find -name "*mqs*"                                                                                                     
./var/lib/dpkg/info/kernel-module-snd-soc-fsl-mqs-6.1.36+gecff08cfb258.postrm
./var/lib/dpkg/info/kernel-module-snd-soc-fsl-mqs-6.1.36+gecff08cfb258.list
./var/lib/dpkg/info/kernel-module-snd-soc-fsl-mqs-6.1.36+gecff08cfb258.md5sums
./var/lib/dpkg/info/kernel-module-snd-soc-fsl-mqs-6.1.36+gecff08cfb258.postinst
./lib/modules/6.1.36+gecff08cfb258/kernel/sound/soc/fsl/snd-soc-fsl-mqs.ko
./sys/kernel/debug/clk/mqs1
./sys/kernel/debug/clk/mqs1_gate
./sys/firmware/devicetree/base/soc@0/bus@29800000/pinctrl@298c0000/mqs1grp

 

Now to play file on speaker what I need to follow on A core of IMX8ULP-EVK9?

0 Kudos
Reply