Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-09-11 Thread Elimar Riesebieter
On Tue, 23 Jan 2007 the mental interface of
Markus Schulz told:

 Am Montag, 22. Januar 2007 23:20 schrieb Elimar Riesebieter:
  On Mon, 22 Jan 2007 the mental interface of
 
  Markus Schulz told:
   Am Montag, 22. Januar 2007 22:34 schrieb Elimar Riesebieter:
   [..wrong patch..]
  
No, thats me ;)
  
   ok, i will try with new kernel build soon.
 
 works fine with original debian ld10k1 packages and patched 
 alsa-drivers, thanks.

Forgot to close this. Included in 1.0.14 and should work fine now.

Elimar


-- 
  You cannot propel yourself forward by
  patting yourself on the back.


signature.asc
Description: Digital signature


Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-01-30 Thread Jordi Mallach
On Tue, Jan 23, 2007 at 08:14:17PM +0100, Elimar Riesebieter wrote:
  works fine with original debian ld10k1 packages and patched 
  alsa-drivers, thanks.
 Gents, should we try to push it in etch?

I think so. Do you know how to create a branch (svn cp of the revision
before experiemntal changes, basically), or want me to help there?

-- 
Jordi Mallach PĂ©rez  --  Debian developer http://www.debian.org/
[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/


signature.asc
Description: Digital signature


Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-01-23 Thread Markus Schulz
Am Montag, 22. Januar 2007 23:20 schrieb Elimar Riesebieter:
 On Mon, 22 Jan 2007 the mental interface of

 Markus Schulz told:
  Am Montag, 22. Januar 2007 22:34 schrieb Elimar Riesebieter:
  [..wrong patch..]
 
   No, thats me ;)
 
  ok, i will try with new kernel build soon.

works fine with original debian ld10k1 packages and patched 
alsa-drivers, thanks.


-- 
Markus Schulz

UNIX is user friendly, it's just picky about who its friends are


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-01-23 Thread Elimar Riesebieter
On Tue, 23 Jan 2007 the mental interface of
Markus Schulz told:

 Am Montag, 22. Januar 2007 23:20 schrieb Elimar Riesebieter:
  On Mon, 22 Jan 2007 the mental interface of
 
  Markus Schulz told:
   Am Montag, 22. Januar 2007 22:34 schrieb Elimar Riesebieter:
   [..wrong patch..]
  
No, thats me ;)
  
   ok, i will try with new kernel build soon.
 
 works fine with original debian ld10k1 packages and patched 
 alsa-drivers, thanks.

Gents, should we try to push it in etch?

Elimar


-- 
  We all know Linux is great... it does infinite loops in 5 seconds.
-- Linus Torvalds


pgpHz57tYoIVV.pgp
Description: PGP signature


Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-01-22 Thread Mikael Magnusson

Steve Langasek wrote:

On Mon, Jan 22, 2007 at 07:39:03AM +0100, Markus Schulz wrote:

doesn't sound 'grave' to me; if anything, it sounds like a bug in
2.6.19 for changing interfaces in ways that break userspace.



yes, exactly this. Should this be reported anywhere?


Preferably, upstream to the kernel maintainers responsible for the breakage.



According to alsa-devel the problem has been Fixed and committed to HG 
tree.


http://article.gmane.org/gmane.linux.alsa.devel/43900

Mikael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-01-22 Thread Elimar Riesebieter
On Mon, 22 Jan 2007 the mental interface of
Mikael Magnusson told:

 Steve Langasek wrote:
 On Mon, Jan 22, 2007 at 07:39:03AM +0100, Markus Schulz wrote:
 doesn't sound 'grave' to me; if anything, it sounds like a bug in
 2.6.19 for changing interfaces in ways that break userspace.
 yes, exactly this. Should this be reported anywhere?
 Preferably, upstream to the kernel maintainers responsible for the breakage.

 According to alsa-devel the problem has been Fixed and committed to HG tree.

 http://article.gmane.org/gmane.linux.alsa.devel/43900

Markus, could you please test the according patch:

