At Sat, 15 Aug 2009 16:38:46 +0400, Alexey Dobriyan wrote:
Fix alsamixer inability to start:
ALSA lib simple_none.c:1491:(simple_add1) helem (MIXER,'Master Playback Switch',0,3,0) appears twice or more
ALC268 codec shipped with Toshiba Satellite X200 has ids 1179:ff00 and began to match quirk table.
If it doesn't match and auto-probe from BIOS is used, alsamixer works:
hda_codec: Unknown model for ALC268, trying auto-probe from BIOS...
8871e5b91518a47284b6bc2603b44dbc79c85446 is first bad commit commit 8871e5b91518a47284b6bc2603b44dbc79c85446 Author: Takashi Iwai tiwai@suse.de Date: Tue Jun 2 01:02:50 2009 +0200
ALSA: hda - Reorder and clean-up ALC268 quirk table Rearrange alc268_cfg_tbl[] in the order of vendor id, and group some entries using SND_PCI_QUIRK_MASK(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
:040000 040000 2497bb6fc5305acf3191b8e9b82956ec0ea1aee9 6f1d9ff9fed20550a1b2b398c7d2d5fec705fcd9 M sound
Signed-off-by: Alexey Dobriyan adobriyan@gmail.com
Well, it's no right fix. The symptom implies that something wrong with the current model=toshiba, so fixing the quirk is the way to go at this moment.
Could you give alsa-info.sh output (run with --no-upload option) as vanilla kernel? Run with both model=auto and without model option and attach both results to compare. The former means actually the condition as your patch does.
thanks,
Takashi