Home
last modified time | relevance | path

Searched refs:snd_dev (Results 1 – 9 of 9) sorted by relevance

/bsp/bluetrum/ab32vg1-ab-prougen/board/ports/audio/
A Ddrv_sound.c33 static struct sound_device snd_dev = {0}; variable
115 rt_sem_release(snd_dev.semaphore); in audio_sem_post()
270 snd_dev->volume = volume; in sound_configure()
357 saia_volume_set(snd_dev->volume); in sound_init()
466 if ((snd_dev.dma_to_aubuf == RT_FALSE) && (snd_dev.audio.replay->activated == RT_TRUE)) { in audio_thread_entry()
486 snd_dev.tx_fifo = tx_fifo; in rt_hw_sound_init()
495 snd_dev.rx_fifo = rx_fifo; in rt_hw_sound_init()
498 if (snd_dev.semaphore == RT_NULL) in rt_hw_sound_init()
512 if (snd_dev.thread != RT_NULL) in rt_hw_sound_init()
526 snd_dev.audio.ops = &ops; in rt_hw_sound_init()
[all …]
/bsp/qemu-vexpress-a9/drivers/audio/
A Ddrv_sound.c31 static struct sound_device snd_dev = {0}; variable
44 struct sound_device *snd_dev; in sound_getcaps() local
128 struct sound_device *snd_dev; in sound_configure() local
144 snd_dev->volume = volume; in sound_configure()
222 struct sound_device *snd_dev; in sound_init() local
232 _cfg.vol = snd_dev->volume; in sound_init()
275 struct sound_device *snd_dev; in sound_buffer_info() local
318 if (snd_dev.tx_fifo) in rt_hw_audio_init()
325 snd_dev.tx_fifo = tx_fifo; in rt_hw_audio_init()
336 snd_dev.audio.ops = &snd_ops; in rt_hw_audio_init()
[all …]
/bsp/nxp/lpc/lpc54114-lite/drivers/audio/
A Ddrv_sound.c53 static struct sound_device snd_dev; variable
61 rt_audio_tx_complete(&snd_dev->audio); in i2s_tx_transfer_callback()
150 struct sound_device *snd_dev; in lpc_audio_getcaps() local
245 snd_dev->volume = 0; in lpc_audio_configure()
254 snd_dev->volume = volume; in lpc_audio_configure()
321 info->buffer = snd_dev.tx_fifo; in lpc_audio_buffer_info()
347 snd_dev.tx_fifo = tx_fifo; in rt_hw_sound_init()
352 snd_dev.replay_config.channels = 2; in rt_hw_sound_init()
353 snd_dev.replay_config.samplebits = 16; in rt_hw_sound_init()
357 snd_dev.audio.ops = &audio_ops; in rt_hw_sound_init()
[all …]
/bsp/stm32/stm32f407-rt-spark/board/ports/audio/
A Ddrv_sound.c29 static struct sound_device snd_dev = {0}; variable
236 struct sound_device *snd_dev; in sound_getcaps() local
320 struct sound_device *snd_dev; in sound_configure() local
336 snd_dev->volume = volume; in sound_configure()
409 struct sound_device *snd_dev; in sound_init() local
426 struct sound_device *snd_dev; in sound_start() local
457 struct sound_device *snd_dev; in sound_buffer_info() local
490 if (snd_dev.tx_fifo) in rt_hw_sound_init()
497 snd_dev.tx_fifo = tx_fifo; in rt_hw_sound_init()
508 snd_dev.audio.ops = &snd_ops; in rt_hw_sound_init()
[all …]
A Ddrv_mic.c277 struct sound_device *snd_dev; in sound_init() local
280 snd_dev = (struct sound_device *)audio->parent.user_data; in sound_init()
/bsp/stm32/stm32mp157a-st-ev1/board/ports/
A Ddrv_sound.c46 static struct sound_device snd_dev = {0}; variable
145 struct sound_device *snd_dev; in sound_getcaps() local
229 struct sound_device *snd_dev; in sound_configure() local
246 snd_dev->volume = volume; in sound_configure()
320 struct sound_device *snd_dev; in sound_init() local
336 rt_device_init(snd_dev->decoder); in sound_init()
350 struct sound_device *snd_dev; in sound_start() local
416 snd_dev.tx_fifo = AUDIO_TX_FIFO; in rt_hw_sound_init()
426 if (snd_dev.decoder == RT_NULL) in rt_hw_sound_init()
433 snd_dev.audio.ops = &snd_ops; in rt_hw_sound_init()
[all …]
/bsp/stm32/stm32l475-atk-pandora/board/ports/audio/
A Ddrv_sound.c29 static struct sound_device snd_dev = {0}; variable
180 struct sound_device *snd_dev; in sound_getcaps() local
264 struct sound_device *snd_dev; in sound_configure() local
280 snd_dev->volume = volume; in sound_configure()
353 struct sound_device *snd_dev; in sound_init() local
370 struct sound_device *snd_dev; in sound_start() local
401 struct sound_device *snd_dev; in sound_buffer_info() local
434 if (snd_dev.tx_fifo) in rt_hw_sound_init()
441 snd_dev.tx_fifo = tx_fifo; in rt_hw_sound_init()
452 snd_dev.audio.ops = &snd_ops; in rt_hw_sound_init()
[all …]
/bsp/stm32/stm32mp157a-st-discovery/board/ports/audio/
A Ddrv_sound.c42 static struct sound_device snd_dev = {0}; variable
306 struct sound_device *snd_dev; in sound_getcaps() local
390 struct sound_device *snd_dev; in sound_configure() local
407 snd_dev->volume = volume; in sound_configure()
481 struct sound_device *snd_dev; in sound_init() local
505 struct sound_device *snd_dev; in sound_start() local
544 struct sound_device *snd_dev; in sound_buffer_info() local
556 info->buffer = snd_dev->tx_fifo; in sound_buffer_info()
579 snd_dev.tx_fifo = AUDIO_TX_FIFO; in rt_hw_sound_init()
588 snd_dev.audio.ops = &snd_ops; in rt_hw_sound_init()
[all …]
A Daudio_play.c22 static rt_device_t snd_dev; variable
101 snd_dev = rt_device_find(SOUND_DEVICE_NAME); in wavplay_sample()
103 rt_device_open(snd_dev, RT_DEVICE_OFLAG_WRONLY); in wavplay_sample()
110 rt_device_control(snd_dev, AUDIO_CTL_CONFIGURE, &caps); in wavplay_sample()
121 rt_device_write(snd_dev, 0, buffer, length); in wavplay_sample()
124 rt_device_close(snd_dev); in wavplay_sample()

Completed in 22 milliseconds