Skip to contentSkip to conversation

snd_kcontrol questions

DISCUSSION Harsha priya gupta 2 participants 4 messages May 22, 2008 – May 27, 2008

lore
Share & tools
lore
#0 lore raw

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?

Signature · 1 line
-Harsha
#1 lore raw
Quoted 1 line · Harsha priya gupta

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.

Quoted 2 lines

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.

Quoted 2 lines

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

#2 lore raw

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.

Quoted 21 lines · Clemens Ladisch
Quoted 1 line · Harsha priya gupta

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.

Quoted 2 lines

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.

Quoted 1 line

3. I would want to get the individual setting of each channel from KMIX

into

Quoted 1 line

my ALSA driver. How do I get them?

The snd_ctl_elem_value structure contains an array of values.

HTH
Clemens

Signature · 1 line
-Harsha
#3 lore raw

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?

Quoted 36 lines · Harsha priya gupta

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.

Quoted 12 lines · Clemens Ladisch
Quoted 1 line · Harsha priya gupta

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.

Quoted 2 lines

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.

Quoted 1 line

3. I would want to get the individual setting of each channel from KMIX

Quoted 9 lines

into

Quoted 1 line

my ALSA driver. How do I get them?

The snd_ctl_elem_value structure contains an array of values.

HTH
Clemens

--
-Harsha

Signature · 1 line
-Harsha