mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(i2s_pdm): remove incorrect check for raw PDM usage
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#define I2S_LL_GET(_attr) I2S_LL_ ## _attr
|
||||
#define I2S_LL_SUPPORT(_feat) I2S_LL_SUPPORT_ ## _feat
|
||||
#define I2S_LL_INST_NUM 1
|
||||
#define I2S_LL_PDM_SUPPORTED_PORT_MASK (1U << 0) // PDM is supported on I2S0
|
||||
#define I2S_LL_PCM2PDM_SUPPORTED_PORT_MASK (1U << 0) // PCM2PDM is supported on I2S0
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -1216,14 +1215,6 @@ static inline bool i2s_ll_is_destination_supported(int port_id, i2s_destination_
|
||||
return destination == I2S_DESTINATION_DMA;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Check whether I2S PDM mode is supported on the specified port
|
||||
*/
|
||||
static inline bool i2s_ll_is_pdm_supported(int port_id)
|
||||
{
|
||||
return (I2S_LL_PDM_SUPPORTED_PORT_MASK & (1U << port_id)) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Check whether I2S TX PCM2PDM converter is supported on the specified port
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user