Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Amit Nagal <helloin.amit@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: periods_max initialization in snd_usb_hardware
Date: Wed, 27 Jun 2012 21:29:53 +0200	[thread overview]
Message-ID: <4FEB5F31.8040809@ladisch.de> (raw)
In-Reply-To: <CA+F9FsDoX=X14qpzgoH+Fm8oEq8f36fwa02J1fQTD9eqbCnVSw@mail.gmail.com>

Amit Nagal wrote:
> snd_usb_hardware is defined in sound/usb/pcm.c as ...
> 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 ?

The buffer is entirely handled by software; these limits are pretty much
arbitrary.

If there is a reason to change these limits, just send a patch.  :)


Regards,
Clemens

      reply	other threads:[~2012-06-27 19:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-27  5:54 periods_max initialization in snd_usb_hardware Amit Nagal
2012-06-27 19:29 ` Clemens Ladisch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FEB5F31.8040809@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=helloin.amit@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox