question about sound/oss/vidc.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In sound/oss/vidc.c, the function vidc_audio_trigger contains thefollowing 
code:

        struct audio_operations *adev = audio_devs[dev];

        if (enable_bits & PCM_ENABLE_OUTPUT) {
                if (!(adev->flags & DMA_ACTIVE)) {
                        unsigned long flags;

                        local_irq_save(flags);

                        /* prevent recusion */
                        adev->flags |= DMA_ACTIVE;

			...
		}
	}

I wonder if the use of DMA_ACTIVE is correct?  This constant is defined 
inthe file sound/oss/dev_table.h within the definition of the structure 
dma_buffparms.  But here it is being used with the structure 
audio_operations.  The definition of audio_operations also contains the 
definitions of some constants.  Indeed, one of them, DMA_DUPLEX has the 
same value as DMA_ACTIVE.

thanks,
julia
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux