2009-04-22 04:53:54     AD73311 driver and arecord resolution

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

2009-04-22 04:53:54     AD73311 driver and arecord resolution

Rob Maris (GERMANY)

Message: 73051   

 

Just for information:

 

when arecord is applied with an AD73311 sound device without additional option arguments, it is recording with 8-bit resolution. 16 bit is to be specified explicitly (-fS16_LE) 

QuoteReplyEditDelete

 

 

2009-04-22 21:57:49     Re: AD73311 driver and arecord resolution

Cliff Cai (CHINA)

Message: 73082   

 

This is application's default behaviour.

 

Cliff

QuoteReplyEditDelete

 

 

2009-04-23 01:15:02     Re: AD73311 driver and arecord resolution

miaolf miao (CHINA)

Message: 73084   

 

can you control volume? in my board, i can't. i found  set up register is invalid . this is a bug not resolved  i think. who can help me? thanks!

TranslateQuoteReplyEditDelete

 

 

2009-04-23 02:44:43     Re: AD73311 driver and arecord resolution

Rob Maris (GERMANY)

Message: 73085   

 

Volume cannot be controlled. The driver is in a state which should be appropriate for most applications an AD73311 is considered to being used for. ALSA mixer operations would have to be added. When you'd need to tailor the PGA gains to fixed values for your app, I'd advise to modify the driver on your own.

 

File: .../linux-2.6.x/sound/soc/blackfin/bf5xx-ad73311.c

 

Function: snd_ad73311_configure()

 

 

 

Cliff: do you mean default of driver, ALSA or arecord?

 

BTW: I don't find arecord.c in trunk. In contrast, aplay.c is present, but in a directory below blkfin-apps. At this time I'm aware of the following: Are all or most of the resources under blkfin-apps modified with respect to any standard code resources or even partially unique?

QuoteReplyEditDelete

 

 

2009-04-23 05:21:08     Re: AD73311 driver and arecord resolution

Cliff Cai (CHINA)

Message: 73092   

 

I meant arecord,arecord shares the same code with aplay,default format: SND_PCM_FORMAT_U8;speed:8000.channels:1.

 

AFAIK,those resources are all open source stuff,we almost not modify their source code.

 

Cliff

QuoteReplyEditDelete

 

 

2009-04-23 06:46:35     Re: AD73311 driver and arecord resolution

Jiri Beranek (CZECH REPUBLIC)

Message: 73096   

 

Attached files are modified ad73311 driver with vulume and gain controll.

 

Jiri Beranek

 

 

 

 

 

ad73311gost.h

ad73311gost.c

QuoteReplyEditDelete

 

 

2009-04-23 22:28:12     Re: AD73311 driver and arecord resolution

Cliff Cai (CHINA)

Message: 73115   

 

Jiri,

 

Thanks.If the codec works in mixed mode,we can control everything through mixer,but it seems "copy" callback is needed.

 

Cliff

 

 

QuoteReplyEditDelete

 

 

2009-04-24 03:00:38     Re: AD73311 driver and arecord resolution

miaolf miao (CHINA)

Message: 73116   

 

My problerm is ,when  I changed OGS value, output volume not change. In your board, Can you change you volume freely?

 

Thanks for you reply.

Attachments

Outcomes