参照元

説明

せつめい

とりあえずメモ領域

snd-soc-core.ko

SoC のサウンドカードドライバが使う共通モジュール。

謎な点

デバイス追加時の動き

デバイスの追加の仕方(SoC 用サウンドカードドライバ側の init などで行う)
------------------------------------------------------------------------
struct snd_soc_device soc_dev = {
	...
};

static int __init xxxx_soc_init(void)
{
	dev = platform_device_alloc("soc-audio", -1); //★1
	
	platform_set_drvdata(dev, &soc_dev); //★2
	soc_dev.dev = &dev->dev; //★3
	ret = platform_device_add(dev);
	
	(...)
}

snd_soc_instantiate_card での処理

コメント


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS