
11.04.2013 20:13, Gabriel M. Beddingfield пишет:
On 04/11/2013 09:03 AM, Stas Sergeev wrote:
What is the reason of adding platform data for a dummy driver?
Because some audio "codecs" have a static configuration or are configured by magic. (E.g. a modem in a phone.) I think that being able to declare a board-specific set of "dummy DAI's" in the board file is helpful.
I don't understand your suggestion yet. Currently this driver creates the platform device on its own. Do you propose to remove this first, and rely on the boards to define "snd-soc-dummy" device with plat data? Could you please also give a practical example where the current "snd-soc-dummy-dai" is not enough? My driver defines 2 DAIs, but I linked them both to "snd-soc-dummy-dai", and that seem to work. But I am not familiar with this subsystem, so maybe I did something wrong.