Lines Matching defs:sound
15 #include <sound/core.h>
78 i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev);
153 struct device_node *child = NULL, *sound = NULL;
176 if (strcmp(child->name, "sound") == 0) {
178 sound = child;
182 const u32 *id = of_get_property(sound, "layout-id", NULL);
186 snprintf(dev->sound.modalias, 32,
187 "sound-layout-%d", layout);
190 id = of_get_property(sound, "device-id", NULL);
196 snprintf(dev->sound.modalias, 32,
216 dev->sound.ofdev.archdata.dma_mask = macio->ofdev.archdata.dma_mask;
217 dev->sound.ofdev.dev.of_node = np;
218 dev->sound.ofdev.dev.dma_mask = &dev->sound.ofdev.archdata.dma_mask;
219 dev->sound.ofdev.dev.parent = &macio->ofdev.dev;
220 dev->sound.ofdev.dev.release = i2sbus_release_dev;
221 dev->sound.attach_codec = i2sbus_attach_codec;
222 dev->sound.detach_codec = i2sbus_detach_codec;
223 dev->sound.pcmid = -1;
227 INIT_LIST_HEAD(&dev->sound.codec_list);
293 if (soundbus_add_one(&dev->sound)) {
359 soundbus_remove_one(&i2sdev->sound);
374 if (i2sdev->sound.pcm) {
376 snd_pcm_suspend_all(i2sdev->sound.pcm);
380 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) {
407 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) {