mirror of
https://github.com/apache/nuttx.git
synced 2026-08-11 07:25:13 +00:00
Correct the WM8904 interrupt configuration, active high level. Fix that and don't pull-up
This commit is contained in:
parent
b305f9186a
commit
eebdae30b2
2 changed files with 22 additions and 6 deletions
|
|
@ -337,6 +337,11 @@
|
|||
# undef HAVE_WM8904
|
||||
# endif
|
||||
|
||||
# if !defined(CONFIG_SAMA5_PIOD_IRQ)
|
||||
# warning CONFIG_SAMA5_PIOD_IRQ is required for audio support
|
||||
# undef HAVE_HSMCI
|
||||
# endif
|
||||
|
||||
# ifndef CONFIG_AUDIO_FORMAT_PCM
|
||||
# warning CONFIG_AUDIO_FORMAT_PCM is required for audio support
|
||||
# undef HAVE_WM8904
|
||||
|
|
@ -603,10 +608,13 @@
|
|||
* ------------- ---------------- -----------------
|
||||
*/
|
||||
|
||||
/* Audio Interrupt */
|
||||
/* Audio Interrupt. All interrupts are default, active high level. Pull down
|
||||
* internally in the WM8904. So we want no pull-up/downs and we want to
|
||||
* interrupt on the high level.
|
||||
*/
|
||||
|
||||
#define PIO_INT_WM8904 (PIO_INPUT | PIO_CFG_PULLUP | PIO_CFG_DEGLITCH | \
|
||||
PIO_INT_BOTHEDGES | PIO_PORT_PIOD | PIO_PIN16)
|
||||
#define PIO_INT_WM8904 (PIO_INPUT | PIO_CFG_DEFAULT | PIO_CFG_DEGLITCH | \
|
||||
PIO_INT_HIGHLEVEL | PIO_PORT_PIOD | PIO_PIN16)
|
||||
#define IRQ_INT_WM8904 SAM_IRQ_PD16
|
||||
|
||||
/* The MW8904 communicates on TWI0, I2C address 0x1a for control operations */
|
||||
|
|
|
|||
|
|
@ -406,6 +406,11 @@
|
|||
# undef HAVE_WM8904
|
||||
# endif
|
||||
|
||||
# if !defined(CONFIG_SAMA5_PIOE_IRQ)
|
||||
# warning CONFIG_SAMA5_PIOE_IRQ is required for audio support
|
||||
# undef HAVE_HSMCI
|
||||
# endif
|
||||
|
||||
# ifndef CONFIG_AUDIO_FORMAT_PCM
|
||||
# warning CONFIG_AUDIO_FORMAT_PCM is required for audio support
|
||||
# undef HAVE_WM8904
|
||||
|
|
@ -778,10 +783,13 @@
|
|||
|
||||
#define PIO_SSC0_TD PIO_SSC0_TD_2
|
||||
|
||||
/* Audio Interrupt */
|
||||
/* Audio Interrupt. All interrupts are default, active high level. Pull down
|
||||
* internally in the WM8904. So we want no pull-up/downs and we want to
|
||||
* interrupt on the high level.
|
||||
*/
|
||||
|
||||
#define PIO_INT_WM8904 (PIO_INPUT | PIO_CFG_PULLUP | PIO_CFG_DEGLITCH | \
|
||||
PIO_INT_BOTHEDGES | PIO_PORT_PIOE | PIO_PIN4)
|
||||
#define PIO_INT_WM8904 (PIO_INPUT | PIO_CFG_DEFAULT | PIO_CFG_DEGLITCH | \
|
||||
PIO_INT_HIGHLEVEL | PIO_PORT_PIOE | PIO_PIN4)
|
||||
#define IRQ_INT_WM8904 SAM_IRQ_PE4
|
||||
|
||||
/* The MW8904 communicates on TWI0, I2C address 0x1a for control operations */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue