Skip to contentSkip to conversation

Terratec DMX6fire control signal

DISCUSSION Alan Horstmann 2 participants 5 messages Nov 21, 2005 – Nov 22, 2005

lore
Share & tools
lore
#0 lore raw

I have been working on some patches for the Terratec DMX6fire. The control signal 'Front Digital Input Switch' in alsamixer acts in reverse. Is it better to rename it the opposite logic (which in this case might be 'Internal Digital Input Switch') or reverse its action in the route that the control connects to the hardware? If the latter, could you point me to how/where this happens, please.

By way of interest, are there any of the alsa developers who have/use this hardware?

Alan

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#1 lore raw
Quoted 5 lines · On Monday 21 November 2005 15:15, I wrote:

I have been working on some patches for the Terratec DMX6fire. The control signal 'Front Digital Input Switch' in alsamixer acts in reverse. Is it better to rename it the opposite logic (which in this case might be 'Internal Digital Input Switch') or reverse its action in the route that the control connects to the hardware?

....Or the invert parameter could be set when the control is created, I just noticed? It seems to do the job.

Alan

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#2 lore raw

At Mon, 21 Nov 2005 22:55:56 +0000,

Quoted 10 lines · Alan Horstmann
Quoted 5 lines · On Monday 21 November 2005 15:15, I wrote:

I have been working on some patches for the Terratec DMX6fire. The control signal 'Front Digital Input Switch' in alsamixer acts in reverse. Is it better to rename it the opposite logic (which in this case might be 'Internal Digital Input Switch') or reverse its action in the route that the control connects to the hardware?

....Or the invert parameter could be set when the control is created, I just noticed? It seems to do the job.

I think simply fixing the driver would be easiest as below.

Takashi

Index: alsa-kernel/pci/ice1712/ews.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/ice1712/ews.c,v retrieving revision 1.25

pci/ice1712/ews.c +1 -1
diff -u -r1.25 ews.c
@@ -917,7 +917,7 @@
 		.get = snd_ice1712_6fire_select_input_get,
 		.put = snd_ice1712_6fire_select_input_put,
 	},
-	DMX6FIRE_CONTROL("Front Digital Input Switch", 2, 0),
+	DMX6FIRE_CONTROL("Front Digital Input Switch", 2, 1),
 	// DMX6FIRE_CONTROL("Master Clock Select", 3, 0),
 	DMX6FIRE_CONTROL("Optical Digital Input Switch", 4, 0),
 	DMX6FIRE_CONTROL("Phono Analog Input Switch", 5, 0),

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#3 lore raw
Quoted 10 lines · Takashi Iwai

At Mon, 21 Nov 2005 22:55:56 +0000,

Quoted 7 lines · Alan Horstmann
Quoted 5 lines · On Monday 21 November 2005 15:15, I wrote:

I have been working on some patches for the Terratec DMX6fire. The control signal 'Front Digital Input Switch' in alsamixer acts in reverse. Is it better to rename it the opposite logic (which in this case might be 'Internal Digital Input Switch') or reverse its action in the route that the control connects to the hardware?

Quoted 8 lines
Quoted 2 lines

....Or the invert parameter could be set when the control is created, I just noticed? It seems to do the job.

I think simply fixing the driver would be easiest as below.

Takashi

That's exactly what I meant by the 'invert parameter'; I confirm this corrects the problem. Will you apply this to mainstream or should I present the patch on this list, with signed off line etc? Note that this control is specific to the DMX6fire, and without other patches I am preparing it does not work from envy24control, so reversing it now should have no bad consequences. Once this is in place I can patch 'e24c' for the corrected action.

Quoted 20 lines

Index: alsa-kernel/pci/ice1712/ews.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/ice1712/ews.c,v retrieving revision 1.25
diff -u -r1.25 ews.c

pci/ice1712/ews.c +1 -2
@@ -917,7 +917,7 @@
 		.get = snd_ice1712_6fire_select_input_get,
 		.put = snd_ice1712_6fire_select_input_put,
 	},
-	DMX6FIRE_CONTROL("Front Digital Input Switch", 2, 0),
+	DMX6FIRE_CONTROL("Front Digital Input Switch", 2, 1),
 	// DMX6FIRE_CONTROL("Master Clock Select", 3, 0),
 	DMX6FIRE_CONTROL("Optical Digital Input Switch", 4, 0),
 	DMX6FIRE_CONTROL("Phono Analog Input Switch", 5, 0),
 
 
-------------------------------------------------------
Quoted 8 lines

This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#4 lore raw

At Tue, 22 Nov 2005 14:30:39 +0000,

Quoted 15 lines · Alan Horstmann
Quoted 13 lines · Takashi Iwai

At Mon, 21 Nov 2005 22:55:56 +0000,

Quoted 9 lines · Alan Horstmann
Quoted 5 lines · On Monday 21 November 2005 15:15, I wrote:

I have been working on some patches for the Terratec DMX6fire. The control signal 'Front Digital Input Switch' in alsamixer acts in reverse. Is it better to rename it the opposite logic (which in this case might be 'Internal Digital Input Switch') or reverse its action in the route that the control connects to the hardware?

....Or the invert parameter could be set when the control is created, I just noticed? It seems to do the job.

Quoted 8 lines
Quoted 5 lines

I think simply fixing the driver would be easiest as below.

Takashi

That's exactly what I meant by the 'invert parameter'; I confirm this corrects the problem. Will you apply this to mainstream or should I present the patch on this list, with signed off line etc?

It's already on CVS.

Quoted 4 lines

Note that this control is specific
to the DMX6fire, and without other patches I am preparing it does not work from envy24control, so reversing it now should have no bad consequences. Once this is in place I can patch 'e24c' for the corrected action.

Yes, please submit your patch.

thanks,

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click