All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: Takashi Iwai <tiwai@suse.de>,
	alsa-devel@alsa-project.org, lgirdwood@gmail.com
Subject: Re: [RFC] ALSA: add new alsa control byte extended
Date: Fri, 29 Nov 2013 15:59:37 +0530	[thread overview]
Message-ID: <20131129102937.GG8834@intel.com> (raw)
In-Reply-To: <20131129110549.GQ27568@sirena.org.uk>


[-- Attachment #1.1: Type: text/plain, Size: 1601 bytes --]

On Fri, Nov 29, 2013 at 11:05:49AM +0000, Mark Brown wrote:
> On Fri, Nov 29, 2013 at 10:48:29AM +0100, Takashi Iwai wrote:
> > Jaroslav Kysela wrote:
> 
> > > I basically agree, but... I believe that these chunks can be divided to
> > > the 512 limit using continuous indexes (kcontrol->count) and a simple
> > > rule in the driver "write all to a DSP when the last control (index) is
> > > touched" may be enough. No API extensions are required. The question is:
> > > Do you rellay need 100+KB for coefficients? Do you expect to handle
> > > these data in standard tools like alsactl?
> 
> It's certianly possible to do something like that while maintianing the
> ABI, however if we were going to do that we'd probably want to extend
> alsa-lib and tinyalsa to do this transparently and devise a naming
> scheme for the controls to trigger that behaviour.  The main thing is
> the API offered to users.
I think this would a bit problematic for DSPs with large controls. We are
looking at 3 digit number already and splitting to multiple calls is going to be
bad from a already constrained latency problem.

Most of the controls will be few KBs at most with few special cases which can be
in MBs. I think Wolfson is also headed this way!

I am leading more towards adding new ioctl for this along with new ones for
enumerating controls. Then additional support for alsa-lib and tinyalsa.
That way existing tinymix, amxier can see these as controls while not disturbing
existing apps. I dont think we need save and restor, then alsactl need not be
modified.

--
~Vinod

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2013-11-29 11:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-29  4:29 [RFC] ALSA: add new alsa control byte extended Vinod Koul
2013-11-29  7:27 ` Jarkko Nikula
2013-11-29  7:18   ` Vinod Koul
2013-11-29  7:46 ` Takashi Iwai
2013-11-29  7:44   ` Vinod Koul
2013-11-29  9:08     ` Takashi Iwai
2013-11-29  8:34       ` Vinod Koul
2013-11-29  9:40       ` Jaroslav Kysela
2013-11-29  9:48         ` Takashi Iwai
2013-11-29 10:10           ` Jaroslav Kysela
2013-11-29 11:25             ` Mark Brown
2013-11-29 11:31               ` Takashi Iwai
2013-11-29 12:27                 ` Mark Brown
2013-11-29 11:05           ` Mark Brown
2013-11-29 10:29             ` Vinod Koul [this message]
2013-11-29 11:46               ` Mark Brown
2013-11-29 13:19                 ` Vinod Koul
2013-11-29 13:11               ` Charles Keepax
2013-11-29 13:28                 ` Vinod Koul
2013-11-29 14:17                 ` Mark Brown

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=20131129102937.GG8834@intel.com \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=tiwai@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.