[Audio] Add support for audio shutdown pin (#22731)
Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
		
							parent
							
								
									045e5c9729
								
							
						
					
					
						commit
						83e6ddbbb4
					
				
					 15 changed files with 95 additions and 88 deletions
				
			
		| 
						 | 
				
			
			@ -213,7 +213,7 @@ void channel_2_stop(void) {
 | 
			
		|||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
void audio_driver_initialize(void) {
 | 
			
		||||
void audio_driver_initialize_impl(void) {
 | 
			
		||||
#ifdef AUDIO1_PIN_SET
 | 
			
		||||
    channel_1_stop();
 | 
			
		||||
    gpio_set_pin_output(AUDIO1_PIN);
 | 
			
		||||
| 
						 | 
				
			
			@ -254,7 +254,7 @@ void audio_driver_initialize(void) {
 | 
			
		|||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void audio_driver_stop(void) {
 | 
			
		||||
void audio_driver_stop_impl(void) {
 | 
			
		||||
#ifdef AUDIO1_PIN_SET
 | 
			
		||||
    channel_1_stop();
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -264,7 +264,7 @@ void audio_driver_stop(void) {
 | 
			
		|||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void audio_driver_start(void) {
 | 
			
		||||
void audio_driver_start_impl(void) {
 | 
			
		||||
#ifdef AUDIO1_PIN_SET
 | 
			
		||||
    channel_1_start();
 | 
			
		||||
    if (playing_note) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue