All of lore.kernel.org
 help / color / mirror / Atom feed
* snd_kcontrol questions
@ 2008-05-22  6:15 Harsha priya gupta
  2008-05-22 10:58 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Harsha priya gupta @ 2008-05-22  6:15 UTC (permalink / raw)
  To: Alsa-devel

Hi,

Can anyone help me to with the following questions on controls?

1. I want to define a snd_kcontrol that is of type mono. I am basically
trying to define a mono output control that is exposed in KMIX and  whose
'split channel' does not split into two channels.
2. My input controls give out 9 channels when i say 'split channels' in
kmix. can anyone help me how to fix that to 2 channels
3. I would want to get the individual setting of each channel from KMIX into
my ALSA driver. How do I get them? will .get and .set functions help in
this?

-- 
-Harsha

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: snd_kcontrol questions
  2008-05-22  6:15 snd_kcontrol questions Harsha priya gupta
@ 2008-05-22 10:58 ` Clemens Ladisch
  2008-05-26  9:42   ` Harsha priya gupta
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2008-05-22 10:58 UTC (permalink / raw)
  To: Harsha priya gupta; +Cc: Alsa-devel

Harsha priya gupta wrote:
> 1. I want to define a snd_kcontrol that is of type mono.

In the control's info callback, set the count element of the
snd_ctl_elem_info structure to 1.

> 2. My input controls give out 9 channels when i say 'split channels' in
> kmix. can anyone help me how to fix that to 2 channels

There's something wrong in your code.  Which you didn't show.

> 3. I would want to get the individual setting of each channel from KMIX into
> my ALSA driver. How do I get them?

The snd_ctl_elem_value structure contains an array of values.


HTH
Clemens

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: snd_kcontrol questions
  2008-05-22 10:58 ` Clemens Ladisch
@ 2008-05-26  9:42   ` Harsha priya gupta
  2008-05-27  5:30     ` Harsha priya gupta
  0 siblings, 1 reply; 4+ messages in thread
From: Harsha priya gupta @ 2008-05-26  9:42 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Alsa-devel

Thanks a lot. Answers for 1 and 3 helped me fix my issues. Ill review my
code for 2 and shall seek your help if i find myself unlucky.

Thanks again.


On Thu, May 22, 2008 at 4:28 PM, Clemens Ladisch <clemens@ladisch.de> wrote:

> Harsha priya gupta wrote:
> > 1. I want to define a snd_kcontrol that is of type mono.
>
> In the control's info callback, set the count element of the
> snd_ctl_elem_info structure to 1.
>
> > 2. My input controls give out 9 channels when i say 'split channels' in
> > kmix. can anyone help me how to fix that to 2 channels
>
> There's something wrong in your code.  Which you didn't show.
>
> > 3. I would want to get the individual setting of each channel from KMIX
> into
> > my ALSA driver. How do I get them?
>
> The snd_ctl_elem_value structure contains an array of values.
>
>
> HTH
> Clemens
>



-- 
-Harsha

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: snd_kcontrol questions
  2008-05-26  9:42   ` Harsha priya gupta
@ 2008-05-27  5:30     ` Harsha priya gupta
  0 siblings, 0 replies; 4+ messages in thread
From: Harsha priya gupta @ 2008-05-27  5:30 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Alsa-devel

I have a quick follow up question;

In the KMix there is a balance bar. How do I get control access to the same
from my driver?

On Mon, May 26, 2008 at 3:12 PM, Harsha priya gupta <harshapriya@gmail.com>
wrote:

> Thanks a lot. Answers for 1 and 3 helped me fix my issues. Ill review my
> code for 2 and shall seek your help if i find myself unlucky.
>
> Thanks again.
>
>
>
> On Thu, May 22, 2008 at 4:28 PM, Clemens Ladisch <clemens@ladisch.de>
> wrote:
>
>> Harsha priya gupta wrote:
>> > 1. I want to define a snd_kcontrol that is of type mono.
>>
>> In the control's info callback, set the count element of the
>> snd_ctl_elem_info structure to 1.
>>
>> > 2. My input controls give out 9 channels when i say 'split channels' in
>> > kmix. can anyone help me how to fix that to 2 channels
>>
>> There's something wrong in your code.  Which you didn't show.
>>
>> > 3. I would want to get the individual setting of each channel from KMIX
>> into
>> > my ALSA driver. How do I get them?
>>
>> The snd_ctl_elem_value structure contains an array of values.
>>
>>
>> HTH
>> Clemens
>>
>
>
>
> --
> -Harsha




-- 
-Harsha

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-27  5:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-22  6:15 snd_kcontrol questions Harsha priya gupta
2008-05-22 10:58 ` Clemens Ladisch
2008-05-26  9:42   ` Harsha priya gupta
2008-05-27  5:30     ` Harsha priya gupta

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.