AnsweredAssumed Answered

2 adau1761 in Linux (zedboard based design)

Question asked by metinburak on May 21, 2014
Latest reply on May 26, 2014 by larsc

Hi,

 

I'm using the xcomm branch for linux, zynq-zed-adv7511.dts and HDL design from cf_adv7511_zed branch.

 

I want to use 2 codecs in my custom board with different names in alsamixer.

 

For 2 codecs with different names case;

Mr Larsc said

change in  driver line 102

from

struct snd_soc_card *card = &zed_adau1761_card; 

to

 

struct snd_soc_card *card = kmemdup(&zed_adau1761_card, sizeof(zed_adau1761_card), GFP_KERNEL); 

 

And give names by this function

of_property_read_string(of_name, "name", &card->name);

looking at device tree;

 

zed_adau1761_snd: zed_adau1761_snd {

          compatible = "zed-adau1761-snd";

          name = "Sound Card Nr.1";

          ...

};

 

Looking at the above devicetree and driver entries, can you clarify the places in the actual zynq-zed-adv7511.dts and driver?

where should i call this function of_property_read_string(of_name, "name", &card->name); in the driver and where should i enter the property name in devicetree?

Outcomes