[alsa-devel] [PATCH 2/2] sound: asoc: Adding support for STA529 Audio Codec

rajeev rajeev-dlh.kumar at st.com
Tue Mar 22 06:53:40 CET 2011

Hi Mark

On 3/21/2011 5:37 PM, Mark Brown wrote:
> On Mon, Mar 21, 2011 at 04:59:35PM +0530, rajeev wrote:
>> I agree. So should V2 implement a way in which the register settings desired by
>> STA529 (other than the default values) for PLAY and RECORD functionality are programmed
>> by means of a hw_params() call?
> Without any visibility of what is being configured it's hard to say if
> hw_params() is the appropriate place.  For routing controls you'd
> usually use DAPM controls.
The configuration is related to Serial-to-parallel audio interface,Parallel-to-serial audio interface
,ADC configuration register etc.These are the basic setting related to initialization for sta529 codec.
Can I make it in this way
In probe function read the corresponding register value from register cache and write the actual value to the codec.
like it is done in [1]

[1] http://lxr.linux.no/linux+v2.6.38/sound/soc/codecs/tlv320aic23.c#L652

Best Regards

More information about the Alsa-devel mailing list