[alsa-devel] am335x: mcasp in DIT mode
yegorslists at googlemail.com
Fri Mar 1 11:53:53 CET 2013
I've solved the problem with DIT/SPDIF mode (see the issue description
In davinci_mcasp_hw_params() the DIT or I2S params will be set in the
beginning. DIT mode configures the DAVINCI_MCASP_TXMASK_REG and
And here comes the problem:
at the end of davinci_mcasp_hw_params() the
davinci_config_channel_size() will touch the same registers again and
thus overwrite the settings necessary for DIT. After I commented this
routine I got the sound over S/PDIF and sii9022a HDMI transmitter and
I could see the proper bits appearing on my oscilloscope.
What were the best way to solve this problem?
1. execute davinci_config_channel_size() only if not in DIT mode?
2. for DIT only change the DAVINCI_MCASP_TXMASK_REG according to channel width?
if (dev->op_mode == DAVINCI_MCASP_DIT_MODE)
More information about the Alsa-devel