Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Sound on AT91RM9200DK
PostPosted: Wed Oct 13, 2004 10:45 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
Has anyone used the sound capabilities on the DK?

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 20, 2004 9:25 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Hi Dapper,

the sound chipset on the AT91RM9200-DK is not usable. The AC97 mode of the serial synchronuous controller (SSC) has been removed from the datasheet since a while. Thus, this makes the AC97 audio chip on the DK useless. Now, the AC97 chip is not mounted anymore on the board. What you can you if you do not really need the AC97 feature in your application, you can use a I2S audio DAC like the micronas 3550. See the application note on ATMEL website about that.

Hope this helps.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 05, 2004 10:57 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
I've looked at the code and have added it to a linux driver file. I am getting an interrupt, but I don't see anything coming out of the SSC port. Any ideas on what I should look at?

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 09, 2004 6:51 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
I've tracked down the problem to something with the PDC. I can send data out directly to the port, but it won't send anything out when using the PDC.
Any ideas?

_________________
David Peters


Top
 Profile  
 
 Post subject: Similar problem on PDC driven SSC
PostPosted: Wed Mar 16, 2005 1:36 pm 
Offline

Joined: Mon Nov 22, 2004 4:15 pm
Posts: 73
Location: Florence.
On AT91RM9200-EK I am testing the DAC3550, which is interfaced to ARM9 by means of SSC1.
I follow the guidelines reported in 6020A-ATARM-11/03 "Connecting the ATMEL SSC to an I2S bus"
TF1 and TK1 are regularly generated..
The problem is that TD1 is always low !

However:
1)PDC pointers and counters are regularly updated, just as DMA is regularly working.
2)PDC status signal that Transmit is enabled.
3)If I disable PDC and transmit data writing by software to TDHR, data bits TD1 appear regularly on TD1.

Could you at last find where the problem is ?

Thank you for your attention.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 16, 2005 3:58 pm 
Offline

Joined: Thu Sep 16, 2004 3:10 pm
Posts: 30
Look in Linux->using PDC with SSC.
Someone sent a reply about the same problem you and I are having, but I haven't had time to look into it any further. If you get everything working, I'd be interested in your driver.

_________________
David Peters


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 16, 2005 7:17 pm 
Offline

Joined: Mon Nov 22, 2004 4:15 pm
Posts: 73
Location: Florence.
Yes, I found the hint correct.
The fact is that PDC pointers are DMA pointer, that are not concerned vith
operating system virtual address !

If
vector = (int *)kmalloc(16,GPP_KERNEL|_GPP_DMA):

// pSSC_>SSC_TPR = (AT91_REG)(vector); wrong assignment !

So you have to use the virt_to_bus function to set the PDC address:

pSSC_>SSC_TPR = (AT91_REG)virt_to_bus(vector);
pSSC_>SSC_TCR = 16;

vector = (int *)kmalloc(16,GPP_KERNEL|_GPP_DMA):

Once this is done, TD1 actually sends out data, as soon TF1/TK1 start.

Hope this help.

As soon I arrange the PDC update by means of IRQ - in order to have continuous output- I can send you the driver source of the application example..


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: