![Freescale Semiconductor i.MX 6DualLite Reference Manual Download Page 206](http://html1.mh-extra.com/html/freescale-semiconductor/i-mx-6duallite/i-mx-6duallite_reference-manual_2330523206.webp)
27.7 Interrupts and Exceptions
S/PDIF Tx/Rx hardware block has many interrupts to indicate the success, exception and
event.
The driver handles the following interrupts:
• DPLL Lock and Loss Lock: saves the DPLL lock status. This is used when getting
the Rx sample rate.
• U/Q Channel Full and overrun/underrun: puts the U/Q channel register data into
queue buffer, and update the queue buffer write pointer.
• U/Q Channel Sync: saves the ID of the buffer whose U/Q data is ready for read out.
• U/Q Channel Error: resets the U/Q queue buffer.
27.8 Unit Test Preparation
• Set up the M-Audio Transit USB sound card by installing the M-Audio Transit driver
on your PC.
• Install WaveLab tools on your PC.
27.8.1 Tx test step
1. Plug optical line into [line|optical] port of M-Audio transit.
NOTE
Make sure that the [optical out] port of M-Audio transit has
no output (red light off) after plugging the optical line.
2. Start WaveLab, press the record button on the toolbar, set the record file name,
sample rate, channel number, and then start recording.
3. Run the following command on the board to play one wave file:
#aplay -D hw:[card id],[pcm id] audioXXkYYS.wav
• After finishing aplay, stop recording in WaveLab.
• Play the recorded wav file in wavelab to check if it works properly.
27.8.2 Rx test step
1. Plug optical line into [optical port] of M-Audio transit.
Interrupts and Exceptions
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
206
Freescale Semiconductor, Inc.