* [PATCH]against cvs: us122 support in snd-usb-us428
@ 2003-11-24 13:37 Karsten Wiese
2003-11-24 18:19 ` Takashi Iwai
2003-11-24 20:50 ` Werner Schweer
0 siblings, 2 replies; 8+ messages in thread
From: Karsten Wiese @ 2003-11-24 13:37 UTC (permalink / raw)
To: Martin Langer, Werner Schweer; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
Hi,
would you please give this a try an your us122s?
I integrated Martins stuff into mine. us428 still works here.
besides patching you'll need to copy the attached header into
alsa-driver/usb/us428.
you'll probaply also still need Martin's patched usx2yloader & infrastructure
files.
Gruesse,
Karsten
[-- Attachment #2: usbusx2y.h --]
[-- Type: text/x-chdr, Size: 1505 bytes --]
#ifndef USBUSX2Y_H
#define USBUSX2Y_H
#include <linux/usb.h>
#include "../../alsa-kernel/usb/usbaudio.h"
#include "usbus428ctldefs.h"
#define NRURBS 2 /* */
#define NRPACKS 1 /* usb-frames/ms per urb */
#ifndef LINUX_2_2
typedef struct urb urb_t;
typedef struct urb* purb_t;
#endif
#define URBS_AsyncSeq 10
#define URB_DataLen_AsyncSeq 32
typedef struct {
urb_t* urb[URBS_AsyncSeq];
char* buffer;
} snd_usX2Y_AsyncSeq_t;
typedef struct {
int submitted;
int len;
urb_t* urb[0];
} snd_usX2Y_urbSeq_t;
typedef struct {
snd_usb_audio_t chip;
int stride;
purb_t In04urb;
void* In04Buf;
char In04Last[24];
unsigned In04IntCalls;
snd_usX2Y_urbSeq_t* US04;
int Seq04;
int Seq04Complete;
wait_queue_head_t In04WaitQueue;
snd_usX2Y_AsyncSeq_t AS04;
unsigned int rate,
format;
int refframes;
purb_t play_urb_waiting[2];
int pipe0Aframes[NRURBS][NRPACKS];
snd_hwdep_t* hwdep;
int chip_status;
struct semaphore open_mutex;
us428ctls_sharedmem_t* us428ctls_sharedmem;
wait_queue_head_t us428ctls_wait_queue_head;
} usX2Ydev_t;
#define usX2Y(c) ((usX2Ydev_t*)(c)->private_data)
int snd_usX2Y_audio_create(snd_card_t* card);
#ifndef OLD_USB
void snd_usX2Y_Out04Int(urb_t* urb, struct pt_regs *regs);
void snd_usX2Y_In04Int(urb_t* urb, struct pt_regs *regs);
#else
void snd_usX2Y_Out04Int(urb_t* urb);
void snd_usX2Y_In04Int(urb_t* urb);
#endif
#ifndef CONFIG_SND_DEBUG
#define snd_usX2Y_Out04Int 0
#endif
#define NAME_ALLCAPS "US-X2Y"
#endif
[-- Attachment #3: snd-usb-us428+us122.patch.tar.bz2 --]
[-- Type: application/x-tbz, Size: 12537 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH]against cvs: us122 support in snd-usb-us428 2003-11-24 13:37 [PATCH]against cvs: us122 support in snd-usb-us428 Karsten Wiese @ 2003-11-24 18:19 ` Takashi Iwai 2003-11-24 20:50 ` Werner Schweer 1 sibling, 0 replies; 8+ messages in thread From: Takashi Iwai @ 2003-11-24 18:19 UTC (permalink / raw) To: Karsten Wiese; +Cc: Martin Langer, Werner Schweer, alsa-devel At Mon, 24 Nov 2003 14:37:52 +0100, Karsten Wiese wrote: > > [1 <text/plain; us-ascii (7bit)>] > Hi, > > would you please give this a try an your us122s? > I integrated Martins stuff into mine. us428 still works here. > besides patching you'll need to copy the attached header into > alsa-driver/usb/us428. > you'll probaply also still need Martin's patched usx2yloader & infrastructure > files. oh it's nice to see the uniformed version. please tell me *ASAP* whether it works for both us428 and us122. if they are confirmed, i can split this into 1.0 release... thanks, Takashi ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]against cvs: us122 support in snd-usb-us428 2003-11-24 13:37 [PATCH]against cvs: us122 support in snd-usb-us428 Karsten Wiese 2003-11-24 18:19 ` Takashi Iwai @ 2003-11-24 20:50 ` Werner Schweer 2003-11-24 22:13 ` [PATCH]against cvs: us122 and us428 support in snd-usb-usx2y Karsten Wiese 2003-11-24 22:14 ` [PATCH]against cvs: us122 support in snd-usb-us428 Martin Langer 1 sibling, 2 replies; 8+ messages in thread From: Werner Schweer @ 2003-11-24 20:50 UTC (permalink / raw) To: Karsten Wiese, Martin Langer; +Cc: Takashi Iwai, alsa-devel On Monday 24 November 2003 14:37, Karsten Wiese wrote: > Hi, > > would you please give this a try an your us122s? > I integrated Martins stuff into mine. us428 still works here. > besides patching you'll need to copy the attached header into > alsa-driver/usb/us428. > you'll probaply also still need Martin's patched usx2yloader & > infrastructure files. it works! Tested with US-122: audio recording/play, midi play Werner ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH]against cvs: us122 and us428 support in snd-usb-usx2y 2003-11-24 20:50 ` Werner Schweer @ 2003-11-24 22:13 ` Karsten Wiese 2003-11-25 11:24 ` Takashi Iwai 2003-11-24 22:14 ` [PATCH]against cvs: us122 support in snd-usb-us428 Martin Langer 1 sibling, 1 reply; 8+ messages in thread From: Karsten Wiese @ 2003-11-24 22:13 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel, Martin Langer, Werner Schweer [-- Attachment #1: Type: text/plain, Size: 794 bytes --] Hi Takashi, from the version, Werner tested, I only changed filenames to the 'usx2y'. So please commit snd-usb-usx2y_alsacvs.patch and cp the content of snd-usb-usx2y.tar.bz2 into alsa-driver/usb (thats also commit? ;-). alsa-driver/usb/us428 is obsoleted then. Thanks, Karsten Am Montag, 24. November 2003 21:50 schrieb Werner Schweer: > On Monday 24 November 2003 14:37, Karsten Wiese wrote: > > Hi, > > > > would you please give this a try an your us122s? > > I integrated Martins stuff into mine. us428 still works here. > > besides patching you'll need to copy the attached header into > > alsa-driver/usb/us428. > > you'll probaply also still need Martin's patched usx2yloader & > > infrastructure files. > > it works! Tested with US-122: audio recording/play, midi play > > Werner > [-- Attachment #2: snd-usb-usx2y_alsacvs.patch --] [-- Type: text/x-diff, Size: 3463 bytes --] Index: alsa-driver/INSTALL =================================================================== RCS file: /cvsroot/alsa/alsa-driver/INSTALL,v retrieving revision 1.149 diff -u -r1.149 INSTALL --- alsa-driver/INSTALL 10 Nov 2003 17:32:36 -0000 1.149 +++ alsa-driver/INSTALL 24 Nov 2003 21:41:25 -0000 @@ -214,10 +214,10 @@ Module supports up to 8 cards. - Module snd-usb-us428 + Module snd-usb-usx2y -------------------- - Module for Tascam USB US-428 device. + Module for Tascam USB US-122 and US-428 devices. This module supports up to 8 cards, autoprobe and hotplugging. Index: alsa-driver/acore/Makefile =================================================================== RCS file: /cvsroot/alsa/alsa-driver/acore/Makefile,v retrieving revision 1.32 diff -u -r1.32 Makefile --- alsa-driver/acore/Makefile 11 Nov 2003 13:12:15 -0000 1.32 +++ alsa-driver/acore/Makefile 24 Nov 2003 21:41:25 -0000 @@ -11,7 +11,7 @@ obj-$(CONFIG_SND_MIXART) += snd-pcm.o snd-timer.o snd-page-alloc.o snd.o snd-hwdep.o obj-$(CONFIG_SND_SERIALMIDI) += snd-rawmidi.o snd.o obj-$(CONFIG_SND_MSND_PINNACLE) += snd-pcm.o snd-timer.o snd-page-alloc.o snd.o snd-rawmidi.o -obj-$(CONFIG_SND_USB_US428) += snd-pcm.o snd-timer.o snd-page-alloc.o snd.o snd-rawmidi.o snd-hwdep.o +obj-$(CONFIG_SND_USB_USX2Y) += snd-pcm.o snd-timer.o snd-page-alloc.o snd.o snd-rawmidi.o snd-hwdep.o obj-$(CONFIG_SND_AU8810) += snd-pcm.o snd-timer.o snd-page-alloc.o snd.o snd-rawmidi.o snd-hwdep.o obj-$(CONFIG_SND_AU8820) += snd-pcm.o snd-timer.o snd-page-alloc.o snd.o snd-rawmidi.o snd-hwdep.o obj-$(CONFIG_SND_AU8830) += snd-pcm.o snd-timer.o snd-page-alloc.o snd.o snd-rawmidi.o snd-hwdep.o Index: alsa-driver/include/amagic.h =================================================================== RCS file: /cvsroot/alsa/alsa-driver/include/amagic.h,v retrieving revision 1.10 diff -u -r1.10 amagic.h --- alsa-driver/include/amagic.h 6 Oct 2003 14:01:00 -0000 1.10 +++ alsa-driver/include/amagic.h 24 Nov 2003 21:41:25 -0000 @@ -6,7 +6,7 @@ #define snd_msndpinnacle_pcm_t_magic 0xa25a3e01 #define msndmidi_t_magic 0xa25a3e02 #define pdacf_t_magic 0xa25a3f00 -#define snd_us428_stream_t_magic 0xa25a5e03 +#define snd_usX2Y_stream_t_magic 0xa25a5e03 #define vortex_t_magic 0xa25a4001 #endif Index: alsa-driver/usb/Makefile =================================================================== RCS file: /cvsroot/alsa/alsa-driver/usb/Makefile,v retrieving revision 1.12 diff -u -r1.12 Makefile --- alsa-driver/usb/Makefile 11 Nov 2003 13:12:34 -0000 1.12 +++ alsa-driver/usb/Makefile 24 Nov 2003 21:41:27 -0000 @@ -10,7 +10,7 @@ # for compatibility extra-snd-usb-audio-objs := usbcompat.o -obj-$(CONFIG_SND) += us428/ +obj-$(CONFIG_SND) += usx2y/ export-objs := usbaudio.o usbmidi.o Index: alsa-driver/utils/Modules.dep =================================================================== RCS file: /cvsroot/alsa/alsa-driver/utils/Modules.dep,v retrieving revision 1.26 diff -u -r1.26 Modules.dep --- alsa-driver/utils/Modules.dep 6 Oct 2003 14:01:07 -0000 1.26 +++ alsa-driver/utils/Modules.dep 24 Nov 2003 21:41:27 -0000 @@ -17,8 +17,8 @@ %dir linux/sound/pcmcia/pdaudiocf |snd-pdaudiocf snd-pcm -%dir linux/sound/usb/us428 -|snd-usb-us428 snd-usb-audio snd-hwdep +%dir linux/sound/usb/usx2y +|snd-usb-usx2y snd-usb-audio snd-hwdep %dir linux/sound/pci/au88x0 |snd-au8810 snd-pcm snd-ac97-codec snd-mpu401-uart [-- Attachment #3: snd-usb-usx2y.tar.bz2 --] [-- Type: application/x-tbz, Size: 15853 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]against cvs: us122 and us428 support in snd-usb-usx2y 2003-11-24 22:13 ` [PATCH]against cvs: us122 and us428 support in snd-usb-usx2y Karsten Wiese @ 2003-11-25 11:24 ` Takashi Iwai 0 siblings, 0 replies; 8+ messages in thread From: Takashi Iwai @ 2003-11-25 11:24 UTC (permalink / raw) To: Karsten Wiese; +Cc: alsa-devel, Martin Langer, Werner Schweer At Mon, 24 Nov 2003 23:13:35 +0100, Karsten Wiese wrote: > > Hi Takashi, > > from the version, Werner tested, I only changed filenames to the 'usx2y'. > So please commit snd-usb-usx2y_alsacvs.patch and cp the content of > snd-usb-usx2y.tar.bz2 into alsa-driver/usb (thats also commit? ;-). > alsa-driver/usb/us428 is obsoleted then. ok, i did that. (in general, it's not good to move the directory in cvs tree because all history will be gone. but in this case, the driver is young, so it doesn't matter much.) thanks for your work! Takashi ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]against cvs: us122 support in snd-usb-us428 2003-11-24 20:50 ` Werner Schweer 2003-11-24 22:13 ` [PATCH]against cvs: us122 and us428 support in snd-usb-usx2y Karsten Wiese @ 2003-11-24 22:14 ` Martin Langer 2003-11-25 23:08 ` Martin Langer 1 sibling, 1 reply; 8+ messages in thread From: Martin Langer @ 2003-11-24 22:14 UTC (permalink / raw) To: Werner Schweer; +Cc: Karsten Wiese, Takashi Iwai, alsa-devel On Mon, Nov 24, 2003 at 09:50:32PM +0100, Werner Schweer wrote: > On Monday 24 November 2003 14:37, Karsten Wiese wrote: > > Hi, > > > > would you please give this a try an your us122s? > > I integrated Martins stuff into mine. us428 still works here. > > besides patching you'll need to copy the attached header into > > alsa-driver/usb/us428. > > you'll probaply also still need Martin's patched usx2yloader & > > infrastructure files. > > it works! Tested with US-122: audio recording/play, midi play > Same here. No problems. Everything works fine. And this fix will show the correct USB ID in /proc/asound/cards in the future. Thanks! martin --- usbus428.c.ORIGINAL Mon Nov 24 22:51:07 2003 +++ usbus428.c Mon Nov 24 22:41:17 2003 @@ -255,7 +255,7 @@ sprintf(card->shortname, "TASCAM "NAME_ALLCAPS""); sprintf(card->longname, "%s (%x:%x if %d at %03d/%03d)", card->shortname, - snd_usX2Y_usb_id_table[0].idVendor, snd_usX2Y_usb_id_table[0].idProduct, + device->descriptor.idVendor, device->descriptor.idProduct, 0,//us428(card)->usbmidi.ifnum, usX2Y(card)->chip.dev->bus->busnum, usX2Y(card)->chip.dev->devnum ); -- The only nice thing about spam is that it doesn't ring. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: [PATCH]against cvs: us122 support in snd-usb-us428 2003-11-24 22:14 ` [PATCH]against cvs: us122 support in snd-usb-us428 Martin Langer @ 2003-11-25 23:08 ` Martin Langer 2003-11-26 10:01 ` Takashi Iwai 0 siblings, 1 reply; 8+ messages in thread From: Martin Langer @ 2003-11-25 23:08 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel, Karsten Wiese, Werner Schweer On Mon, Nov 24, 2003 at 11:14:02PM +0100, Martin Langer wrote: > On Mon, Nov 24, 2003 at 09:50:32PM +0100, Werner Schweer wrote: > > On Monday 24 November 2003 14:37, Karsten Wiese wrote: > > > Hi, > > > > > > would you please give this a try an your us122s? > > > I integrated Martins stuff into mine. us428 still works here. > > > besides patching you'll need to copy the attached header into > > > alsa-driver/usb/us428. > > > you'll probaply also still need Martin's patched usx2yloader & > > > infrastructure files. > > > > it works! Tested with US-122: audio recording/play, midi play > > > > Same here. No problems. Everything works fine. > And this fix will show the correct USB ID in /proc/asound/cards in the future. > > Thanks! > martin > > > --- usbus428.c.ORIGINAL Mon Nov 24 22:51:07 2003 > +++ usbus428.c Mon Nov 24 22:41:17 2003 > @@ -255,7 +255,7 @@ > sprintf(card->shortname, "TASCAM "NAME_ALLCAPS""); > sprintf(card->longname, "%s (%x:%x if %d at %03d/%03d)", > card->shortname, > - snd_usX2Y_usb_id_table[0].idVendor, snd_usX2Y_usb_id_table[0].idProduct, > + device->descriptor.idVendor, device->descriptor.idProduct, > 0,//us428(card)->usbmidi.ifnum, > usX2Y(card)->chip.dev->bus->busnum, usX2Y(card)->chip.dev->devnum > ); > US122 support seems to be ok in pre3, but this patch wasn't committed. martin ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: [PATCH]against cvs: us122 support in snd-usb-us428 2003-11-25 23:08 ` Martin Langer @ 2003-11-26 10:01 ` Takashi Iwai 0 siblings, 0 replies; 8+ messages in thread From: Takashi Iwai @ 2003-11-26 10:01 UTC (permalink / raw) To: Martin Langer; +Cc: alsa-devel, Karsten Wiese, Werner Schweer At Wed, 26 Nov 2003 00:08:21 +0100, Martin Langer wrote: > > US122 support seems to be ok in pre3, but this patch wasn't committed. sorry, i overlooked this one. fixed now. Takashi ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-11-26 10:01 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-11-24 13:37 [PATCH]against cvs: us122 support in snd-usb-us428 Karsten Wiese 2003-11-24 18:19 ` Takashi Iwai 2003-11-24 20:50 ` Werner Schweer 2003-11-24 22:13 ` [PATCH]against cvs: us122 and us428 support in snd-usb-usx2y Karsten Wiese 2003-11-25 11:24 ` Takashi Iwai 2003-11-24 22:14 ` [PATCH]against cvs: us122 support in snd-usb-us428 Martin Langer 2003-11-25 23:08 ` Martin Langer 2003-11-26 10:01 ` Takashi Iwai
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox