[alsa-devel] vaio_mux's num_items is not equal to the actual items

Takashi Iwai tiwai at suse.de
Thu Oct 11 11:19:40 CEST 2007


At Thu, 11 Oct 2007 17:13:13 +0800,
zhejiang wrote:
> 
> 
> In patch_sigmatel.c,
> 
> static struct hda_input_mux vaio_mux = {
> 	.num_items = 2,
> 	.items = {
> 		/* { "HP", 0x0 }, */
> 		{ "Mic Jack", 0x1 },
> 		{ "Internal Mic", 0x2 },
> 		{ "PCM", 0x3 },
> 	}
> };
> 
> Why is the num_items  not 3 ?
> The "PCM" won't be selected with num_times = 2.

Oops, simply forgot to change the value after a separate mic item was
added.  Will fix now.


Thanks,

Takashi


More information about the Alsa-devel mailing list