3 Jul
2012
3 Jul
'12
4:20 a.m.
Hello Mark,
On 7/2/2012 10:30 AM, Rajeev kumar wrote:
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 ?
Waiting for your reply,
Best Regards Rajeev
Best Regards Rajeev