Home
last modified time | relevance | path

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

/linux-6.12.1/sound/aoa/soundbus/i2sbus/
Dcontrol.c39 struct i2sbus_dev *i2sdev) in i2sbus_control_add_dev() argument
43 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
44 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev()
45 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev()
46 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev()
47 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev()
48 i2sdev->clock_disable = pmf_find_function(np, "clock-disable"); in i2sbus_control_add_dev()
55 if (i2sdev->bus_number != 0 && i2sdev->bus_number != 1 && in i2sbus_control_add_dev()
56 (!i2sdev->enable || in i2sbus_control_add_dev()
57 !i2sdev->cell_enable || !i2sdev->clock_enable || in i2sbus_control_add_dev()
[all …]
Dpcm.c18 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 …]
Dcore.c41 static int alloc_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, in alloc_dbdma_descriptor_ring() argument
50 r->space = dma_alloc_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.h105 extern void i2sbus_wait_for_stop_both(struct i2sbus_dev *i2sdev);
106 extern void i2sbus_pcm_prepare_both(struct i2sbus_dev *i2sdev);
113 struct i2sbus_dev *i2sdev);
115 struct i2sbus_dev *i2sdev);
117 struct i2sbus_dev *i2sdev);
119 struct i2sbus_dev *i2sdev,
122 struct i2sbus_dev *i2sdev,