--- a/include/sound/emu10k1.h Wed Jan 17 15:19:52 2007 +0100
+++ b/include/sound/emu10k1.h Fri Jan 19 18:36:48 2007 +0100
@@ -280,6 +280,7 @@ typedef struct {
   unsigned int min;/* minimum range */
   unsigned int max;/* maximum range */
   unsigned int translation;  /* translation type (EMU10K1_GPR_TRANSLATION*) */
+  unsigned int *tlv;
 } emu10k1_fx8010_control_gpr_t;
 
 typedef struct {
@@ -338,6 +339,7 @@ typedef struct {
 #define SNDRV_EMU10K1_IOCTL_TRAM_PEEK _IOWR('H', 0x22, emu10k1_fx8010_tram_t)
 #define SNDRV_EMU10K1_IOCTL_PCM_POKE  _IOW ('H', 0x30, emu10k1_fx8010_pcm_t)
 #define SNDRV_EMU10K1_IOCTL_PCM_PEEK  _IOWR('H', 0x31, emu10k1_fx8010_pcm_t)
+#define SNDRV_EMU10K1_IOCTL_PVERSION  _IOR ('H', 0x40, int)
 #define SNDRV_EMU10K1_IOCTL_STOP   _IO  ('H', 0x80)
 #define SNDRV_EMU10K1_IOCTL_CONTINUE  _IO  ('H', 0x81)
 #define SNDRV_EMU10K1_IOCTL_ZERO_TRAM_COUNTER _IO ('H', 0x82)


-- 
  It's a good thing we don't get all 
  the government we pay for.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-01-22 Thread Markus Schulz
Am Montag, 22. Januar 2007 22:34 schrieb Elimar Riesebieter:
[..wrong patch..]
 No, thats me ;)

ok, i will try with new kernel build soon.

 Caught from http://article.gmane.org/gmane.linux.alsa.devel/43895:

 diff -r beb52b12c43f include/emu10k1.h
 --- a/include/emu10k1.h   Tue Jan 16 17:49:21 2007 +0100
 +++ b/include/emu10k1.h   Thu Jan 18 12:04:51 2007 +0100

Small footnote for BTS readers, path should be include/sound/ for this 
header file. 
And later...

[...]
 diff -r beb52b12c43f pci/emu10k1/emufx.c
 --- a/pci/emu10k1/emufx.c Tue Jan 16 17:49:21 2007 +0100
 +++ b/pci/emu10k1/emufx.c Thu Jan 18 12:06:54 2007 +0100

this should be ../sound/pci/...

After this changes, patch applies correctly to vanilla kernel source.

Looks like the original paths are from alsa-hg repo.

I will report about success as soon as possible.

Markus


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-01-22 Thread Elimar Riesebieter
On Mon, 22 Jan 2007 the mental interface of
Markus Schulz told:

 Am Montag, 22. Januar 2007 17:36 schrieb Elimar Riesebieter:
  On Mon, 22 Jan 2007 the mental interface of
 
  Mikael Magnusson told:
   Steve Langasek wrote:
   On Mon, Jan 22, 2007 at 07:39:03AM +0100, Markus Schulz wrote:
   doesn't sound 'grave' to me; if anything, it sounds like a bug
in 2.6.19 for changing interfaces in ways that break userspace.
   
   yes, exactly this. Should this be reported anywhere?
   
   Preferably, upstream to the kernel maintainers responsible for the
breakage.
  
   According to alsa-devel the problem has been Fixed and committed
   to HG tree.
  
   http://article.gmane.org/gmane.linux.alsa.devel/43900
 
  Markus, could you please test the according patch:
 
 [..patch..]
 
 i've patched alsa-lib 1.0.13-1 debian source package.
 rebuild alsa-lib and alsa-tools (the latter with the new generated 
 libasound2-dev) package in clean pbuilder environment.
 
 Then i've installed the new ld10k1/lo10k* and libasound2 package into my 
 running system.
 Now i can start ld10k1 on 2.6.19.2 kernel, but my old patchset (working 
 on 2.6.18-1-k7) dont produce any sound output?!? All mixer controls 
 looks like at 2.6.18-1-k7 kernel, but no sound anymore.
 
 With the new version of alsa-lib and ld10k1 i _can't_ start ld10k1 on 
 2.6.18-1-k7 and the patch don't look for me like to fix this.
 Have i misunderstand something?

No, thats me ;)

