At Sat, 23 Sep 2006 20:08:23 +0200, Mariusz Domanski wrote: > > > Hi! > > Alsa: 1.0.13rc2 > Kernel: 2.6.17.11 > Linux: Ubuntu 6.06 Dapper Drake > Laptop: Asus A6rp-ap002 > Sound chpset: ALC861 > > I was working on patch for Alsa, that could allow me and other owners of Asus A6rp > laptop use headphones. > Here is bug whitch I posted some time ago: https://bugtrack.alsa-project.org/alsa-bug/ > view.php?id=2320 > As I wrote in it the model=uniwill-m31 is working for me, but without headphones... > Few days ago I found free time to read output of codec#0 and find a solution for my > problem. > In the attachement you can find codec#0 output and .patch file for patch_realtek.c. > Basically this file works, but not always. > After modyfing the file I typed this command in terminal in alsa-driver-1.0.13rc2 > directory: > make && sudo make install && sleep 3 && sudo /etc/init.d/alsasound restart > And the sound appeard in headphones and everything was working fine, even 6ch mode was > working (built-in speakers, mic and line-in jacks as outputs, hp jack - silent(?) ). > To make the sound clear I had to mute in gnome volume manager line-in and cd-in. > The problem is that the sound was only to the next start of alsasound... Really don't > know why... > I made few changes in patch_realtek.c, recompiled Alsa and undo changes and one more > time recompiled Alsa and the sound was back again... > Now, after reboot, there is no sound in headphones... And recompiling doesn't help... > Propably the sound will appear after (x)th compilation, but why? Why it is not working > all the time? No idea. A weird hardware... > And why the ALC861 is detected to be the ALC660? Simply because they are almost compatible (according to Realtek). > --- hda_old/patch_realtek.c 2006-09-12 15:40:56.000000000 +0200 > +++ hda/patch_realtek.c 2006-09-23 19:25:45.000000000 +0200 > @@ -91,6 +91,7 @@ > ALC861_3ST_DIG, > ALC861_6ST_DIG, > ALC861_UNIWILL_M31, > + ALC861_ASUS_A6RP, > ALC861_AUTO, > ALC861_MODEL_LAST, > }; > @@ -6070,6 +6071,45 @@ > { 4, alc861_uniwill_m31_ch4_init }, > }; > > +/* Set mic1 and line-in as input and unmute the mixer */ > +static struct hda_verb alc861_asus_a6rp_ch2_init[] = { > + /* set pin widget 1Ah (line in) for input */ > + { 0x0c, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x20 }, > + /* set pin widget 18h (mic1/2) for input, for mic also enable the vref */ > + { 0x0d, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x24 }, > + > + { 0x15, AC_VERB_SET_AMP_GAIN_MUTE, 0xb00c }, > +#if 0 > + { 0x15, AC_VERB_SET_AMP_GAIN_MUTE, (0x7000 | (0x01 << 8)) }, /*mic*/ > + { 0x15, AC_VERB_SET_AMP_GAIN_MUTE, (0x7000 | (0x02 << 8)) }, /*line-in*/+#endif The patch looks broken. Could you regenerated it? thanks, Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel