Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-27-2003, 11:10 AM   #1
Registered: May 2003
Location: Northern Virginia
Distribution: Ubuntu, DeLi
Posts: 33

Rep: Reputation: 15
I have a patch (diff file). What now?

I have an Aureal Vortex Soundcard and Mandrake 9.1, which comes with ALSA already installed. The Aureal Soundcard isn't supported natively by ALSA, but someone has written a patch which should make the soundcard work. So I downloaded the patch, but now I have no idea what to do with it. I did a couple of searches and haven't figured it out still. I know that there's a program called patch that I should probably be using, but I'm not really sure if the patch should be applied to the kernel or to ALSA. Or is ALSA already part of the kernel? Anyways, here's a link to the page where I got the patch from. Not much documentation to help me, but maybe some can find something I missed, or clue me in to something obvious that I should have figured out already. Also, I'm not sure if I need to download drivers in addition to this patch.

AU8820 Patch
Open Vortex Project
Old 05-27-2003, 11:39 AM   #2
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
The "download" link asks you to download a file (for me) called "download.php". This is a bzip2 archive containing a diff file.
If you want it to have a reasonable name, do:"mv download.php alsa_patch_au8820.diff.bz2".
To read the patch you could do: "bzcat alsa_patch_au8820.diff.bz2 | less". Notice the first three lines:
diff -Naur alsa-driver-0.9.2_orig/acinclude.m4 alsa-driver-0.9.2_vortex/acinclude.m4
--- alsa-driver-0.9.2_orig/acinclude.m4	2003-03-19 14:50:20.000000000 -0400
+++ alsa-driver-0.9.2_vortex/acinclude.m4	2003-03-26 01:26:14.000000000 -0400
Here he diffs the old file "alsa-driver-0.9.2_orig/acinclude.m4" with the new file "alsa-driver-0.9.2_vortex/acinclude.m4". Since the dir is alsa-driver-0.9.2_vortex, I believe you need a source package (tarball) called something like alsa-driver-0.9.2*.tar.gz.

Unpack that tarball, which should give you a directory called something like alsa-driver-0.9.2, then run "bzcat alsa_patch_au8820.diff.bz2 | patch --dry-run ./alsa-driver-0.9.2" to test (option --dry-run) if that will work. If it does, you can remove "--dry-run", else you'll possibly have to tweak the -p options (man patch).

Old 05-27-2003, 03:20 PM   #3
Registered: May 2003
Location: Northern Virginia
Distribution: Ubuntu, DeLi
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks, I'll try that.

P.S. I'm actually starting to understand some of the replies to my questions now!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
patch -p1 x.diff but no patch command!? pyenos Linux - Hardware 1 03-04-2005 04:10 PM
how can i patch a file from source and diff? gunslinger77 Linux - General 1 04-21-2004 09:23 PM
What's the difference between .diff and .patch? nidua18 Linux - Software 0 10-15-2003 01:25 AM
diff-patch mtb Linux - Software 1 03-23-2003 02:49 PM
trying to patch i810_audio diff file McQuaid Linux - General 1 11-28-2002 06:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration