mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Add support for the poorly documented SNDCTL_DSP_GETTRIGGER.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1466 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									1e12e0ee8d
								
							
						
					
					
						commit
						13a4c5290a
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
					@ -2061,6 +2061,17 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno)
 | 
				
			||||||
                *_errno = EIO;
 | 
					                *_errno = EIO;
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        case SNDCTL_DSP_GETTRIGGER:
 | 
				
			||||||
 | 
					            debug(DEBUG_LEVEL_NORMAL, __FILE__": SNDCTL_DSP_GETTRIGGER\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            *(int*) argp = 0;
 | 
				
			||||||
 | 
					            if (!i->play_precork)
 | 
				
			||||||
 | 
					                *(int*) argp |= PCM_ENABLE_OUTPUT;
 | 
				
			||||||
 | 
					            if (!i->rec_precork)
 | 
				
			||||||
 | 
					                *(int*) argp |= PCM_ENABLE_INPUT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        case SNDCTL_DSP_SETTRIGGER:
 | 
					        case SNDCTL_DSP_SETTRIGGER:
 | 
				
			||||||
            debug(DEBUG_LEVEL_NORMAL, __FILE__": SNDCTL_DSP_SETTRIGGER: 0x%08x\n", *(int*) argp);
 | 
					            debug(DEBUG_LEVEL_NORMAL, __FILE__": SNDCTL_DSP_SETTRIGGER: 0x%08x\n", *(int*) argp);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue