[alsa-devel] [PATCH] asoc: add dummy codec

Stas Sergeev stsp at list.ru
Thu Apr 11 16:33:46 CEST 2013

11.04.2013 18:21, Lars-Peter Clausen пишет:
> On 04/11/2013 03:57 PM, Stas Sergeev wrote:
>> 11.04.2013 14:41, Lars-Peter Clausen пишет:
>>> On 04/11/2013 12:36 PM, Stas Sergeev wrote:
>>>> Hi.
>>>> The attached patch adds a dummy codec for the
>>>> asoc subsystem.
>>>> I use it with the driver that programs the soc to drive
>>>> I2S from an internal PLLs, and the audio then goes to
>>>> HDMI, so no external codec is used.
>>>> I've found spdif_transciever.c, which exactly is such a
>>>> dummy driver, but it is bound to the particular plat
>>>> device, so I made the device name a config option, and
>>>> if not set, the plat device is created with the default
>>>> name.
>>>> It may be possible to avoid the usage of the codec driver
>>>> at all, but I haven't succeeded with this, and the existance
>>>> of spdif_transciever.c suggests there is no such way.
>>>> Thoughts?
>>>> Signed-off-by: Stas Sergeev <stsp at users.sourceforge.net>
>>> Hi,
>>> There is already a dummy codec driver.
>>> Please take a look at sound/soc/soc-utils.c
>> Hi, I've seen that, but how can I get use of it?
>> It doesn't do snd_soc_register_codec(), and in debugfs
> It does:
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/sound/soc/soc-utils.c#n101
Arr, that's it, thank you!
It doesn't do so on an android kernel I have here
(based on linux-3.0), but it indeed does so in a git kernel...

More information about the Alsa-devel mailing list