Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 1010) sorted by relevance

12345678910>>...41

/sound/soc/dwc/
Ddwc-i2s.c39 static inline void i2s_disable_channels(struct dw_i2s_dev *dev, u32 stream) in i2s_disable_channels() argument
45 i2s_write_reg(dev->i2s_base, TER(i), 0); in i2s_disable_channels()
48 i2s_write_reg(dev->i2s_base, RER(i), 0); in i2s_disable_channels()
52 static inline void i2s_clear_irqs(struct dw_i2s_dev *dev, u32 stream) in i2s_clear_irqs() argument
58 i2s_read_reg(dev->i2s_base, TOR(i)); in i2s_clear_irqs()
61 i2s_read_reg(dev->i2s_base, ROR(i)); in i2s_clear_irqs()
65 static inline void i2s_disable_irqs(struct dw_i2s_dev *dev, u32 stream, in i2s_disable_irqs() argument
72 irq = i2s_read_reg(dev->i2s_base, IMR(i)); in i2s_disable_irqs()
73 i2s_write_reg(dev->i2s_base, IMR(i), irq | 0x30); in i2s_disable_irqs()
77 irq = i2s_read_reg(dev->i2s_base, IMR(i)); in i2s_disable_irqs()
[all …]
Ddwc-pcm.c25 static unsigned int dw_pcm_tx_##sample_bits(struct dw_i2s_dev *dev, \
33 for (i = 0; i < dev->fifo_th; i++) { \
34 iowrite32(p[tx_ptr][0], dev->i2s_base + LRBR_LTHR(0)); \
35 iowrite32(p[tx_ptr][1], dev->i2s_base + RRBR_RTHR(0)); \
45 static unsigned int dw_pcm_rx_##sample_bits(struct dw_i2s_dev *dev, \
53 for (i = 0; i < dev->fifo_th; i++) { \
54 p[rx_ptr][0] = ioread32(dev->i2s_base + LRBR_LTHR(0)); \
55 p[rx_ptr][1] = ioread32(dev->i2s_base + RRBR_RTHR(0)); \
95 static void dw_pcm_transfer(struct dw_i2s_dev *dev, bool push) in dw_pcm_transfer() argument
102 substream = rcu_dereference(dev->tx_substream); in dw_pcm_transfer()
[all …]
/sound/oss/
Dmidibuf.c83 static void drain_midi_queue(int dev) in drain_midi_queue() argument
90 if (midi_devs[dev]->buffer_status != NULL) in drain_midi_queue()
91 wait_event_interruptible_timeout(midi_sleeper[dev], in drain_midi_queue()
92 !midi_devs[dev]->buffer_status(dev), HZ/10); in drain_midi_queue()
95 static void midi_input_intr(int dev, unsigned char data) in midi_input_intr() argument
97 if (midi_in_buf[dev] == NULL) in midi_input_intr()
107 if (SPACE_AVAIL(midi_in_buf[dev])) { in midi_input_intr()
108 QUEUE_BYTE(midi_in_buf[dev], data); in midi_input_intr()
109 wake_up(&input_sleeper[dev]); in midi_input_intr()
113 static void midi_output_intr(int dev) in midi_output_intr() argument
[all …]
Dmsnd_pinnacle.c75 dev.play_sample_size / 8 / \
76 dev.play_sample_rate / \
77 dev.play_channels)
80 dev.rec_sample_size / 8 / \
81 dev.rec_sample_rate / \
82 dev.rec_channels)
85 static multisound_dev_t dev; variable
95 static __inline__ int chk_send_dsp_cmd(multisound_dev_t *dev, register BYTE cmd) in chk_send_dsp_cmd() argument
97 if (msnd_send_dsp_cmd(dev, cmd) == 0) in chk_send_dsp_cmd()
100 return msnd_send_dsp_cmd(dev, cmd); in chk_send_dsp_cmd()
[all …]
Daudio.c41 static int dma_ioctl(int dev, unsigned int cmd, void __user *arg);
43 static int set_format(int dev, int fmt) in set_format() argument
47 audio_devs[dev]->local_conversion = 0; in set_format()
49 if (!(audio_devs[dev]->format_mask & fmt)) /* Not supported */ in set_format()
54 audio_devs[dev]->local_conversion = CNV_MU_LAW; in set_format()
59 audio_devs[dev]->audio_format = audio_devs[dev]->d->set_bits(dev, fmt); in set_format()
60 audio_devs[dev]->local_format = fmt; in set_format()
63 return audio_devs[dev]->local_format; in set_format()
65 if (audio_devs[dev]->local_conversion) in set_format()
66 return audio_devs[dev]->local_conversion; in set_format()
[all …]
Ddev_table.h141 void (*audio_callback) (int dev, int parm);
168 int (*open) (int dev, int mode);
169 void (*close) (int dev);
170 void (*output_block) (int dev, unsigned long buf,
172 void (*start_input) (int dev, unsigned long buf,
174 int (*ioctl) (int dev, unsigned int cmd, void __user * arg);
175 int (*prepare_for_input) (int dev, int bufsize, int nbufs);
176 int (*prepare_for_output) (int dev, int bufsize, int nbufs);
177 void (*halt_io) (int dev);
178 int (*local_qlen)(int dev);
[all …]
Dsequencer.c85 int sequencer_read(int dev, struct file *file, char __user *buf, int count) in sequencer_read() argument
91 dev = dev >> 4; in sequencer_read()
129 static void sequencer_midi_output(int dev) in sequencer_midi_output() argument
161 static void sequencer_midi_input(int dev, unsigned char data) in sequencer_midi_input() argument
179 event_rec[2] = dev; in sequencer_midi_input()
211 int sequencer_write(int dev, struct file *file, const char __user *buf, int count) in sequencer_write() argument
217 dev = dev >> 4; in sequencer_write()
234 dev = *(unsigned short *) &event_rec[2]; in sequencer_write()
235 if (dev < 0 || dev >= max_synthdev || synth_devs[dev] == NULL) in sequencer_write()
238 if (!(synth_open_mask & (1 << dev))) in sequencer_write()
[all …]
Dsound_calls.h6 int DMAbuf_open(int dev, int mode);
7 int DMAbuf_release(int dev, int mode);
8 int DMAbuf_getwrbuffer(int dev, char **buf, int *size, int dontblock);
9 int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock);
10 int DMAbuf_rmchars(int dev, int buff_no, int c);
11 int DMAbuf_start_output(int dev, int buff_no, int l);
12 int DMAbuf_move_wrpointer(int dev, int l);
14 void DMAbuf_init(int dev, int dma1, int dma2);
15 void DMAbuf_deinit(int dev);
16 int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
[all …]
Dmsnd.c47 int msnd_register(multisound_dev_t *dev) in msnd_register() argument
58 devs[i] = dev; in msnd_register()
63 void msnd_unregister(multisound_dev_t *dev) in msnd_unregister() argument
68 if (devs[i] == dev) in msnd_unregister()
243 static int msnd_wait_TXDE(multisound_dev_t *dev) in msnd_wait_TXDE() argument
245 register unsigned int io = dev->io; in msnd_wait_TXDE()
255 static int msnd_wait_HC0(multisound_dev_t *dev) in msnd_wait_HC0() argument
257 register unsigned int io = dev->io; in msnd_wait_HC0()
267 int msnd_send_dsp_cmd(multisound_dev_t *dev, BYTE cmd) in msnd_send_dsp_cmd() argument
271 spin_lock_irqsave(&dev->lock, flags); in msnd_send_dsp_cmd()
[all …]
/sound/core/
Ddevice.c47 struct snd_device *dev; in snd_device_new() local
52 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in snd_device_new()
53 if (!dev) in snd_device_new()
55 INIT_LIST_HEAD(&dev->list); in snd_device_new()
56 dev->card = card; in snd_device_new()
57 dev->type = type; in snd_device_new()
58 dev->state = SNDRV_DEV_BUILD; in snd_device_new()
59 dev->device_data = device_data; in snd_device_new()
60 dev->ops = ops; in snd_device_new()
69 list_add(&dev->list, p); in snd_device_new()
[all …]
Dseq_device.c58 static int snd_seq_bus_match(struct device *dev, struct device_driver *drv) in snd_seq_bus_match() argument
60 struct snd_seq_device *sdev = to_seq_dev(dev); in snd_seq_bus_match()
78 static int print_dev_info(struct device *dev, void *data) in print_dev_info() argument
80 struct snd_seq_device *sdev = to_seq_dev(dev); in print_dev_info()
84 dev->driver ? "loaded" : "empty", in print_dev_info()
85 dev->driver ? 1 : 0); in print_dev_info()
104 static int request_seq_drv(struct device *dev, void *data) in request_seq_drv() argument
106 struct snd_seq_device *sdev = to_seq_dev(dev); in request_seq_drv()
108 if (!dev->driver) in request_seq_drv()
162 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_free() local
[all …]
/sound/core/seq/
Dseq_midi_event.c46 static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
47 static void one_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
48 static void pitchbend_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
49 static void two_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
50 static void one_param_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
51 static void songpos_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
64 void (*encode)(struct snd_midi_event *dev, struct snd_seq_event *ev);
96 static int extra_decode_ctrl14(struct snd_midi_event *dev, unsigned char *buf, int len,
98 static int extra_decode_xrpn(struct snd_midi_event *dev, unsigned char *buf, int count,
103 int (*decode)(struct snd_midi_event *dev, unsigned char *buf, int len,
[all …]
/sound/soc/bcm/
Dbcm2835-i2s.c115 struct device *dev; member
125 static void bcm2835_i2s_start_clock(struct bcm2835_i2s_dev *dev) in bcm2835_i2s_start_clock() argument
127 unsigned int master = dev->fmt & SND_SOC_DAIFMT_MASTER_MASK; in bcm2835_i2s_start_clock()
129 if (dev->clk_prepared) in bcm2835_i2s_start_clock()
135 clk_prepare_enable(dev->clk); in bcm2835_i2s_start_clock()
136 dev->clk_prepared = true; in bcm2835_i2s_start_clock()
143 static void bcm2835_i2s_stop_clock(struct bcm2835_i2s_dev *dev) in bcm2835_i2s_stop_clock() argument
145 if (dev->clk_prepared) in bcm2835_i2s_stop_clock()
146 clk_disable_unprepare(dev->clk); in bcm2835_i2s_stop_clock()
147 dev->clk_prepared = false; in bcm2835_i2s_stop_clock()
[all …]
/sound/aoa/soundbus/i2sbus/
Dcore.c50 r->space = dma_zalloc_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in alloc_dbdma_descriptor_ring()
67 dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in free_dbdma_descriptor_ring()
71 static void i2sbus_release_dev(struct device *dev) in i2sbus_release_dev() argument
76 i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev); in i2sbus_release_dev()
93 struct i2sbus_dev *dev = devid; in i2sbus_bus_intr() local
96 spin_lock(&dev->low_lock); in i2sbus_bus_intr()
97 intreg = in_le32(&dev->intfregs->intr_ctl); in i2sbus_bus_intr()
100 out_le32(&dev->intfregs->intr_ctl, intreg); in i2sbus_bus_intr()
102 spin_unlock(&dev->low_lock); in i2sbus_bus_intr()
156 struct i2sbus_dev *dev; in i2sbus_add_dev() local
[all …]
/sound/isa/cs423x/
Dcs4236.c254 static int snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev) in snd_cs423x_pnp_init_wss() argument
260 port[dev] = pnp_port_start(pdev, 0); in snd_cs423x_pnp_init_wss()
261 if (fm_port[dev] > 0) in snd_cs423x_pnp_init_wss()
262 fm_port[dev] = pnp_port_start(pdev, 1); in snd_cs423x_pnp_init_wss()
263 sb_port[dev] = pnp_port_start(pdev, 2); in snd_cs423x_pnp_init_wss()
264 irq[dev] = pnp_irq(pdev, 0); in snd_cs423x_pnp_init_wss()
265 dma1[dev] = pnp_dma(pdev, 0); in snd_cs423x_pnp_init_wss()
266 dma2[dev] = pnp_dma(pdev, 1) == 4 ? -1 : (int)pnp_dma(pdev, 1); in snd_cs423x_pnp_init_wss()
268 port[dev], fm_port[dev], sb_port[dev]); in snd_cs423x_pnp_init_wss()
270 irq[dev], dma1[dev], dma2[dev]); in snd_cs423x_pnp_init_wss()
[all …]
/sound/isa/wavefront/
Dwavefront_synth.c121 if ((dev->debug & (cond)) == (cond)) { \
263 wavefront_status (snd_wavefront_t *dev) in wavefront_status() argument
266 return inb (dev->status_port); in wavefront_status()
279 wavefront_wait (snd_wavefront_t *dev, int mask) in wavefront_wait() argument
289 if (wavefront_status (dev) & mask) { in wavefront_wait()
297 if (wavefront_status (dev) & mask) { in wavefront_wait()
310 wavefront_read (snd_wavefront_t *dev) in wavefront_read() argument
313 if (wavefront_wait (dev, STAT_CAN_READ)) in wavefront_read()
314 return inb (dev->data_port); in wavefront_read()
322 wavefront_write (snd_wavefront_t *dev, unsigned char data) in wavefront_write() argument
[all …]
Dwavefront.c102 snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, in snd_wavefront_pnp() argument
127 if (use_cs4232_midi[dev]) { in snd_wavefront_pnp()
161 cs4232_pcm_port[dev] = pnp_port_start(pdev, 0); in snd_wavefront_pnp()
162 fm_port[dev] = pnp_port_start(pdev, 1); in snd_wavefront_pnp()
163 dma1[dev] = pnp_dma(pdev, 0); in snd_wavefront_pnp()
164 dma2[dev] = pnp_dma(pdev, 1); in snd_wavefront_pnp()
165 cs4232_pcm_irq[dev] = pnp_irq(pdev, 0); in snd_wavefront_pnp()
177 ics2115_port[dev] = pnp_port_start(pdev, 0); in snd_wavefront_pnp()
178 ics2115_irq[dev] = pnp_irq(pdev, 0); in snd_wavefront_pnp()
185 if (use_cs4232_midi[dev]) { in snd_wavefront_pnp()
[all …]
/sound/soc/davinci/
Ddavinci-i2s.c131 struct device *dev; member
168 static inline void davinci_mcbsp_write_reg(struct davinci_mcbsp_dev *dev, in davinci_mcbsp_write_reg() argument
171 __raw_writel(val, dev->base + reg); in davinci_mcbsp_write_reg()
174 static inline u32 davinci_mcbsp_read_reg(struct davinci_mcbsp_dev *dev, int reg) in davinci_mcbsp_read_reg() argument
176 return __raw_readl(dev->base + reg); in davinci_mcbsp_read_reg()
179 static void toggle_clock(struct davinci_mcbsp_dev *dev, int playback) in toggle_clock() argument
185 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, dev->pcr ^ m); in toggle_clock()
186 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, dev->pcr); in toggle_clock()
189 static void davinci_mcbsp_start(struct davinci_mcbsp_dev *dev, in davinci_mcbsp_start() argument
197 spcr = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); in davinci_mcbsp_start()
[all …]
/sound/isa/sb/
Dsb16.c139 struct pnp_dev *dev; member
253 static int snd_card_sb16_pnp(int dev, struct snd_card_sb16 *acard, in snd_card_sb16_pnp() argument
260 acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_sb16_pnp()
261 if (acard->dev == NULL) in snd_card_sb16_pnp()
265 acard->devwt = pnp_request_card_device(card, id->devs[1].id, acard->dev); in snd_card_sb16_pnp()
268 pdev = acard->dev; in snd_card_sb16_pnp()
275 port[dev] = pnp_port_start(pdev, 0); in snd_card_sb16_pnp()
276 mpu_port[dev] = pnp_port_start(pdev, 1); in snd_card_sb16_pnp()
277 fm_port[dev] = pnp_port_start(pdev, 2); in snd_card_sb16_pnp()
278 dma8[dev] = pnp_dma(pdev, 0); in snd_card_sb16_pnp()
[all …]
/sound/aoa/soundbus/
Dcore.c16 struct soundbus_dev *soundbus_dev_get(struct soundbus_dev *dev) in soundbus_dev_get() argument
20 if (!dev) in soundbus_dev_get()
22 tmp = get_device(&dev->ofdev.dev); in soundbus_dev_get()
30 void soundbus_dev_put(struct soundbus_dev *dev) in soundbus_dev_put() argument
32 if (dev) in soundbus_dev_put()
33 put_device(&dev->ofdev.dev); in soundbus_dev_put()
37 static int soundbus_probe(struct device *dev) in soundbus_probe() argument
43 drv = to_soundbus_driver(dev->driver); in soundbus_probe()
44 soundbus_dev = to_soundbus_device(dev); in soundbus_probe()
59 static int soundbus_uevent(struct device *dev, struct kobj_uevent_env *env) in soundbus_uevent() argument
[all …]
/sound/soc/intel/atom/sst/
Dsst_drv_interface.c46 #define GET_USAGE_COUNT(dev) (atomic_read(&dev->power.usage_count)) argument
48 #define GET_USAGE_COUNT(dev) 1 argument
64 dev_err(ctx->dev, "we tried to free stream context %d which was freed!!!\n", str_id); in free_stream_context()
77 dev_dbg(ctx->dev, "Stream allocated %d\n", retval); in sst_get_stream_allocated()
143 static int sst_power_control(struct device *dev, bool state) in sst_power_control() argument
145 struct intel_sst_drv *ctx = dev_get_drvdata(dev); in sst_power_control()
150 ret = pm_runtime_get_sync(dev); in sst_power_control()
151 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
152 dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count); in sst_power_control()
154 pm_runtime_put_sync(dev); in sst_power_control()
[all …]
/sound/isa/
Dals100.c76 struct pnp_dev *dev; member
120 static int snd_card_als100_pnp(int dev, struct snd_card_als100 *acard, in snd_card_als100_pnp() argument
127 acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_als100_pnp()
128 if (acard->dev == NULL) in snd_card_als100_pnp()
131 acard->devmpu = pnp_request_card_device(card, id->devs[1].id, acard->dev); in snd_card_als100_pnp()
132 acard->devopl = pnp_request_card_device(card, id->devs[2].id, acard->dev); in snd_card_als100_pnp()
134 pdev = acard->dev; in snd_card_als100_pnp()
141 port[dev] = pnp_port_start(pdev, 0); in snd_card_als100_pnp()
143 dma8[dev] = pnp_dma(pdev, 0); in snd_card_als100_pnp()
145 dma8[dev] = pnp_dma(pdev, 1); in snd_card_als100_pnp()
[all …]
Dazt2320.c77 struct pnp_dev *dev; member
102 static int snd_card_azt2320_pnp(int dev, struct snd_card_azt2320 *acard, in snd_card_azt2320_pnp() argument
109 acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_card_azt2320_pnp()
110 if (acard->dev == NULL) in snd_card_azt2320_pnp()
115 pdev = acard->dev; in snd_card_azt2320_pnp()
122 port[dev] = pnp_port_start(pdev, 0); in snd_card_azt2320_pnp()
123 fm_port[dev] = pnp_port_start(pdev, 1); in snd_card_azt2320_pnp()
124 wss_port[dev] = pnp_port_start(pdev, 2); in snd_card_azt2320_pnp()
125 dma1[dev] = pnp_dma(pdev, 0); in snd_card_azt2320_pnp()
126 dma2[dev] = pnp_dma(pdev, 1); in snd_card_azt2320_pnp()
[all …]
/sound/usb/
Dquirks.c53 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
65 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk()
130 usb_set_interface(chip->dev, altsd->bInterfaceNumber, 0); in create_standard_audio_quirk()
190 usb_set_interface(chip->dev, fp->iface, 0); in create_fixed_stream_quirk()
389 ifcount = chip->dev->actconfig->desc.bNumInterfaces; in create_autodetect_quirks()
393 iface = usb_ifnum_to_if(chip->dev, ifnum); in create_autodetect_quirks()
501 usb_set_interface(chip->dev, fp->iface, 0); in create_uaxx_quirk()
574 static int snd_usb_extigy_boot_quirk(struct usb_device *dev, struct usb_interface *intf) in snd_usb_extigy_boot_quirk() argument
576 struct usb_host_config *config = dev->actconfig; in snd_usb_extigy_boot_quirk()
581 dev_dbg(&dev->dev, "sending Extigy boot sequence...\n"); in snd_usb_extigy_boot_quirk()
[all …]
/sound/isa/ad1816a/
Dad1816a.c97 static int snd_card_ad1816a_pnp(int dev, struct pnp_card_link *card, in snd_card_ad1816a_pnp() argument
113 port[dev] = pnp_port_start(pdev, 2); in snd_card_ad1816a_pnp()
114 fm_port[dev] = pnp_port_start(pdev, 1); in snd_card_ad1816a_pnp()
115 dma1[dev] = pnp_dma(pdev, 0); in snd_card_ad1816a_pnp()
116 dma2[dev] = pnp_dma(pdev, 1); in snd_card_ad1816a_pnp()
117 irq[dev] = pnp_irq(pdev, 0); in snd_card_ad1816a_pnp()
121 mpu_port[dev] = -1; in snd_card_ad1816a_pnp()
129 mpu_port[dev] = -1; in snd_card_ad1816a_pnp()
131 mpu_port[dev] = pnp_port_start(pdev, 0); in snd_card_ad1816a_pnp()
132 mpu_irq[dev] = pnp_irq(pdev, 0); in snd_card_ad1816a_pnp()
[all …]

12345678910>>...41