periods_max initialization in snd_usb_hardware

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

 



Hi ,

snd_usb_hardware is defined in sound/usb/pcm.c as :
static struct snd_pcm_hardware snd_usb_hardware =
{
                 .....
	.buffer_bytes_max =	1024 * 1024,
	.period_bytes_min =	64,
	.period_bytes_max =	512 * 1024,
	.periods_min =	2,
	.periods_max =	1024,
};

here periods_max is intialized with value = 1024 .

but going by buffer_bytes_max and period_bytes_min value defined above ,
periods_max = ( buffer_bytes_max / period_bytes_min ) = 16384 .

why this upper cap of  1024 is maintained for  periods_max even though from
calculation it comes as 16384 ?



Thanx & Regards
Amit Nagal

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux