From: Takashi Iwai Subject: Re: NULL pointer dereference Date: Tue, 21 Jun 2005 12:16:38 +0200 Message-ID: References: <20050620123344.GA20286@blackmilk.localzone.fr> <20050620214931.GA14357@blackmilk.localzone.fr> <20050621094250.GB1537@blackmilk.localzone.fr> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Tue_Jun_21_12:16:38_2005-1" Return-path: In-Reply-To: <20050621094250.GB1537@blackmilk.localzone.fr> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: fab Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Tue_Jun_21_12:16:38_2005-1 Content-Type: text/plain; charset=US-ASCII At Tue, 21 Jun 2005 11:42:50 +0200, fab wrote: > > > > Ok, after having applied the patch everything is weired, it works even > > > worse than before :( > > > > Might be. Without model parameter, the experimental > > auto-configuration will be selected. > > > > > If I pass card=foo with "foo" being a quite old card type, I get less or > > > more the same effect as before (badly working). > > > > You have to pass "model" parameter, not card. > > I confused myself in the email (not on the shell), I passed the "model" > param. Hmm, strange. If a proper model string is passed, the error message below shouldn't appear... > > > With a new "foo" (z71v, asus, etc...) or no param at all, I get > > > something like: > > > hda_codec: Unknown model for ALC880, trying auto-probe from BIOS... > > > > > > Then, If I run "alsamixer" It fails: > > > alsamixer: function snd_mixer_load failed: Invalid argument > > > > Is it CVS version? Might be safer to use alsa-lib/alsa-utils latest > > 1.0.9x release right now since the mixer stuff is being changed > > greatly. > > I use everything from 1.0.9x but the drivers which are CVS. OK, then the problem is somewhere different... > > > should I pass a specific model= argument ? > > > > The entry for your device seems just missing. > > Give me the output of lspci -nv. > > Ok, take a look at the file joined. Thanks, the pci id reveals it's a W810. So, the model is "w810". But this device should be selected automatically since it's already in the table. Anyway, the below is the patch to fix w810 GPIO config, which was dropped accidentally. Apply this to the clean CVS alsa-kernel. This includes the last patch, too. Please make sure that you have no model= option in /etc/modprobe.conf or /etc/modprobe.d/* or whatever, and try to load snd-hda-intel without model option again (i.e. using the default config). Hope this helps. Takashi --Multipart_Tue_Jun_21_12:16:38_2005-1 Content-Type: text/plain; charset=US-ASCII Index: alsa-kernel/pci/hda/patch_realtek.c =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/hda/patch_realtek.c,v retrieving revision 1.21 diff -u -r1.21 patch_realtek.c --- alsa-kernel/pci/hda/patch_realtek.c 13 Jun 2005 12:53:42 -0000 1.21 +++ alsa-kernel/pci/hda/patch_realtek.c 21 Jun 2005 10:13:13 -0000 @@ -119,6 +119,7 @@ unsigned int num_kctl_alloc, num_kctl_used; snd_kcontrol_new_t *kctl_alloc; struct hda_input_mux private_imux; + hda_nid_t private_dac_nids[4]; }; @@ -1656,7 +1657,8 @@ }, [ALC880_W810] = { .mixers = { alc880_w810_base_mixer }, - .init_verbs = { alc880_volume_init_verbs, alc880_pin_w810_init_verbs }, + .init_verbs = { alc880_volume_init_verbs, alc880_pin_w810_init_verbs, + alc880_gpio2_init_verbs }, .num_dacs = ARRAY_SIZE(alc880_w810_dac_nids), .dac_nids = alc880_w810_dac_nids, .dig_out_nid = ALC880_DIGOUT_NID, @@ -1666,8 +1668,7 @@ }, [ALC880_Z71V] = { .mixers = { alc880_z71v_mixer }, - .init_verbs = { alc880_volume_init_verbs, alc880_pin_z71v_init_verbs, - alc880_gpio2_init_verbs }, + .init_verbs = { alc880_volume_init_verbs, alc880_pin_z71v_init_verbs }, .num_dacs = ARRAY_SIZE(alc880_z71v_dac_nids), .dac_nids = alc880_z71v_dac_nids, .dig_out_nid = ALC880_DIGOUT_NID, @@ -1809,6 +1810,7 @@ int i, j; memset(assigned, 0, sizeof(assigned)); + spec->multiout.dac_nids = &spec->dac_nids_private; /* check the pins hardwired to audio widget */ for (i = 0; i < cfg->line_outs; i++) { --Multipart_Tue_Jun_21_12:16:38_2005-1-- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click