2011-03-07 07:38:59     AD73311 - AMIXER

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

2011-03-07 07:38:59     AD73311 - AMIXER

Frank Gill (UNITED STATES)

Message: 98678   

 

Hi guys,

 

I was wondering if anyone has had any issues with AD73311 and volume via amixer?

 

Basically I'm trying to increase/decrease the volume but am unable to.

 

I'm getting the following:

 

alsa-lib-1.0.18/src/control/control.c:909:(snd_ctl_open_noupdate) Invalid CTL 0

 

Anything I do via amixer it complains about not being able to find Master.

 

Anyone have any ideas or similar problems that they may have worked around?

 

I'm using 2010RC5 on a custom board.

 

(arecord | aplay works fine - I can hear everything loud and clear. I just want to be able to adjust volume settings).

 

Thanks in advance.

QuoteReplyEditDelete

 

 

2011-03-07 08:00:15     Re: AD73311 - AMIXER

Mike Frysinger (UNITED STATES)

Message: 98679   

 

i'm pretty sure the AD73311 codec is the one that doesnt support reprogramming of its control regs once it powered on.  you have to reset the part anytime you want to change settings.

 

have you hooked up a GPIO to the codec's reset line ?  and defined it in your Kconfig appropriately ?

QuoteReplyEditDelete

 

 

2011-03-07 22:36:51     Re: AD73311 - AMIXER

Sonic Zhang (CHINA)

Message: 98696   

 

Amixer is not supported in ad73311 in 2010R1 release. A patch to change volume between playings on ad73311 was applied to SVN trunk. Make sure you connect proper GPIO PIN to reset ad73311.

QuoteReplyEditDelete

 

 

2011-03-08 02:15:23     Re: AD73311 - AMIXER

Frank Gill (UNITED STATES)

Message: 98701   

 

Thanks Mike and Sonic. I didn't know about the reset issue. I'll have a look at the patch.

QuoteReplyEditDelete

 

 

2011-03-09 02:53:14     Re: AD73311 - AMIXER

Frank Gill (UNITED STATES)

Message: 98753   

 

So I just synced with Trunk and took a look at the codec mixer fix.

 

I left the default options for GPIO_RESET in the menu configuration and compiled. (I shorted the Chip Select and Reset). I also put in a couple of printks in snd_ad73311_reset(...)  at the beginning and end. Those are showing up in my dmesg. When I load the module I get the following output:

ad73311: resetting the codec

ad73311: GPIO_RESET - 4

ad73311: codec has been reset

asoc: ad73311-hifi <-> bfin-i2s.0 mapping ok

   #0: bf5xx_ad73311

 

When I'm running amixer, I'm expecting to see the following, but I actually don't get any output. It just shows me another prompt.

 

(copy and pasted from Rob Maris' thread on the issue earlier - the one where he discusses his patch)

root: /> amixer Simple mixer control 'IGAIN',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 2 [29%] Simple mixer control 'OGAIN',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 5 [71%] Simple mixer control 'SEEN',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'SRATE',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 3 Mono: 0 [0%]

 

Am I missing something? Haven't worked with ALSA before so this is all a bit new.

 

arecord | aplay are still working fine.

 

Bugreport in attachments.

 

 

 

bugreport.tar.gz

QuoteReplyEditDelete

 

 

2011-03-10 05:26:37     Re: AD73311 - AMIXER

Scott Jiang (CHINA)

Message: 98845   

 

A new patch has been checked in, please update trunk and have a try.

Attachments

Outcomes