Skip to contentSkip to conversation

Envy24control s/pdif input bugfix

DISCUSSION Stephan Zaubzer 3 participants 5 messages Sep 23, 2007 – Oct 9, 2007

lore
Share & tools
lore
#0 lore raw

Hi!
This patch against the stable version of envy24control fixes a bug where the S/Pdif input switch doesn't work on Terratec DMX 6fire cards. This bug first appeared in version 1.0.11rc3.

diff -ubr alsa-tools-1.0.14patch/envy24control/hardware.c alsa-tools-1.0.14/envy24control/hardware.c
--- alsa-tools-1.0.14patch/envy24control/hardware.c 2007-09-23
15:58:53.000000000 +0200
+++ alsa-tools-1.0.14/envy24control/hardware.c 2007-06-04 13:27:25.000000000 +0200
@@ -775,7 +775,7 @@
snd_ctl_elem_value_set_interface(volume_rate,
SND_CTL_ELEM_IFACE_MIXER);
snd_ctl_elem_value_set_name(volume_rate, "Multi Track Volume
Rate");

- if (card_is_dmx6fire) {
+ if (! card_is_dmx6fire) {
snd_ctl_elem_value_set_interface(spdif_input,
SND_CTL_ELEM_IFACE_MIXER);
snd_ctl_elem_value_set_name(spdif_input, "Optical

Digital Input Switch");
         } else {

Regards
Stephan

#1 lore raw

Sorry, used diff the wrong way!
Here the correct patch:

envy24control/hardware.c 2007-09-23 15:58:53.000000000 +0200 renamed from envy24control/hardware.c 2007-06-04 13:27:25.000000000 +0200 +1 -1
diff -ubr alsa-tools-1.0.14/envy24control/hardware.c alsa-tools-1.0.14patch/envy24control/hardware.c
@@ -775,7 +775,7 @@
         snd_ctl_elem_value_set_interface(volume_rate, SND_CTL_ELEM_IFACE_MIXER);
         snd_ctl_elem_value_set_name(volume_rate, "Multi Track Volume Rate");
 
-       if (! card_is_dmx6fire) {
+       if (card_is_dmx6fire) {
                 snd_ctl_elem_value_set_interface(spdif_input, SND_CTL_ELEM_IFACE_MIXER);
                 snd_ctl_elem_value_set_name(spdif_input, "Optical Digital Input Switch");
         } else {

Regards Stephan

Quoted 33 lines · Stephan Zaubzer

Hi!
This patch against the stable version of envy24control fixes a bug where the S/Pdif input switch doesn't work on Terratec DMX 6fire cards. This bug first appeared in version 1.0.11rc3.

diff -ubr alsa-tools-1.0.14patch/envy24control/hardware.c alsa-tools-1.0.14/envy24control/hardware.c
--- alsa-tools-1.0.14patch/envy24control/hardware.c 2007-09-23
15:58:53.000000000 +0200
+++ alsa-tools-1.0.14/envy24control/hardware.c 2007-06-04 13:27:25.000000000 +0200

(quoted diff) +1 -1
@@ -775,7 +775,7 @@
         snd_ctl_elem_value_set_interface(volume_rate, 
 SND_CTL_ELEM_IFACE_MIXER);
         snd_ctl_elem_value_set_name(volume_rate, "Multi Track Volume 
 Rate");
 
-       if (card_is_dmx6fire) {
+       if (! card_is_dmx6fire) {
                 snd_ctl_elem_value_set_interface(spdif_input, 

SND_CTL_ELEM_IFACE_MIXER);
snd_ctl_elem_value_set_name(spdif_input, "Optical

Digital Input Switch");
         } else {

Regards
Stephan
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#2 lore raw
Quoted 47 lines · Stephan Zaubzer

Sorry, used diff the wrong way!
Here the correct patch:

diff -ubr alsa-tools-1.0.14/envy24control/hardware.c alsa-tools-1.0.14patch/envy24control/hardware.c --- alsa-tools-1.0.14/envy24control/hardware.c 2007-06-04 13:27:25.000000000
+0200 +++ alsa-tools-1.0.14patch/envy24control/hardware.c 2007-09-23
15:58:53.000000000 +0200 @@ -775,7 +775,7 @@
snd_ctl_elem_value_set_interface(volume_rate,
SND_CTL_ELEM_IFACE_MIXER); snd_ctl_elem_value_set_name(volume_rate, "Multi Track Volume Rate");

envy24control/hardware.c 2007-09-23 15:58:53.000000000 +0200 renamed from envy24control/hardware.c 2007-06-04 13:27:25.000000000 +0200 +1 -1
-       if (! card_is_dmx6fire) {
+       if (card_is_dmx6fire) {
                 snd_ctl_elem_value_set_interface(spdif_input,

SND_CTL_ELEM_IFACE_MIXER); snd_ctl_elem_value_set_name(spdif_input, "Optical Digital Input Switch"); } else {

Regards Stephan

Quoted 26 lines · Stephan Zaubzer

Hi!
This patch against the stable version of envy24control fixes a bug where the S/Pdif input switch doesn't work on Terratec DMX 6fire cards. This bug first appeared in version 1.0.11rc3.

diff -ubr alsa-tools-1.0.14patch/envy24control/hardware.c alsa-tools-1.0.14/envy24control/hardware.c
--- alsa-tools-1.0.14patch/envy24control/hardware.c 2007-09-23
15:58:53.000000000 +0200
+++ alsa-tools-1.0.14/envy24control/hardware.c 2007-06-04 13:27:25.000000000 +0200

(quoted diff) +1 -1
@@ -775,7 +775,7 @@
         snd_ctl_elem_value_set_interface(volume_rate,
 SND_CTL_ELEM_IFACE_MIXER);
         snd_ctl_elem_value_set_name(volume_rate, "Multi Track Volume
 Rate");
 
-       if (card_is_dmx6fire) {
+       if (! card_is_dmx6fire) {
                 snd_ctl_elem_value_set_interface(spdif_input,

SND_CTL_ELEM_IFACE_MIXER);
snd_ctl_elem_value_set_name(spdif_input, "Optical

Digital Input Switch");
         } else {
Quoted 2 lines
Quoted 2 lines

Regards
Stephan

I think that's a typo in my original patch -oops! Will confirm ASAP.

Alan

#3 lore raw
Quoted 48 lines · Alan Horstmann
Quoted 47 lines · Stephan Zaubzer

Sorry, used diff the wrong way!
Here the correct patch:

diff -ubr alsa-tools-1.0.14/envy24control/hardware.c alsa-tools-1.0.14patch/envy24control/hardware.c --- alsa-tools-1.0.14/envy24control/hardware.c 2007-06-04 13:27:25.000000000
+0200 +++ alsa-tools-1.0.14patch/envy24control/hardware.c 2007-09-23
15:58:53.000000000 +0200 @@ -775,7 +775,7 @@
snd_ctl_elem_value_set_interface(volume_rate,
SND_CTL_ELEM_IFACE_MIXER); snd_ctl_elem_value_set_name(volume_rate, "Multi Track Volume Rate");

envy24control/hardware.c 2007-09-23 15:58:53.000000000 +0200 renamed from envy24control/hardware.c 2007-06-04 13:27:25.000000000 +0200 +1 -1
-       if (! card_is_dmx6fire) {
+       if (card_is_dmx6fire) {
                 snd_ctl_elem_value_set_interface(spdif_input,

SND_CTL_ELEM_IFACE_MIXER); snd_ctl_elem_value_set_name(spdif_input, "Optical Digital Input Switch"); } else {

Regards Stephan

Quoted 26 lines · Stephan Zaubzer

Hi!
This patch against the stable version of envy24control fixes a bug where the S/Pdif input switch doesn't work on Terratec DMX 6fire cards. This bug first appeared in version 1.0.11rc3.

diff -ubr alsa-tools-1.0.14patch/envy24control/hardware.c alsa-tools-1.0.14/envy24control/hardware.c
--- alsa-tools-1.0.14patch/envy24control/hardware.c 2007-09-23
15:58:53.000000000 +0200
+++ alsa-tools-1.0.14/envy24control/hardware.c 2007-06-04 13:27:25.000000000 +0200

(quoted diff) +1 -1
@@ -775,7 +775,7 @@
         snd_ctl_elem_value_set_interface(volume_rate,
 SND_CTL_ELEM_IFACE_MIXER);
         snd_ctl_elem_value_set_name(volume_rate, "Multi Track Volume
 Rate");
 
-       if (card_is_dmx6fire) {
+       if (! card_is_dmx6fire) {
                 snd_ctl_elem_value_set_interface(spdif_input,

SND_CTL_ELEM_IFACE_MIXER);
snd_ctl_elem_value_set_name(spdif_input, "Optical

Digital Input Switch");
         } else {
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

Regards
Stephan

I think that's a typo in my original patch -oops! Will confirm ASAP.

Actually, it is not from my patch - I added 'card_is_dmx6fire' to envy24control.c. It was later extended to hardware.c by another:

http://hg-mirror.alsa-project.org/alsa-tools/rev/48406c03292e

Obviously a typo though.

Also noticed that, as that patch added the declaration of card_is_dmx6fire to envy24control.h, there is now a redundant declaration in envy24control.c, Line 37.

Alan

#4 lore raw

At Mon, 24 Sep 2007 11:07:55 +0100,

Quoted 55 lines · Alan Horstmann
Quoted 48 lines · Alan Horstmann
Quoted 47 lines · Stephan Zaubzer

Sorry, used diff the wrong way!
Here the correct patch:

diff -ubr alsa-tools-1.0.14/envy24control/hardware.c alsa-tools-1.0.14patch/envy24control/hardware.c --- alsa-tools-1.0.14/envy24control/hardware.c 2007-06-04 13:27:25.000000000
+0200 +++ alsa-tools-1.0.14patch/envy24control/hardware.c 2007-09-23
15:58:53.000000000 +0200 @@ -775,7 +775,7 @@
snd_ctl_elem_value_set_interface(volume_rate,
SND_CTL_ELEM_IFACE_MIXER); snd_ctl_elem_value_set_name(volume_rate, "Multi Track Volume Rate");

envy24control/hardware.c 2007-09-23 15:58:53.000000000 +0200 renamed from envy24control/hardware.c 2007-06-04 13:27:25.000000000 +0200 +1 -1
-       if (! card_is_dmx6fire) {
+       if (card_is_dmx6fire) {
                 snd_ctl_elem_value_set_interface(spdif_input,

SND_CTL_ELEM_IFACE_MIXER); snd_ctl_elem_value_set_name(spdif_input, "Optical Digital Input Switch"); } else {

Regards Stephan

Quoted 26 lines · Stephan Zaubzer

Hi!
This patch against the stable version of envy24control fixes a bug where the S/Pdif input switch doesn't work on Terratec DMX 6fire cards. This bug first appeared in version 1.0.11rc3.

diff -ubr alsa-tools-1.0.14patch/envy24control/hardware.c alsa-tools-1.0.14/envy24control/hardware.c
--- alsa-tools-1.0.14patch/envy24control/hardware.c 2007-09-23
15:58:53.000000000 +0200
+++ alsa-tools-1.0.14/envy24control/hardware.c 2007-06-04 13:27:25.000000000 +0200

(quoted diff) +1 -1
@@ -775,7 +775,7 @@
         snd_ctl_elem_value_set_interface(volume_rate,
 SND_CTL_ELEM_IFACE_MIXER);
         snd_ctl_elem_value_set_name(volume_rate, "Multi Track Volume
 Rate");
 
-       if (card_is_dmx6fire) {
+       if (! card_is_dmx6fire) {
                 snd_ctl_elem_value_set_interface(spdif_input,

SND_CTL_ELEM_IFACE_MIXER);
snd_ctl_elem_value_set_name(spdif_input, "Optical

Digital Input Switch");
         } else {
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

Regards
Stephan

I think that's a typo in my original patch -oops! Will confirm ASAP.

Quoted 6 lines

Actually, it is not from my patch - I added 'card_is_dmx6fire' to envy24control.c. It was later extended to hardware.c by another:

http://hg-mirror.alsa-project.org/alsa-tools/rev/48406c03292e

Obviously a typo though.

Thanks, now fixed on HG tree.

Quoted 3 lines

Also noticed that, as that patch added the declaration of card_is_dmx6fire to envy24control.h, there is now a redundant declaration in envy24control.c, Line 37.

It's the line to define the variable, not to declare. So should it be.

Takashi