Caught from http://article.gmane.org/gmane.linux.alsa.devel/43895:

diff -r beb52b12c43f include/emu10k1.h
--- a/include/emu10k1.h Tue Jan 16 17:49:21 2007 +0100
+++ b/include/emu10k1.h Thu Jan 18 12:04:51 2007 +0100
@@ -1449,6 +1449,7 @@ struct snd_emu10k1 {
unsigned int tos_link: 1,   /* tos link detected */
rear_ac97: 1,   /* rear channels are on AC'97 */
enable_ir: 1;
+   unsigned int support_tlv :1;
/* Contains profile of card capabilities */
const struct snd_emu_chip_details *card_capabilities;
unsigned int audigy;/* is Audigy? */
@@ -1901,11 +1902,20 @@ struct snd_emu10k1_fx8010_control_gpr {
unsigned int value[32]; /* initial values */
unsigned int min;   /* minimum range */
unsigned int max;   /* maximum range */
-   union {
-   snd_kcontrol_tlv_rw_t *c;
-   unsigned int *p;
-   } tlv;
unsigned int translation;   /* translation type 
(EMU10K1_GPR_TRANSLATION*) */
+   unsigned int *tlv;
+};
+
+/* old ABI without TLV support */
+struct snd_emu10k1_fx8010_control_old_gpr {
+   struct snd_ctl_elem_id id;
+   unsigned int vcount;
+   unsigned int count;
+   unsigned short gpr[32];
+   unsigned int value[32];
+   unsigned int min;
+   unsigned int max;
+   unsigned int translation;
 };
 
 struct snd_emu10k1_fx8010_code {
@@ -1956,6 +1966,8 @@ struct snd_emu10k1_fx8010_pcm_rec {
unsigned int res2;  /* reserved */
 };
 
+#define SNDRV_EMU10K1_VERSION  SNDRV_PROTOCOL_VERSION(1, 0, 1)
+
 #define SNDRV_EMU10K1_IOCTL_INFO   _IOR ('H', 0x10, struct 
snd_emu10k1_fx8010_info)
 #define SNDRV_EMU10K1_IOCTL_CODE_POKE  _IOW ('H', 0x11, struct 
snd_emu10k1_fx8010_code)
 #define SNDRV_EMU10K1_IOCTL_CODE_PEEK  _IOWR('H', 0x12, struct 
snd_emu10k1_fx8010_code)
@@ -1964,6 +1976,7 @@ struct snd_emu10k1_fx8010_pcm_rec {
 #define SNDRV_EMU10K1_IOCTL_TRAM_PEEK  _IOWR('H', 0x22, struct 
snd_emu10k1_fx8010_tram)
 #define SNDRV_EMU10K1_IOCTL_PCM_POKE   _IOW ('H', 0x30, struct 
snd_emu10k1_fx8010_pcm_rec)
 #define SNDRV_EMU10K1_IOCTL_PCM_PEEK   _IOWR('H', 0x31, struct 
snd_emu10k1_fx8010_pcm_rec)
+#define SNDRV_EMU10K1_IOCTL_PVERSION   _IOR ('H', 0x40, int)
 #define SNDRV_EMU10K1_IOCTL_STOP   _IO  ('H', 0x80)
 #define SNDRV_EMU10K1_IOCTL_CONTINUE   _IO  ('H', 0x81)
 #define SNDRV_EMU10K1_IOCTL_ZERO_TRAM_COUNTER _IO ('H', 0x82)
diff -r beb52b12c43f pci/emu10k1/emufx.c
--- a/pci/emu10k1/emufx.c   Tue Jan 16 17:49:21 2007 +0100
+++ b/pci/emu10k1/emufx.c   Thu Jan 18 12:06:54 2007 +0100
@@ -655,13 +655,66 @@ snd_emu10k1_look_for_ctl(struct snd_emu1
return NULL;
 }
 
