Skip to contentSkip to conversation

Applying Herton supplied patches ...

DISCUSSION Guy Stalnaker 2 participants 2 messages Feb 14, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

herton or Takashi,

How does one go about applying a patch like the ones attached to Message 6? And to which files are they applied? I assume they are meant for the alsa-driver code, but that's as much as I know (well, I know how to run ./configure, make, and make sudo :). I'd very much like to see if the patches work for my HP dv4 1225.

Regards,

Guy

Quoted 118 lines

Message: 6
Date: Sat, 14 Feb 2009 17:13:55 -0200
From: Herton Ronaldo Krzesinski <[email protected]>
Subject: Re: [alsa-devel] [Fwd: HP DV4 1155 SE - No Sound through

	speakers...]

To: [email protected]
Cc: Takashi Iwai <[email protected]>, Tim Barnette
<[email protected]>, Jean-Pierre Andr? <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Quoted 12 lines · On Saturday 14 February 2009 08:24:15 Takashi Iwai wrote:
Quoted 12 lines

At Fri, 13 Feb 2009 14:22:00 -0500,

Quoted 2 lines · Tim Barnette
Quoted 2 lines

..And it worked! I now have sound! Can you tell me what I actually did here?

The problem was that your BIOS didn't set the correct default pin configuration. The driver doesn't know which pin should be used for the speaker output, as a consequence, it's set as INPUT. Now you set it OUTPUT manually by hda-verb, and (fortunately) the route to that pin was alive even though it wasn't declared, you get the speaker output now.

Quoted 4 lines
Quoted 4 lines

The next step is to implement a proper pin-config to override by the driver. This won't be much work, but hey, wait for a while.

(Or, did Herton already work on that?)

I had added before pin configs for which source came from *.ini files of IDT windows drivers provided by HP. But I don't know if they are at all necessary, may be just setting config of 0x0d pin should suffice for all hp-dv5 models, as all of them have speaker on 0x0d from all reports and also looking at the *.ini files.

I have three patches, you can choose one of them :) , see attached. The first one is my previous pin configs work "let's set for all cases the pin configs based on *.ini files", the others are same smaller change/less intrusive that instead just deals with this hp dv4 case.

Quoted 33 lines
Quoted 33 lines

thanks,

Takashi

Quoted 27 lines
Quoted 27 lines · Tim Barnette
    Takashi, I was able to build hda-verb and when I executed the command
    below, it responded with:
    nid=0xd, verb=0x707, param=0x40
    value=0x0

    On Mon, Feb 2, 2009 at 10:25 AM, Takashi Iwai <[email protected]> wrote:
   
        At Mon, 2 Feb 2009 10:17:03 -0500,
        Tim Barnette wrote:
        >
        > Thanks, Takashi. I made this change and rebooted.
        >
        > I noticed right away the mute light is no longer on... but still no
        sound
        > through speakers, only headphones..
        >
        > /sys/module/snd_hda_intel/parameters/model
        > contains
        > hp-dv5,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>
        >
        > attached is the alsa-info.txt you requested..
       
        Did you try the latest alsa-driver snapshot?
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

If it still doesn't work, I guess this is a BIOS problem. The other HP dv laptops show the widget 0x0d as the speaker while yours is unused.

Try to run:
hda-verb /dev/snd/hwC0D0 0x0d SET_PIN_WID 0x40

Takashi

--
[]'s
Herton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch1.patch
Type: text/x-patch
Size: 5653 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20090214/1e371092/attachment.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch2.patch
Type: text/x-patch
Size: 2573 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20090214/1e371092/attachment-0001.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch3.patch
Type: text/x-patch
Size: 1406 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20090214/1e371092/attachment-0002.patch

------------------------------

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

End of Alsa-devel Digest, Vol 24, Issue 68
******************************************

#2 lore raw

'Twas brillig, and Guy Stalnaker at 14/02/09 22:08 did gyre and gimble:

Quoted 7 lines

herton or Takashi,

How does one go about applying a patch like the ones attached to Message 6? And to which files are they applied? I assume they are meant for the alsa-driver code, but that's as much as I know (well, I know how to run ./configure, make, and make sudo :). I'd very much like to see if the patches work for my HP dv4 1225.

Generally these would be applied via git-am into a local git clone of the sources.

As many of these patches will be to the driver this means applying the patches to your kernel and recompiling. It's a quite involved process and not really for the faint hearted.

If you really want to test them out, the easiest way would be to install Mandriva Cooker (the development version of Mandriva) and the latest kernel package. I'm not sure if these patches are in the latest cooker kernel yet but Herton is part of the kernel team and the patches will no doubt show up soon if they are not there already.

Col

Signature · 10 lines
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
   Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
   Mandriva Linux Contributor [http://www.mandriva.com/]
   PulseAudio Hacker [http://www.pulseaudio.org/]
   Trac Hacker [http://trac.edgewall.org/]