Searched refs:i2sdev (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/sound/aoa/soundbus/i2sbus/ |
D | control.c | 40 struct i2sbus_dev *i2sdev) in i2sbus_control_add_dev() argument 44 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev() 45 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev() 46 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev() 47 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev() 48 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev() 49 i2sdev->clock_disable = pmf_find_function(np, "clock-disable"); in i2sbus_control_add_dev() 56 if (i2sdev->bus_number != 0 && i2sdev->bus_number != 1 && in i2sbus_control_add_dev() 57 (!i2sdev->enable || in i2sbus_control_add_dev() 58 !i2sdev->cell_enable || !i2sdev->clock_enable || in i2sbus_control_add_dev() [all …]
|
D | pcm.c | 18 static inline void get_pcm_info(struct i2sbus_dev *i2sdev, int in, in get_pcm_info() argument 23 *pi = &i2sdev->in; in get_pcm_info() 25 *other = &i2sdev->out; in get_pcm_info() 28 *pi = &i2sdev->out; in get_pcm_info() 30 *other = &i2sdev->in; in get_pcm_info() 72 static int i2sbus_pcm_open(struct i2sbus_dev *i2sdev, int in) in i2sbus_pcm_open() argument 86 mutex_lock(&i2sdev->lock); in i2sbus_pcm_open() 88 get_pcm_info(i2sdev, in, &pi, &other); in i2sbus_pcm_open() 91 sdev = &i2sdev->sound; in i2sbus_pcm_open() 181 hw->formats &= pcm_format_to_bits(i2sdev->format); in i2sbus_pcm_open() [all …]
|
D | core.c | 40 static int alloc_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, in alloc_dbdma_descriptor_ring() argument 49 r->space = dma_alloc_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in alloc_dbdma_descriptor_ring() 61 static void free_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, in free_dbdma_descriptor_ring() argument 66 dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in free_dbdma_descriptor_ring() 72 struct i2sbus_dev *i2sdev; in i2sbus_release_dev() local 75 i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev); in i2sbus_release_dev() 76 iounmap(i2sdev->intfregs); in i2sbus_release_dev() 77 iounmap(i2sdev->out.dbdma); in i2sbus_release_dev() 78 iounmap(i2sdev->in.dbdma); in i2sbus_release_dev() 80 release_and_free_resource(i2sdev->allocated_resource[i]); in i2sbus_release_dev() [all …]
|
D | i2sbus.h | 106 extern void i2sbus_wait_for_stop_both(struct i2sbus_dev *i2sdev); 107 extern void i2sbus_pcm_prepare_both(struct i2sbus_dev *i2sdev); 114 struct i2sbus_dev *i2sdev); 116 struct i2sbus_dev *i2sdev); 118 struct i2sbus_dev *i2sdev); 120 struct i2sbus_dev *i2sdev, 123 struct i2sbus_dev *i2sdev,
|