Skip to contentSkip to conversation

vaio_mux's num_items is not equal to the actual items

DISCUSSION zhejiang 2 participants 2 messages Oct 11, 2007

lore
Share & tools
lore

zhejiang

author
#0 lore raw

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.

#1 lore raw

At Thu, 11 Oct 2007 17:13:13 +0800,

Quoted 14 lines · zhejiang

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 },
	}
};
Quoted 2 lines

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