Lines Matching refs:media_dev
44 mdev = subs->stream->chip->media_dev; in snd_media_stream_init()
56 mctl->media_dev = mdev; in snd_media_stream_init()
70 ret = media_device_register_entity(mctl->media_dev, in snd_media_stream_init()
124 mdev = mctl->media_dev; in snd_media_stream_delete()
143 mutex_lock(&mctl->media_dev->graph_mutex); in snd_media_start_pipeline()
144 if (mctl->media_dev->enable_source) in snd_media_start_pipeline()
145 ret = mctl->media_dev->enable_source(&mctl->media_entity, in snd_media_start_pipeline()
147 mutex_unlock(&mctl->media_dev->graph_mutex); in snd_media_start_pipeline()
158 mutex_lock(&mctl->media_dev->graph_mutex); in snd_media_stop_pipeline()
159 if (mctl->media_dev->disable_source) in snd_media_stop_pipeline()
160 mctl->media_dev->disable_source(&mctl->media_entity); in snd_media_stop_pipeline()
161 mutex_unlock(&mctl->media_dev->graph_mutex); in snd_media_stop_pipeline()
169 struct media_device *mdev = chip->media_dev; in snd_media_mixer_init()
197 mctl->media_dev = mdev; in snd_media_mixer_init()
205 ret = media_device_register_entity(mctl->media_dev, in snd_media_mixer_init()
230 struct media_device *mdev = chip->media_dev; in snd_media_mixer_delete()
266 if (chip->media_dev) { in snd_media_device_create()
267 mdev = chip->media_dev; in snd_media_device_create()
276 chip->media_dev = mdev; in snd_media_device_create()
299 chip->media_dev = NULL; in snd_media_device_create()
312 struct media_device *mdev = chip->media_dev; in snd_media_device_delete()
325 chip->media_dev = NULL; in snd_media_device_delete()