AnsweredAssumed Answered

AD1934 interface with Beaglebone - AD193x codec

Question asked by nuttaljd on Jan 21, 2013
Latest reply on Jan 21, 2013 by ColemanR

Hey,

We are currently trying to interface the AD1934 DAC with the BeagleBone. We are going to use I2S and an external PLL clock generator for a master clock. The MCASP will be slaved to use the PLL clock and will generate the LRCLK and the Frame CLK.

 

Can I use the AD193x codec with the AD1934? It shows in the header of the AD193x that this may not be the case. The difference seems to be the ADC on the other devices. If so, should I just comment out the  ADC configuartions in the codec?

 

We have done some inital testing and have been able to get the the codec registered with ALSA and the SPI working. Amixer adjusts the DAC and we have viewed the SPI words being sent with an oscope. We still cannot get aplay to play an audio file. When we try to play an audio file this is the response we get in the terminal ...

 

# aplay Vivaldi.wav

Playing WAVE 'Vivaldi.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

aplay: set_params:1145: Unable to install hw params:

ACCESS:  RW_INTERLEAVED

FORMAT:  S16_LE

SUBFORMAT:  STD

SAMPLE_BITS: 16

FRAME_BITS: 32

CHANNELS: 2

RATE: 44100

PERIOD_TIME: (42666 42667)

PERIOD_SIZE: (1881 1882)

PERIOD_BYTES: (7524 7528)

PERIODS: (15 17)

BUFFER_TIME: (682653 682654)

BUFFER_SIZE: 30105

BUFFER_BYTES: 120420

TICK_TIME: 0

 

Any thoughts on the hw params error? Also I am going to attach the davinci evm file that we have altered to try to get the audio stream from the Bone.

 

 

.

Attachments

Outcomes