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  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: AT91RM9200-Ek sound driver for DAC3550a
PostPosted: Tue Dec 21, 2004 3:33 pm 
Offline

Joined: Tue Dec 21, 2004 3:29 pm
Posts: 9
Hi

Just started to play around with AT91RM9200-Ek dev board from Atmel. The board has an on-board DAC3550a chip for sound. Has anybody got it working for linux and know how and where to find drivers for the kernel?

/Alexander


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 02, 2005 11:42 am 
Offline

Joined: Tue Mar 01, 2005 2:59 pm
Posts: 12
have you tried the givne linux distribution from ftp://81.80.104.162

linux-2.4.27-vrs1.tar.bz2.

it contains a full support for the board.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 02, 2005 1:42 pm 
Offline

Joined: Tue Dec 21, 2004 3:29 pm
Posts: 9
Not really. There are no sound driver in that kernel


Top
 Profile  
 
 Post subject: Difficulties on PDC driven SSC
PostPosted: Wed Mar 16, 2005 1:44 pm 
Offline

Joined: Mon Nov 22, 2004 4:15 pm
Posts: 73
Location: Florence.
I did not find a Linux ready to use driver, maybe you found it ?

Anyway I wrote down my own driver, and found this problem:
maybe you already found the solution.

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.

Can somebody solve such problem ?

Some other examples of SSC management ?

Thank you for your attention.


Top
 Profile  
 
 Post subject: Working
PostPosted: Mon Mar 21, 2005 12:41 pm 
Offline

Joined: Tue Dec 21, 2004 3:29 pm
Posts: 9
We have a working driver now. I will post it as soon as I have got time to clean it up

The problem you have is that you have to convert you virtual pointers to physical and make sure that the memory is continuous. The pdc is sending a memory that happens to contain zeros at the moment


Top
 Profile  
 
 Post subject: Re: Working
PostPosted: Wed Jun 29, 2005 3:56 pm 
Offline

Joined: Mon Jun 27, 2005 7:23 pm
Posts: 1
Alexander Saers wrote:
We have a working driver now. I will post it as soon as I have got time to clean it up

The problem you have is that you have to convert you virtual pointers to physical and make sure that the memory is continuous. The pdc is sending a memory that happens to contain zeros at the moment


Hi Alexander

I was just checking to see if you have already posted the driver, if so how can I get hold of it?

Many Thanks.

Jad


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 04, 2005 9:28 am 
Offline

Joined: Thu Apr 08, 2004 3:41 pm
Posts: 26
I'd like to find out where I can get a copy of the 3550 driver too.

Takk


Top
 Profile  
 
 Post subject: Driver
PostPosted: Wed Jul 06, 2005 12:00 am 
Offline

Joined: Tue Dec 21, 2004 3:29 pm
Posts: 9
Hi
Sorry about the delay.

I and a friend developed a very simple driver for the dac3550a chip when we where doing our master thesis in computer science. The driver doesn't support much but it worked with madplay. It was never intended to be used more than experimental :). Now we have completed our master thesis and no longer has access to the AT91RM9200-EK dev board but I think I have the latest version laying around here somewhere. I will clean it up a bit and check with the company we did the master thesis for "trade secret" issues. Hopefully i will post the driver tomorrow.

If you want me to be able to verify the driver you could always get me a new evaluation board to play around with ;). Or even a job would be nice ;)

One problem might be that we used another input chip together in the same driver. This might be a problem but I cant say that it will break the playback


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 06, 2005 4:41 pm 
Offline

Joined: Thu Apr 08, 2004 3:41 pm
Posts: 26
Alexander,

Thanks (in advance) for posting the code you did for your Thesis. Don't worry about cleaning it up.

Also, is it possible to get a copy of your Thesis as well?


Top
 Profile  
 
 Post subject: At last
PostPosted: Mon Aug 01, 2005 9:53 am 
Offline

Joined: Tue Dec 21, 2004 3:29 pm
Posts: 9
Hi

Finaly after a nice vacation I was able to get my hands on the driver :). Sorry about the delay :(

Just go to http://arm.hightech.nu and you will find all the information you need (I hope).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 15, 2005 12:36 am 
Offline

Joined: Sun Dec 11, 2005 1:17 am
Posts: 17
hi
i try to get a squeek out of dac3550a on at91rm9200-ek. i've tried Alexander Saers driver with madplay - without success. it 'plays' but the output is silent.
with setting some weird values to slot_by_frame and bits_by_slot i could get some noise, but with 2/16 it remains perfectly silent, even when i fill at91snd_device->empty with wav_file data from the example.
it looks like i have the same problem as Misha, but even setting at91_ssc1->ssc_thr in loop doesn't help :(


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 18, 2005 11:25 pm 
Offline

Joined: Sun Dec 11, 2005 1:17 am
Posts: 17
ok. now it works :)
here's a patch for Alexander Saers' driver. hope it helps ;)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 31, 2005 1:38 am 
Offline

Joined: Sun Dec 11, 2005 1:17 am
Posts: 17
hi and happy new year ;)
i've updated Alexander Saers code with following functions:
1. support for mono samples
2. support for different bitrates (not heavily tested)
3. basic aumix support (volume, right/left channel balance)

update: to play and mix without hassle create links /dev/dsp and /dev/mixer pointing to /dev/at91snd/0


Top
 Profile  
 
 Post subject: DAC3550A Driver repost request
PostPosted: Wed Feb 22, 2006 5:53 am 
Offline

Joined: Wed Feb 22, 2006 5:50 am
Posts: 1
Hi liftboy,

Could you repost that driver file? Apparently it's a dead link after the forums were 'updated'.

Thanks
Blair


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 25, 2006 12:31 am 
Offline

Joined: Sun Dec 11, 2005 1:17 am
Posts: 17
here you are (attention: ugly, buggy code!) ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 25 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: