[alsa-devel] [PATCH] asoc: add dummy codec
Gabriel M. Beddingfield
gabrbedd at gmail.com
Fri Apr 12 04:58:40 CEST 2013
On 04/11/2013 11:02 AM, Lars-Peter Clausen wrote:
>> Instead, wouldn't it be better to extend it by defining some platform data? Maybe something like:
> Either you want a dummy or you want one with specific requirements. For the
> former case use the dummy codec, for the later case add a proper driver.
> Putting these kinds of things in your board file is in my opinion a bad habit.
Well, I've seen a couple cases where a dummy codec /is/ the proper
driver and all that's needed is to restrict the formats that the DAI
supports (sample rate, etc).
Yes, we can always write a board-specific dummy codec with the
restricted formats -- but since there's already one in ASoC, why not
make it extensible?
More information about the Alsa-devel