Xiang Xiao
40ef5bc6db
libc: Move queue.h from include to include/nuttx
...
to avoid the conflict with libuv's queue.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-26 08:04:58 +02:00
Petro Karashchenko
98ba65c422
c89: get rid of designated initializers in common code
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-28 13:39:27 +08:00
Xiang Xiao
2e54df0f35
Don't include assert.h from public header file
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-03 08:36:03 -07:00
Alin Jerpelea
e5b6305f4a
drivers: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-04 18:32:27 -08:00
ligd
f63db66382
mqueue: add file_mq_xx for kernel use
...
Change-Id: Ida12f5938388cca2f233a4cde90277a218033645
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-01-05 02:40:43 -06:00
YAMAMOTO Takashi
2d78501e9a
drivers/audio/audio_null.c: Fix a syslog format
2020-12-06 07:41:37 -06:00
Huang Qi
f0e8d10d1a
drivers/audio: Make audio_null play at real speed
...
N/A
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I69a52ee2b03836006f613c4dc41837b6123ad2d5
2020-11-30 03:30:30 -06:00
YAMAMOTO Takashi
5ef5d2c598
drivers/audio/audio_null.c: Fix a printf format warning
2020-11-16 08:29:00 -08:00
Masayuki Ishikawa
4b9886fa29
drivers: audio: Return -ENOTTY in xxx_ioctl() if not handled
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-05 12:02:33 +08:00
Alin Jerpelea
d9d720b296
audio: nxstyle fixes for core and drivers
...
nxstyle fixes for the audio core and drivers
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-21 17:19:52 -06:00
Xiang Xiao
80277d1630
Refine the preprocessor conditional guard style ( #190 )
2020-01-31 19:07:39 +01:00
Xiang Xiao
6a3c2aded6
Fix wait loop and void cast ( #24 )
...
* Simplify EINTR/ECANCEL error handling
1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx
* Unify the void cast usage
1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Michał Łyszczek
626afb015b
nuttx/sched/mqueue: Change 'int prio' to 'unsigned int prio'. According to open group specification, priority field in mq_* functions should have unsigned type: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/mqueue.h.html
2019-02-15 19:18:55 -06:00
Gregory Nutt
0cd5a232ea
Fix a few typos.
2018-12-27 08:45:26 -06:00
Gregory Nutt
e11e3b2607
Squashed commit of the following:
...
Change all calls to mq_receive() and mq_timedreceive() in the OS to calls to nxmq_receive() and nxmq_timedreceive(), making appropriate changes for differences in return values.
sched/mqueue: Add nxmq_receive() and mxmq_timedreceive() which are functionally equivalent to the standard mq_receive and mq_timedreceive() except that (1) they do not create cancellation points, and (2) the do not modify the application's errno variable.
2017-10-10 09:57:40 -06:00
Gregory Nutt
fca07be1df
Squashed commit of the following:
...
Change all calls to mq_send() and mq_timedsend() in the OS to calls to nxmq_send() and nxmq_timedsend(), making appropriate changes for differences in return values.
sched/mqueue: Add internal function nxmq_send() and nxmq_timedsend() that are equivalent to mq_send() and mq_timedsend() except that they do not create cancellation points and do to not modify the errno variable.
2017-10-10 08:44:12 -06:00
Juha Niskanen
b9a769d65d
drivers: fix some bad NULL checks
2017-05-15 07:20:32 -06:00
Gregory Nutt
0665c7e06c
drivers/: Change some nerr() ERRORS to ninfo() and nwarn() WARNINGS.
2016-06-12 09:26:12 -06:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
cf14f8d1b5
drivers/: Fixes to spacing and alignement
2015-10-10 10:41:00 -06:00
Gregory Nutt
e4d2822af8
Make some file section headers more consistent with standard
2015-04-08 07:15:32 -06:00
Gregory Nutt
b285162e79
Fix some warnings in audio code causing by fixing the prototypes of mq_send() and mq_receive()
2015-02-09 12:50:04 -06:00
Gregory Nutt
205260d5e2
Reanem kzalloc to kmm_zalloc for consistency
2014-08-31 17:34:44 -06:00
Gregory Nutt
a3e28c2c16
audio NULL driver: Fix an error in a variable name
2014-08-09 10:33:31 -06:00
Gregory Nutt
e214382264
Audio: Change how the end of the audio stream is detected by the leaf audio component. This used by be done by looking for the first partial buffer. That does not work with the in-place sub-sampling performed by the PCM decoder: That always reduces the size of the buffer so that all buffers only partially filled by the time they get to the leaf. Now, a flag is set in the audio buffer flags set to indicate the final buffer in the stream.
2014-07-31 16:36:09 -06:00
Gregory Nutt
c9f15ffd3d
PCM: First cut at fast forward by subsampling
2014-07-27 18:33:17 -06:00
Gregory Nutt
014dd77237
Audio: Fix some compilation issues introduced with some of the recent changes
2014-07-25 11:27:29 -06:00
Gregory Nutt
0399be55d3
Fix some compile errors when audio DEBUG is enabled
2014-07-24 15:05:13 -06:00
Gregory Nutt
22f8503d0a
Convert ac_format and ac_controls to unions to make access a little cleaner
2014-07-24 10:21:04 -06:00
Gregory Nutt
dba43a9c75
Audio: Get rid of the decoder->driver IOCTLs that I added a couple of commits back; Use existing configure method
2014-07-24 09:56:39 -06:00
Gregory Nutt
72133f5d95
Add ioctls so that PCM decoder can configure the driver bitrate, num channels, and sample width
2014-07-23 12:21:04 -06:00
Gregory Nutt
516b343666
Flesh out missing PCM decoder methods
2014-07-23 11:58:43 -06:00
Gregory Nutt
ca7d7c34ce
Audio: Add a NULL audio device that can be used to simply unit-level testing of audio decoders
2014-07-23 10:12:32 -06:00