alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5/5] Echoaudio - add suspend/resume support
@ 2010-01-30 15:32 Giuliano Pochini
  0 siblings, 0 replies; 4+ messages in thread
From: Giuliano Pochini @ 2010-01-30 15:32 UTC (permalink / raw)
  To: alsa-devel


5/5 Patchin' patcher:
	This patch updates alsa-driver echoaudio.patch .

Short description:

This patch updates alsa-driver echoaudio.patch .


Signed-off-by: Giuliano Pochini <pochini@shiny.it>


--- alsa-driver-1.0.22.1/pci/echoaudio/echoaudio.patch__orig	2009-12-28 16:15:54.000000000 +0100
+++ alsa-driver-1.0.22.1/pci/echoaudio/echoaudio.patch	2010-01-29 23:35:16.000000000 +0100
@@ -1,6 +1,6 @@
---- ../../alsa-kernel/pci/echoaudio/echoaudio.c	2006-08-05 14:41:12.000000000 +0200
-+++ echoaudio.c	2006-10-07 20:30:53.000000000 +0200
-@@ -1926,6 +1926,7 @@
+--- ../../alsa-kernel/pci/echoaudio/echoaudio.c	2010-01-29 23:17:31.000000000 +0100
++++ echoaudio.c	2010-01-29 23:28:45.000000000 +0100
+@@ -1943,6 +1943,7 @@ static __devinit int snd_echo_create(str
  	struct echoaudio *chip;
  	int err;
  	size_t sz;
@@ -8,7 +8,7 @@
  	static struct snd_device_ops ops = {
  		.dev_free = snd_echo_dev_free,
  	};
-@@ -1988,7 +1989,12 @@
+@@ -2014,7 +2015,12 @@ static __devinit int snd_echo_create(str
  	chip->comm_page_phys = chip->commpage_dma_buf.addr;
  	chip->comm_page = (struct comm_page *)chip->commpage_dma_buf.area;
  
@@ -19,6 +19,28 @@
 +	pci_read_config_word(pci, PCI_SUBSYSTEM_ID, &subsystem_device);
 +#endif
 +	err = init_hw(chip, chip->pci->device, subsystem_device);
- 	if (err) {
- 		DE_INIT(("init_hw err=%d\n", err));
- 		snd_echo_free(chip);
+ 	if (err >= 0)
+ 		err = set_mixer_defaults(chip);
+ 	if (err < 0) {
+@@ -2245,6 +2251,7 @@ static int snd_echo_resume(struct pci_de
+ 	struct comm_page *commpage, *commpage_bak;
+ 	u32 pipe_alloc_mask;
+ 	int err;
++	u16 subsystem_device;
+ 
+ 	DE_INIT(("resume start\n"));
+ 	pci_restore_state(pci);
+@@ -2252,7 +2259,12 @@ static int snd_echo_resume(struct pci_de
+ 	commpage = chip->comm_page;
+ 	memcpy(commpage_bak, commpage, sizeof(struct comm_page));
+ 
+-	err = init_hw(chip, chip->pci->device, chip->pci->subsystem_device);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 0)
++	subsystem_device = pci->subsystem_device;
++#else
++	pci_read_config_word(pci, PCI_SUBSYSTEM_ID, &subsystem_device);
++#endif
++	err = init_hw(chip, chip->pci->device, subsystem_device);
+ 	if (err < 0) {
+ 		kfree(commpage_bak);
+ 		DE_INIT(("resume init_hw err=%d\n", err));


-- 
Giuliano.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 5/5] Echoaudio - add suspend/resume support
@ 2010-02-14 17:16 Giuliano Pochini
  0 siblings, 0 replies; 4+ messages in thread
From: Giuliano Pochini @ 2010-02-14 17:16 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai


5/5 Patchin' patcher:
	This patch updates alsa-driver echoaudio.patch .

Short description:

This patch updates alsa-driver echoaudio.patch .


Signed-off-by: Giuliano Pochini <pochini@shiny.it>


--- alsa-driver-1.0.22.1/pci/echoaudio/echoaudio.patch__orig	2009-12-28 16:15:54.000000000 +0100
+++ alsa-driver-1.0.22.1/pci/echoaudio/echoaudio.patch	2010-01-29 23:35:16.000000000 +0100
@@ -1,6 +1,6 @@
---- ../../alsa-kernel/pci/echoaudio/echoaudio.c	2006-08-05 14:41:12.000000000 +0200
-+++ echoaudio.c	2006-10-07 20:30:53.000000000 +0200
-@@ -1926,6 +1926,7 @@
+--- ../../alsa-kernel/pci/echoaudio/echoaudio.c	2010-01-29 23:17:31.000000000 +0100
++++ echoaudio.c	2010-01-29 23:28:45.000000000 +0100
+@@ -1943,6 +1943,7 @@ static __devinit int snd_echo_create(str
  	struct echoaudio *chip;
  	int err;
  	size_t sz;
@@ -8,7 +8,7 @@
  	static struct snd_device_ops ops = {
  		.dev_free = snd_echo_dev_free,
  	};
-@@ -1988,7 +1989,12 @@
+@@ -2014,7 +2015,12 @@ static __devinit int snd_echo_create(str
  	chip->comm_page_phys = chip->commpage_dma_buf.addr;
  	chip->comm_page = (struct comm_page *)chip->commpage_dma_buf.area;
  
@@ -19,6 +19,28 @@
 +	pci_read_config_word(pci, PCI_SUBSYSTEM_ID, &subsystem_device);
 +#endif
 +	err = init_hw(chip, chip->pci->device, subsystem_device);
- 	if (err) {
- 		DE_INIT(("init_hw err=%d\n", err));
- 		snd_echo_free(chip);
+ 	if (err >= 0)
+ 		err = set_mixer_defaults(chip);
+ 	if (err < 0) {
+@@ -2245,6 +2251,7 @@ static int snd_echo_resume(struct pci_de
+ 	struct comm_page *commpage, *commpage_bak;
+ 	u32 pipe_alloc_mask;
+ 	int err;
++	u16 subsystem_device;
+ 
+ 	DE_INIT(("resume start\n"));
+ 	pci_restore_state(pci);
+@@ -2252,7 +2259,12 @@ static int snd_echo_resume(struct pci_de
+ 	commpage = chip->comm_page;
+ 	memcpy(commpage_bak, commpage, sizeof(struct comm_page));
+ 
+-	err = init_hw(chip, chip->pci->device, chip->pci->subsystem_device);
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 0)
++	subsystem_device = pci->subsystem_device;
++#else
++	pci_read_config_word(pci, PCI_SUBSYSTEM_ID, &subsystem_device);
++#endif
++	err = init_hw(chip, chip->pci->device, subsystem_device);
+ 	if (err < 0) {
+ 		kfree(commpage_bak);
+ 		DE_INIT(("resume init_hw err=%d\n", err));


-- 
Giuliano.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 5/5] Echoaudio - add suspend/resume support
@ 2010-03-28 10:44 Oliver Lupton
  2010-04-04 10:25 ` Giuliano Pochini
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Lupton @ 2010-03-28 10:44 UTC (permalink / raw)
  To: alsa-devel

Just thought I'd mention that I've tested these five patches applied to 
a fedora 12 2.6.32.9 kernel with an Indigo IO card and it appears to now 
work fine when resuming from standby (which it didn't previously -- I 
had to remove/reinsert the card and close all applications with the 
device open)

Cheers,
Olli

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 5/5] Echoaudio - add suspend/resume support
  2010-03-28 10:44 [PATCH 5/5] Echoaudio - add suspend/resume support Oliver Lupton
@ 2010-04-04 10:25 ` Giuliano Pochini
  0 siblings, 0 replies; 4+ messages in thread
From: Giuliano Pochini @ 2010-04-04 10:25 UTC (permalink / raw)
  To: Oliver Lupton; +Cc: alsa-devel

On Sun, 28 Mar 2010 11:44:19 +0100
Oliver Lupton <oliverlupton@gmail.com> wrote:

> Just thought I'd mention that I've tested these five patches applied to 
> a fedora 12 2.6.32.9 kernel with an Indigo IO card and it appears to now 
> work fine when resuming from standby (which it didn't previously -- I 
> had to remove/reinsert the card and close all applications with the 
> device open)

Thanks for the report!


-- 
Giuliano.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-04 10:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-28 10:44 [PATCH 5/5] Echoaudio - add suspend/resume support Oliver Lupton
2010-04-04 10:25 ` Giuliano Pochini
  -- strict thread matches above, loose matches on Subject: below --
2010-02-14 17:16 Giuliano Pochini
2010-01-30 15:32 Giuliano Pochini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).