2010-03-31 09:28:11     adau1361 device driver does not work unless....

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-03-31 09:28:11     adau1361 device driver does not work unless....

Lars Weber Rasmussen (DENMARK)

Message: 87922   

 

Hi BF uClinux team!

 

I have downloaded svn9538 to get the new adau1361 device driver support. Thanks for supporting this device!

 

The driver does not work out of box, as all settings does not get into the codec registers. Codec PLL has to be enabled to the core before you can ( init ) write to the internal registers ( besides R0 & R1 ). I have attached my modified adau1361.c driver code.

 

I will assume adau1761 driver has the same issue.

 

adau1361.c

QuoteReplyEditDelete

 

 

2010-03-31 14:32:02     Re: adau1361 device driver does not work unless....

Mike Frysinger (UNITED STATES)

Message: 87934   

 

you should post a diff (run `svn diff`) instead of a whole file

QuoteReplyEditDelete

 

 

2010-04-01 01:39:48     Re: adau1361 device driver does not work unless....

Cliff Cai (CHINA)

Message: 87949   

 

Hi Lars,

 

This driver is not fully tested,your patch seems make things more stable.

 

 

 

Thanks

 

Cliff

QuoteReplyEditDelete

 

 

2010-04-01 05:45:53     Re: adau1361 device driver does not work unless....

Cliff Cai (CHINA)

Message: 87974   

 

Hi Lars,

 

Another question,Could you tell me if the headphone output on your hardware is normal?

 

Thanks

 

Cliff

QuoteReplyEditDelete

 

 

2010-04-06 01:34:52     Re: adau1361 device driver does not work unless....

Lars Weber Rasmussen (DENMARK)

Message: 88119   

 

Hi Cai!

 

the volume starts at normal but ramp down to almost not hearable. The ramp time is about 3-4 sec.

 

I will look into this today. It could be a register which is not initialized correct.

 

I will switch to line out to see if the part shows the same behaviour.

 

/lars

QuoteReplyEditDelete

 

 

2010-04-06 03:40:45     Re: adau1361 device driver does not work unless....

Cliff Cai (CHINA)

Message: 88137   

 

Lars,

 

The problem has been fixed with my latest check in.

 

Since this driver has not been fully tested yet,So, feel free to let me know if you encounter any problems.

 

Thanks

 

 

 

Cliff

QuoteReplyEditDelete

 

 

2010-04-07 01:00:26     Re: adau1361 device driver does not work unless....

Lars Weber Rasmussen (DENMARK)

Message: 88160   

 

Hi Cai!

 

I also made it to work yesterday with register settings as in attached header file. I have been focusing on the dac side only.

 

br /lars

 

adau1361.h

QuoteReplyEditDelete

 

 

2010-08-06 02:38:11     Re: adau1361 device driver does not work unless....

Lars Weber Rasmussen (DENMARK)

Message: 92199   

 

Hi Robin & Team!

 

Do you have any plans to support ADAU1361/1761 in multichannel mode?

 

I am working on a project where I need from 2-4 stereo codecs on a single SPORT. I will have to enable DRxSEC for this purpose and will need multichannel support.

 

BR

 

Lars

QuoteReplyEditDelete

 

 

2010-08-07 15:45:36     Re: adau1361 device driver does not work unless....

Mike Frysinger (UNITED STATES)

Message: 92243   

 

ive opened a tracker item here:

  blackfin.uclinux.org/gf/tracker/6160

 

what timeframe did you need things in ?

QuoteReplyEditDelete

 

 

2010-08-08 02:38:36     Re: adau1361 device driver does not work unless....

Lars Weber Rasmussen (DENMARK)

Message: 92246   

 

Hi Mike!

 

I am working on a project now - so sooner the better.

 

BR

 

Lars

QuoteReplyEditDelete

 

 

2010-08-10 04:17:06     Re: adau1361 device driver does not work unless....

Sonic Zhang (CHINA)

Message: 92284   

 

The adau1361 driver is now owned by Cliff in SDC team. But, he told me that he has no time to revise this driver before finishing a codec algorithm task.

QuoteReplyEditDelete

 

 

2010-08-12 06:33:07     Re: adau1361 device driver does not work unless....

Lars Weber Rasmussen (DENMARK)

Message: 92369   

 

Hi all!

 

It has come to my attention that the CODEC DOES NOT TRISTATE ADC_DATA line while not filling data in the slots under TDM comminucation. This mean the codec will not support 4 ( in case of ADAU1761 - 8 ) ADC channels on a single seriel data line on a BF SPORT, like other codecs in TDM mode does. You will have to use both the primary AND secondary data receive lines to support more than 1 stereo ADC. DAC's will of course work in TDM mode.

 

In our design we dont use the DAC's at all, and will have to use both primary and secondary data rx lines for the 2 Stereo ADC's  ( codec's ) on one sport. We will also have to use both sports.

 

According to your colleague in ADAU team:

 

"However, the customer should note that this mode (TDM4) might not be incredibly useful, depending on their application. Even though it can be put into TDM4 mode, the ADAU1361 can only populate two of the four slots with data. The other two unused channels will not carry any other data. The serial port also does not tristate the data line during the unused channels, so other devices cannot drive the line during the unused slots."

 

 

This is a fact for all current ADAU's.

 

So my conclussion: TDM mode is useless for the ADC's. We will have to use I2S communication, by just enabe secondary SPORT receive data line.

 

br/lars

Attachments

Outcomes