linux-4.4.1/snd_soc_card_jack_new()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#w7621995]
#backlinks
*説明 [#jfea06fa]
-パス: [[linux-4.4.1/sound/soc/soc-jack.c]]
-FIXME: これは何?
--説明
**引数 [#qe0b8e4a]
-struct snd_soc_card *card
--
--[[linux-4.4.1/snd_soc_card]]
-const char *id
--
-int type
--
-struct snd_soc_jack *jack
--
--[[linux-4.4.1/snd_soc_jack]]
-struct snd_soc_jack_pin *pins
--
--[[linux-4.4.1/snd_soc_jack_pin]]
-unsigned int num_pins
--
**返り値 [#a1e2add4]
-int
--
**参考 [#v2264a9b]
*実装 [#a5a8dc85]
/**
* snd_soc_card_jack_new - Create a new jack
* @card: ASoC card
* @id: an identifying string for this jack
* @type: a bitmask of enum snd_jack_type values that c...
* this jack
* @jack: structure to use for the jack
* @pins: Array of jack pins to be added to the jack or...
* @num_pins: Number of elements in the @pins array
*
* Creates a new jack object.
*
* Returns zero if successful, or a negative error code ...
* On success jack will be initialised.
*/
int snd_soc_card_jack_new(struct snd_soc_card *card, con...
struct snd_soc_jack *jack, struct snd_soc_jack_p...
unsigned int num_pins)
{
int ret;
mutex_init(&jack->mutex);
jack->card = card;
INIT_LIST_HEAD(&jack->pins);
INIT_LIST_HEAD(&jack->jack_zones);
BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier);
-
--[[linux-4.4.1/mutex_init()]]
--[[linux-4.4.1/INIT_LIST_HEAD()]]
--[[linux-4.4.1/BLOCKING_INIT_NOTIFIER_HEAD()]]
ret = snd_jack_new(card->snd_card, id, type, &ja...
if (ret)
return ret;
-
--[[linux-4.4.1/snd_jack_new()]]
if (num_pins)
return snd_soc_jack_add_pins(jack, num_p...
-
--[[linux-4.4.1/snd_soc_jack_add_pins()]]
return 0;
}
EXPORT_SYMBOL_GPL(snd_soc_card_jack_new);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#a25ef9ef]
終了行:
*参照元 [#w7621995]
#backlinks
*説明 [#jfea06fa]
-パス: [[linux-4.4.1/sound/soc/soc-jack.c]]
-FIXME: これは何?
--説明
**引数 [#qe0b8e4a]
-struct snd_soc_card *card
--
--[[linux-4.4.1/snd_soc_card]]
-const char *id
--
-int type
--
-struct snd_soc_jack *jack
--
--[[linux-4.4.1/snd_soc_jack]]
-struct snd_soc_jack_pin *pins
--
--[[linux-4.4.1/snd_soc_jack_pin]]
-unsigned int num_pins
--
**返り値 [#a1e2add4]
-int
--
**参考 [#v2264a9b]
*実装 [#a5a8dc85]
/**
* snd_soc_card_jack_new - Create a new jack
* @card: ASoC card
* @id: an identifying string for this jack
* @type: a bitmask of enum snd_jack_type values that c...
* this jack
* @jack: structure to use for the jack
* @pins: Array of jack pins to be added to the jack or...
* @num_pins: Number of elements in the @pins array
*
* Creates a new jack object.
*
* Returns zero if successful, or a negative error code ...
* On success jack will be initialised.
*/
int snd_soc_card_jack_new(struct snd_soc_card *card, con...
struct snd_soc_jack *jack, struct snd_soc_jack_p...
unsigned int num_pins)
{
int ret;
mutex_init(&jack->mutex);
jack->card = card;
INIT_LIST_HEAD(&jack->pins);
INIT_LIST_HEAD(&jack->jack_zones);
BLOCKING_INIT_NOTIFIER_HEAD(&jack->notifier);
-
--[[linux-4.4.1/mutex_init()]]
--[[linux-4.4.1/INIT_LIST_HEAD()]]
--[[linux-4.4.1/BLOCKING_INIT_NOTIFIER_HEAD()]]
ret = snd_jack_new(card->snd_card, id, type, &ja...
if (ret)
return ret;
-
--[[linux-4.4.1/snd_jack_new()]]
if (num_pins)
return snd_soc_jack_add_pins(jack, num_p...
-
--[[linux-4.4.1/snd_soc_jack_add_pins()]]
return 0;
}
EXPORT_SYMBOL_GPL(snd_soc_card_jack_new);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
*コメント [#a25ef9ef]
ページ名: