Hi Sankar.
We use this driver on imx6ull but it should work and for imx6ul, devicetree looks correct.
First, you need to check that the device is in the list of devices for audio playback (in my example the driver is statically linked)
# dmesg | grep "ALSA" -A 3
ALSA device list:
#0: imx PWM audio
random: fast init done
EXT4-fs (mmcblk1p1): INFO: recovery required on readonly filesystem
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: imxsndpwm [imx-snd-pwm], device 0: snd_pwm_imx [imx-snd-pwm DAC]
Subdevices: 1/1
Subdevice #0: subdevice #0
now you can use any sound player
wget http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02-8kHz.wav -O - | aplay
Connecting to www.music.helsinki.fi (128.214.222.15:80)
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
- 100% |*******************************| 1697k 0:00:00 ETA
mplayer http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02-128k.mp3
MPlayer 1.3.0-6.3.1 (C) 2000-2016 MPlayer Team
Playing http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02-128k.mp3.
Resolving www.music.helsinki.fi for AF_INET...
Connecting to server www.music.helsinki.fi[128.214.222.15]: 80...
Cache size set to 320 KBytes
Cache fill: 8.85% (28993 bytes)
Resolving www.music.helsinki.fi for AF_INET...
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Connecting to server www.music.helsinki.fi[128.214.222.15]: 80...
Resolving www.music.helsinki.fi for AF_INET...
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Connecting to server www.music.helsinki.fi[128.214.222.15]: 80...
Audio only file format detected.
Clip info:
Title: J.S.Bach: Partita E major, Gav
Artist: Sirkka V�is�nen, vl.
Album:
Year:
Comment:
Genre: Unknown
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 57.24.102 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 128.0 kbit/4.54% (ratio: 16000->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 53.7 (53.6) of 54.0 (54.0) 8.5% 0% $<50>
Exiting... (End of file)
Alexander