* limitations on number of alsa controls for a card
@ 2012-10-31 14:07 Vinod Koul
2012-11-01 14:25 ` Mark Brown
0 siblings, 1 reply; 6+ messages in thread
From: Vinod Koul @ 2012-10-31 14:07 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, Mark Brown, Liam
Hi,
Is there any limitation on maximum number of controls we can have.
I had some platform side controls to represent DSP and adding them made
some of codec controls to vanish. And looks like if I register these
platform controls not all codec controls are visible in userpsace.
Is there nay max limit I am hitting?
--
~Vinod
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: limitations on number of alsa controls for a card
2012-10-31 14:07 limitations on number of alsa controls for a card Vinod Koul
@ 2012-11-01 14:25 ` Mark Brown
2012-11-01 14:46 ` Vinod Koul
0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2012-11-01 14:25 UTC (permalink / raw)
To: Vinod Koul; +Cc: Takashi Iwai, alsa-devel, Liam
[-- Attachment #1.1: Type: text/plain, Size: 547 bytes --]
On Wed, Oct 31, 2012 at 07:37:31PM +0530, Vinod Koul wrote:
> Is there any limitation on maximum number of controls we can have.
> I had some platform side controls to represent DSP and adding them made
> some of codec controls to vanish. And looks like if I register these
> platform controls not all codec controls are visible in userpsace.
> Is there nay max limit I am hitting?
Not that I'm aware of beyond sizeof() type stuff which you're probably
still a way away from. How are you listing the controls and are there
any name collisons?
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: limitations on number of alsa controls for a card
2012-11-01 14:25 ` Mark Brown
@ 2012-11-01 14:46 ` Vinod Koul
2012-11-01 17:42 ` Felix Homann
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Vinod Koul @ 2012-11-01 14:46 UTC (permalink / raw)
To: Mark Brown; +Cc: Takashi Iwai, alsa-devel, Liam
On Thu, 2012-11-01 at 14:25 +0000, Mark Brown wrote:
> On Wed, Oct 31, 2012 at 07:37:31PM +0530, Vinod Koul wrote:
>
> > Is there any limitation on maximum number of controls we can have.
>
> > I had some platform side controls to represent DSP and adding them made
> > some of codec controls to vanish. And looks like if I register these
> > platform controls not all codec controls are visible in userpsace.
> > Is there nay max limit I am hitting?
>
> Not that I'm aware of beyond sizeof() type stuff which you're probably
> still a way away from. How are you listing the controls and are there
> any name collisons?
alsa_amixer -c"cardname" controls
if there isn't anything in kernel which limits this, would there be
something in alsa-lib to have this kind of behavior?
--
~Vinod
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: limitations on number of alsa controls for a card
2012-11-01 14:46 ` Vinod Koul
@ 2012-11-01 17:42 ` Felix Homann
2012-11-02 2:21 ` Raymond Yau
2012-11-02 9:00 ` Takashi Iwai
2 siblings, 0 replies; 6+ messages in thread
From: Felix Homann @ 2012-11-01 17:42 UTC (permalink / raw)
To: Vinod Koul; +Cc: Takashi Iwai, alsa-devel, Mark Brown, Liam
2012/11/1 Vinod Koul <vinod.koul@linux.intel.com>:
> On Thu, 2012-11-01 at 14:25 +0000, Mark Brown wrote:
>> On Wed, Oct 31, 2012 at 07:37:31PM +0530, Vinod Koul wrote:
>>
>> > Is there any limitation on maximum number of controls we can have.
>>
>>
>> Not that I'm aware of beyond sizeof() type stuff which you're probably
>> still a way away from.
At least, for USB devices there's a maximum for logical mixer channels
(currently, MAX_CHANNELS = 16). This might feel like a limit for the
number of mixer controls depending on the respective mixer topoplogy.
MAX_CHANNELS can't be raised deliberately in the current code since it
is used for some bitshifting. I don't know if something similar exists
for PCI devices
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: limitations on number of alsa controls for a card
2012-11-01 14:46 ` Vinod Koul
2012-11-01 17:42 ` Felix Homann
@ 2012-11-02 2:21 ` Raymond Yau
2012-11-02 9:00 ` Takashi Iwai
2 siblings, 0 replies; 6+ messages in thread
From: Raymond Yau @ 2012-11-02 2:21 UTC (permalink / raw)
To: Vinod Koul; +Cc: Takashi Iwai, alsa-devel, Mark Brown, Liam
2012-11-1 下午11:01 於 "Vinod Koul" <vinod.koul@linux.intel.com> 寫道:
>
> On Thu, 2012-11-01 at 14:25 +0000, Mark Brown wrote:
> > On Wed, Oct 31, 2012 at 07:37:31PM +0530, Vinod Koul wrote:
> >
> > > Is there any limitation on maximum number of controls we can have.
> >
> > > I had some platform side controls to represent DSP and adding them
made
> > > some of codec controls to vanish. And looks like if I register these
> > > platform controls not all codec controls are visible in userpsace.
> > > Is there nay max limit I am hitting?
> >
> > Not that I'm aware of beyond sizeof() type stuff which you're probably
> > still a way away from. How are you listing the controls and are there
> > any name collisons?
> alsa_amixer -c"cardname" controls
>
> if there isn't anything in kernel which limits this, would there be
> something in alsa-lib to have this kind of behavior?
>
> --
those inactive controls are not listed by amixer
try alsactl store -f foo.state
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: limitations on number of alsa controls for a card
2012-11-01 14:46 ` Vinod Koul
2012-11-01 17:42 ` Felix Homann
2012-11-02 2:21 ` Raymond Yau
@ 2012-11-02 9:00 ` Takashi Iwai
2 siblings, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2012-11-02 9:00 UTC (permalink / raw)
To: Vinod Koul; +Cc: alsa-devel, Mark Brown, Liam
At Thu, 01 Nov 2012 20:16:51 +0530,
Vinod Koul wrote:
>
> On Thu, 2012-11-01 at 14:25 +0000, Mark Brown wrote:
> > On Wed, Oct 31, 2012 at 07:37:31PM +0530, Vinod Koul wrote:
> >
> > > Is there any limitation on maximum number of controls we can have.
> >
> > > I had some platform side controls to represent DSP and adding them made
> > > some of codec controls to vanish. And looks like if I register these
> > > platform controls not all codec controls are visible in userpsace.
> > > Is there nay max limit I am hitting?
> >
> > Not that I'm aware of beyond sizeof() type stuff which you're probably
> > still a way away from. How are you listing the controls and are there
> > any name collisons?
> alsa_amixer -c"cardname" controls
Better to use alsactl for obtaining the list of raw control elements.
> if there isn't anything in kernel which limits this, would there be
> something in alsa-lib to have this kind of behavior?
In most cases, such a problem is a driver bug, e.g. creating control
elements conflicting with each other for the mixer abstraction.
Takashi
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-11-02 9:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-31 14:07 limitations on number of alsa controls for a card Vinod Koul
2012-11-01 14:25 ` Mark Brown
2012-11-01 14:46 ` Vinod Koul
2012-11-01 17:42 ` Felix Homann
2012-11-02 2:21 ` Raymond Yau
2012-11-02 9:00 ` Takashi Iwai
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.