2009-05-07 23:34:49     ad73322 input gain by command line

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

2009-05-07 23:34:49     ad73322 input gain by command line

Vivek Vaid (UNITED STATES)

Message: 73844   

 

Hello

 

What would be the correct command-line (for amixer or anything else) to set gain of the ad73322 ?

 

I have one ad73322 on my custom board, and I am able to play output fine.

 

I have got the input working with a higher gain in the past by changing the source code, and recompiling.

 

I have tried some permutations of "amixer - c 0 ..", or "amixer -c plughw:0 -D 1" etc.

 

Essentially I want to increase gains of inputs plughw:0,1 and plughw:0,0 from commandline.

 

Thank you.

QuoteReplyEditDelete

 

 

2009-05-08 01:30:58     Re: ad73322 input gain by command line

Cliff Cai (CHINA)

Message: 73851   

 

Vivek:

 

Please refer to the AD73311 driver code provided by Jiri in following thread. It does work for changing gain by command line.

 

The idea is :configuring codec in mixed mode,inserting the gain value setting at the beginning of a PCM bit stream(see "copy" callbacks).and the changes are easy to be applied to AD73322 driver.

 

https://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?action=ForumBrowse&forum_id=39&_forum_action=ForumMessageBrowse&thread_id=33608

 

Cliff

QuoteReplyEditDelete

 

 

2009-05-15 22:06:03     Re: ad73322 input gain by command line

Vivek Vaid (UNITED STATES)

Message: 74119   

 

Cliff

 

Thank you. I decided to just tune the gains and keep them fixed in the code.

 

(1) Are you considering to include this code/feature in upcoming release of the ad733xx drivers ?

 

(2) Minor suggestion-

 

In AD73322.h i included following two bits for Reg-C.

 

#define PUIA        ( 1 << 2 )

#define PUAGT        ( 1 << 1 )

 

They were useful to me, so maybe for someone else too in future. Maybe you can consider including them in in your next driver release.

 

 

 

Thanks,

 

Best Regards

Attachments

    Outcomes