Skip to contentSkip to conversation

tumbler.c patch fails

PATCH In review Giuliano Pochini 2 participants 2 messages Jan 3, 2006 – Jan 4, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tumbler.c patch fails

patching file tumbler.c
Hunk #2 succeeded at 941 with fuzz 2 (offset 94 lines). Hunk #3 FAILED at 994.
Hunk #4 succeeded at 1425 with fuzz 1 (offset 260 lines). 1 out of 4 hunks FAILED -- saving rejects to file tumbler.c.rej make[1]: *** [tumbler.c] Error 1
make[1]: Leaving directory `/home/giu/soft/alsa/alsa-driver/ppc'
make: *** [dep] Error 1

This patch fixed tumbler.patch so it doesn't fail anymore. I'm not 100% sure it's the right fix.

ppc/tumbler.patch renamed from ppc/tumbler.patch__orig +12 -12
@@ -1,11 +1,11 @@
---- ../alsa-kernel/ppc/tumbler.c	2004-08-16 12:48:40.285950840 +0200
-+++ tumbler.c	2004-08-16 12:51:36.742361538 +0200
+--- ../alsa-kernel/ppc/tumbler.c	2005-11-20 16:14:15.000000000 +0000
++++ tumbler.c	2006-01-03 20:38:54.000000000 +0000
 @@ -1,3 +1,4 @@
 +#define __NO_VERSION__
  /*
   * PMac Tumbler/Snapper lowlevel functions
   *
-@@ -846,7 +847,11 @@
+@@ -940,7 +941,11 @@ static void check_mute(struct snd_pmac *
  	}
  }
  
@@ -15,21 +15,21 @@
  static struct work_struct device_change;
 +#endif
  
- static void
- device_change_handler(void *self)
-@@ -895,7 +900,11 @@
- 
- 		/* finally we need to schedule an update of the mixer values
- 		   (master and DRC are enough for now) -ReneR */
+ static void device_change_handler(void *self)
+ {
+@@ -1009,7 +1014,11 @@ static void tumbler_update_automute(stru
+ 		mix = chip->mixer_data;
+ 		snd_assert(mix, return);
+ 		mix->auto_mute_notify = do_notify;
 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
 +		schedule_task(&device_change);
 +#else
  		schedule_work(&device_change);
 +#endif
- 
  	}
  }
-@@ -1156,7 +1165,11 @@
+ #endif /* PMAC_SUPPORT_AUTOMUTE */
+@@ -1416,7 +1425,11 @@ int __init snd_pmac_tumbler_init(struct 
  	chip->resume = tumbler_resume;
  #endif
  
@@ -40,4 +40,4 @@
 +#endif
  
  #ifdef PMAC_SUPPORT_AUTOMUTE
- 	if (mix->headphone_irq >=0 && (err = snd_pmac_add_automute(chip)) < 0)
+ 	if ((mix->headphone_irq >=0 || mix->lineout_irq >= 0)

--
Giuliano.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#1 lore raw

At Tue, 3 Jan 2006 20:58:57 +0000,

Quoted 13 lines · Giuliano Pochini

patching file tumbler.c
Hunk #2 succeeded at 941 with fuzz 2 (offset 94 lines). Hunk #3 FAILED at 994.
Hunk #4 succeeded at 1425 with fuzz 1 (offset 260 lines). 1 out of 4 hunks FAILED -- saving rejects to file tumbler.c.rej make[1]: *** [tumbler.c] Error 1
make[1]: Leaving directory `/home/giu/soft/alsa/alsa-driver/ppc'
make: *** [dep] Error 1

Quoted 5 lines

This patch fixed tumbler.patch so it doesn't fail anymore. I'm not 100% sure it's the right fix.

That's the right fix. (Sorry, I forgot your signed-off-by by commit)

thanks,

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click