Lines Matching refs:media_entity
42 struct media_entity *entity; in snd_media_stream_init()
59 mctl->media_entity.function = MEDIA_ENT_F_AUDIO_PLAYBACK; in snd_media_stream_init()
64 mctl->media_entity.function = MEDIA_ENT_F_AUDIO_CAPTURE; in snd_media_stream_init()
68 mctl->media_entity.name = pcm->name; in snd_media_stream_init()
69 media_entity_pads_init(&mctl->media_entity, 1, &mctl->media_pad); in snd_media_stream_init()
71 &mctl->media_entity); in snd_media_stream_init()
82 mctl->intf_link = media_create_intf_link(&mctl->media_entity, in snd_media_stream_init()
95 &mctl->media_entity, 0, in snd_media_stream_init()
111 media_device_unregister_entity(&mctl->media_entity); in snd_media_stream_init()
127 media_device_unregister_entity(&mctl->media_entity); in snd_media_stream_delete()
128 media_entity_cleanup(&mctl->media_entity); in snd_media_stream_delete()
145 ret = mctl->media_dev->enable_source(&mctl->media_entity, in snd_media_start_pipeline()
160 mctl->media_dev->disable_source(&mctl->media_entity); in snd_media_stop_pipeline()
198 mctl->media_entity.function = MEDIA_ENT_F_AUDIO_MIXER; in snd_media_mixer_init()
199 mctl->media_entity.name = chip->card->mixername; in snd_media_mixer_init()
203 media_entity_pads_init(&mctl->media_entity, MEDIA_MIXER_PAD_MAX, in snd_media_mixer_init()
206 &mctl->media_entity); in snd_media_mixer_init()
212 mctl->intf_link = media_create_intf_link(&mctl->media_entity, in snd_media_mixer_init()
216 media_device_unregister_entity(&mctl->media_entity); in snd_media_mixer_init()
217 media_entity_cleanup(&mctl->media_entity); in snd_media_mixer_init()
243 media_device_unregister_entity(&mctl->media_entity); in snd_media_mixer_delete()
244 media_entity_cleanup(&mctl->media_entity); in snd_media_mixer_delete()