Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [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

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