[alsa-devel] [PATCH V3 3/4] ASoC: SPEAr spdif_out: Add spdif out support

Rajeev kumar rajeev-dlh.kumar at st.com
Mon Jul 2 07:00:25 CEST 2012


Hello Mark,

On 6/28/2012 5:57 PM, Mark Brown wrote:
>> +int spdif_soc_dai_probe(struct snd_soc_dai *dai)
>> >  +{
>> >  +	struct snd_soc_card *card = dai->card;
>> >  +	struct snd_soc_pcm_runtime *rtd = card->rtd;
>> >  +	struct snd_soc_codec *codec = rtd->codec;
>> >  +
>> >  +	return snd_soc_add_codec_controls(codec, spdif_out_controls,
>> >  +				ARRAY_SIZE(spdif_out_controls));
> We should add a framework thing for this...
>

I was going through the simaple-card.c file and I think that the above 
is possible if we have a pointer of "snd_kcontrol_new" in 
asoc_simple_card_info structure. In this case we can pass all the 
controls from board file (arch/arm/mach-*). Please share your opinion.

or,

Is there any other way to do this ?

Best Regards
Rajeev



More information about the Alsa-devel mailing list