From: Takashi Iwai Subject: Re: NULL pointer dereference Date: Tue, 21 Jun 2005 14:55:14 +0200 Message-ID: References: <20050620123344.GA20286@blackmilk.localzone.fr> <20050620214931.GA14357@blackmilk.localzone.fr> <20050621094250.GB1537@blackmilk.localzone.fr> <20050621110713.GC31074@blackmilk.localzone.fr> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Tue_Jun_21_14:55:14_2005-1" Return-path: In-Reply-To: <20050621110713.GC31074@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_14:55:14_2005-1 Content-Type: text/plain; charset=US-ASCII At Tue, 21 Jun 2005 13:07:13 +0200, fab wrote: > > Your patch still contains the private_dac_nids => dac_nids_private > typo... Oh, yes. > My /etc/modprobe.d/sound is : > > options snd device_mode=0666 > alias snd-card-0 snd-hda-intel > alias sound-slot-0 snd-hda-intel > > At reboot (with the new drivers) I get: > ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16 > PCI: Setting latency timer of device 0000:00:1b.0 to 64 > hda_codec: Unknown model for ALC880, trying auto-probe from BIOS... OK, found a bug. The patch is below. > A bit later: > hda_codec: num_steps = 0 for NID=0x8 > When I type "alsamixer": > hda_codec: num_steps = 0 for NID=0x9 Hmm, these messages are a bit more serious. Basically this means that GET_AMP_CAPS requests return bogus values. Could you attach /proc/asound/card0/codec#* file for checking? Takashi --Multipart_Tue_Jun_21_14:55:14_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 retrieving revision 1.23 diff -u -r1.21 -r1.23 --- 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 12:50:18 -0000 1.23 @@ -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]; }; @@ -1549,7 +1550,8 @@ { .pci_subvendor = 0x1019, .pci_subdevice = 0xa880, .config = ALC880_5ST_DIG }, { .pci_subvendor = 0x1019, .pci_subdevice = 0xa884, .config = ALC880_5ST_DIG }, { .pci_subvendor = 0x1695, .pci_subdevice = 0x400d, .config = ALC880_5ST_DIG }, - { .pci_subvendor = 0x0000, .pci_subdevice = 0x8086, .config = ALC880_5ST_DIG }, + /* note subvendor = 0 below */ + /* { .pci_subvendor = 0x0000, .pci_subdevice = 0x8086, .config = ALC880_5ST_DIG }, */ { .modelname = "w810", .config = ALC880_W810 }, { .pci_subvendor = 0x161f, .pci_subdevice = 0x203d, .config = ALC880_W810 }, @@ -1656,7 +1658,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 +1669,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 +1811,7 @@ int i, j; memset(assigned, 0, sizeof(assigned)); + spec->multiout.dac_nids = spec->private_dac_nids; /* check the pins hardwired to audio widget */ for (i = 0; i < cfg->line_outs; i++) { --Multipart_Tue_Jun_21_14:55:14_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