Lines Matching refs:sound
76 i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev); in i2sbus_release_dev()
159 struct device_node *child = NULL, *sound = NULL; in i2sbus_add_dev() local
184 sound = child; in i2sbus_add_dev()
188 const u32 *id = of_get_property(sound, "layout-id", NULL); in i2sbus_add_dev()
192 snprintf(dev->sound.modalias, 32, in i2sbus_add_dev()
196 id = of_get_property(sound, "device-id", NULL); in i2sbus_add_dev()
203 snprintf(dev->sound.modalias, 32, in i2sbus_add_dev()
223 dev->sound.ofdev.archdata.dma_mask = macio->ofdev.archdata.dma_mask; in i2sbus_add_dev()
224 dev->sound.ofdev.dev.of_node = np; in i2sbus_add_dev()
225 dev->sound.ofdev.dev.dma_mask = &dev->sound.ofdev.archdata.dma_mask; in i2sbus_add_dev()
226 dev->sound.ofdev.dev.parent = &macio->ofdev.dev; in i2sbus_add_dev()
227 dev->sound.ofdev.dev.release = i2sbus_release_dev; in i2sbus_add_dev()
228 dev->sound.attach_codec = i2sbus_attach_codec; in i2sbus_add_dev()
229 dev->sound.detach_codec = i2sbus_detach_codec; in i2sbus_add_dev()
230 dev->sound.pcmid = -1; in i2sbus_add_dev()
234 INIT_LIST_HEAD(&dev->sound.codec_list); in i2sbus_add_dev()
305 if (soundbus_add_one(&dev->sound)) { in i2sbus_add_dev()
371 soundbus_remove_one(&i2sdev->sound); in i2sbus_remove()
386 if (i2sdev->sound.pcm) { in i2sbus_suspend()
388 snd_pcm_suspend_all(i2sdev->sound.pcm); in i2sbus_suspend()
392 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_suspend()
419 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_resume()