Home
last modified time | relevance | path

Searched refs:i2sdev (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/sound/aoa/soundbus/i2sbus/
Dcontrol.c41 struct i2sbus_dev *i2sdev) in i2sbus_control_add_dev() argument
45 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
46 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev()
47 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev()
48 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev()
49 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev()
50 i2sdev->clock_disable = pmf_find_function(np, "clock-disable"); in i2sbus_control_add_dev()
57 if (i2sdev->bus_number != 0 && i2sdev->bus_number != 1 && in i2sbus_control_add_dev()
58 (!i2sdev->enable || in i2sbus_control_add_dev()
59 !i2sdev->cell_enable || !i2sdev->clock_enable || in i2sbus_control_add_dev()
[all …]
Dpcm.c19 static inline void get_pcm_info(struct i2sbus_dev *i2sdev, int in, in get_pcm_info() argument
24 *pi = &i2sdev->in; in get_pcm_info()
26 *other = &i2sdev->out; in get_pcm_info()
29 *pi = &i2sdev->out; in get_pcm_info()
31 *other = &i2sdev->in; in get_pcm_info()
73 static int i2sbus_pcm_open(struct i2sbus_dev *i2sdev, int in) in i2sbus_pcm_open() argument
87 mutex_lock(&i2sdev->lock); in i2sbus_pcm_open()
89 get_pcm_info(i2sdev, in, &pi, &other); in i2sbus_pcm_open()
92 sdev = &i2sdev->sound; in i2sbus_pcm_open()
182 hw->formats &= pcm_format_to_bits(i2sdev->format); in i2sbus_pcm_open()
[all …]
Dcore.c41 static int alloc_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, in alloc_dbdma_descriptor_ring() argument
50 r->space = dma_zalloc_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in alloc_dbdma_descriptor_ring()
62 static void free_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, in free_dbdma_descriptor_ring() argument
67 dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in free_dbdma_descriptor_ring()
73 struct i2sbus_dev *i2sdev; in i2sbus_release_dev() local
76 i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev); in i2sbus_release_dev()
77 iounmap(i2sdev->intfregs); in i2sbus_release_dev()
78 iounmap(i2sdev->out.dbdma); in i2sbus_release_dev()
79 iounmap(i2sdev->in.dbdma); in i2sbus_release_dev()
81 release_and_free_resource(i2sdev->allocated_resource[i]); in i2sbus_release_dev()
[all …]
Di2sbus.h107 extern void i2sbus_wait_for_stop_both(struct i2sbus_dev *i2sdev);
108 extern void i2sbus_pcm_prepare_both(struct i2sbus_dev *i2sdev);
115 struct i2sbus_dev *i2sdev);
117 struct i2sbus_dev *i2sdev);
119 struct i2sbus_dev *i2sdev);
121 struct i2sbus_dev *i2sdev,
124 struct i2sbus_dev *i2sdev,