Tiago Medicci Serrano
e791d73bb2
drivers/audio/cs4344: fix configure function when setting mclk
2022-11-05 00:37:00 +08:00
Tiago Medicci Serrano
64abc72052
drivers/audio/cs4344: add txchannels method and fix supported data width
2022-11-05 00:37:00 +08:00
anjiahao
d7b4e91dda
Call nxsem_destroy or nxmutex_destry in the error path
...
1.Don't check the return value of nxsem_init or nxmutex_init
2.Fix some style issue
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 13:56:52 +01:00
Tiago Medicci Serrano
b4b0624f6a
drivers/audio: add support for setting I2S's mclk on CS4344 codec
...
Set the mclk frequency on I2S lower half by 1) checking supported
sample rate, data width and mclk multiplier table and 2) setting
this value using the I2S_MCLKFREQUENCY macro. I2S driver may or
may not implement the i2s_mclkfrequency method for setting the
master clock.
2022-10-27 00:09:01 +08:00
Tiago Medicci Serrano
41475e11e0
drivers/audio: fix CS4344 supported sample rates
2022-10-27 00:09:01 +08:00
anjiahao
d1d46335df
Replace nxsem API when used as a lock with nxmutex API
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
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
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
Xiang Xiao
3f9908f7d1
Remove the unnecessary math.h inclusion
...
or move from header file to source file since math.h doesn't always exist
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-04-12 22:58:23 -04: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
a3b7391dcb
drivers/audio/cs4344.c: Fix a printf format warning
2020-11-16 08:29:00 -08:00
Ouss4
36f54e280f
Fix PR1201 nxstyle issues.
2020-06-05 15:54:17 -03:00
Ouss4
8da4b02350
drivers/audio: Add CS4344 driver.
2020-06-05 15:54:17 -03:00