2 Jul
2012
2 Jul
'12
7 a.m.
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