+#define MAX_TLV_SIZE   256
+
+static unsigned int *copy_tlv(unsigned int __user *_tlv)
+{
+   unsigned int data[2];
+   unsigned int *tlv;
+
+   if (!_tlv)
+   return NULL;
+   if (copy_from_user(data, _tlv, sizeof(data)))
+   return NULL;
+   if (data[1] = MAX_TLV_SIZE)
+   return NULL;
+   tlv = kmalloc(data[1] * 4 + sizeof(data), GFP_KERNEL);
+   if (!tlv)
+   return NULL;
+   memcpy(tlv, data, sizeof(data));
+   if (copy_from_user(tlv + 2, _tlv + 2, data[1])) {
+   kfree(tlv);
+   return NULL;
+   }
+   return tlv;
+}
+
+static int copy_gctl(struct snd_emu10k1 *emu,
+struct snd_emu10k1_fx8010_control_gpr 

Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-01-22 Thread Markus Schulz
Am Montag, 22. Januar 2007 17:36 schrieb Elimar Riesebieter:
 On Mon, 22 Jan 2007 the mental interface of

 Mikael Magnusson told:
  Steve Langasek wrote:
  On Mon, Jan 22, 2007 at 07:39:03AM +0100, Markus Schulz wrote:
  doesn't sound 'grave' to me; if anything, it sounds like a bug
   in 2.6.19 for changing interfaces in ways that break userspace.
  
  yes, exactly this. Should this be reported anywhere?
  
  Preferably, upstream to the kernel maintainers responsible for the
   breakage.
 
  According to alsa-devel the problem has been Fixed and committed
  to HG tree.
 
  http://article.gmane.org/gmane.linux.alsa.devel/43900

 Markus, could you please test the according patch:

[..patch..]

i've patched alsa-lib 1.0.13-1 debian source package.
rebuild alsa-lib and alsa-tools (the latter with the new generated 
libasound2-dev) package in clean pbuilder environment.

Then i've installed the new ld10k1/lo10k* and libasound2 package into my 
running system.
Now i can start ld10k1 on 2.6.19.2 kernel, but my old patchset (working 
on 2.6.18-1-k7) dont produce any sound output?!? All mixer controls 
looks like at 2.6.18-1-k7 kernel, but no sound anymore.

With the new version of alsa-lib and ld10k1 i _can't_ start ld10k1 on 
2.6.18-1-k7 and the patch don't look for me like to fix this.
Have i misunderstand something?

Markus


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#407690: [Pkg-alsa-devel] Bug#407690: kernel 2.6.19.2 incompatibel with debian libasound2-dev

2007-01-22 Thread Elimar Riesebieter
On Mon, 22 Jan 2007 the mental interface of
Markus Schulz told:

 Am Montag, 22. Januar 2007 22:34 schrieb Elimar Riesebieter:
 [..wrong patch..]
  No, thats me ;)
 
 ok, i will try with new kernel build soon.
 
  Caught from http://article.gmane.org/gmane.linux.alsa.devel/43895:
 
  diff -r beb52b12c43f include/emu10k1.h
  --- a/include/emu10k1.h Tue Jan 16 17:49:21 2007 +0100
  +++ b/include/emu10k1.h Thu Jan 18 12:04:51 2007 +0100
 
 Small footnote for BTS readers, path should be include/sound/ for this 
 header file. 
 And later...
 
 [...]
  diff -r beb52b12c43f pci/emu10k1/emufx.c
  --- a/pci/emu10k1/emufx.c   Tue Jan 16 17:49:21 2007 +0100
  +++ b/pci/emu10k1/emufx.c   Thu Jan 18 12:06:54 2007 +0100
 
 this should be ../sound/pci/...
 

I did it as follows:
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.14rc2.tar.bz2; \
tar -xjf alsa-driver-1.0.14rc2.tar.bz2; cd alsa-driver-1.0.14rc2/alsa-kernel; \
cat emu10k1-ld10k1-compat-fix.diff | patch -p1

Rebuilt drivers

Elimar

-- 
  Learned men are the cisterns of knowledge, 
  not the fountainheads ;-)


pgpGLcPYUGQPL.pgp
Description: PGP signature