* [PATCH] emu10k1: fix efx_voices_mask setting for SBLive
@ 2005-02-27 0:19 Lee Revell
2005-02-27 0:29 ` Lee Revell
0 siblings, 1 reply; 4+ messages in thread
From: Lee Revell @ 2005-02-27 0:19 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, James Courtier-Dutton
[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]
This patch fixes a stupid thinko where we set the low 16 bits of the
FXWC register, which correspond to the 16 physical outs. We should be
setting the high 16 bits, which correspond to the physical inputs
(connected in emufx.c). The Audigy was not affected by this bug.
Also, the "EFX Voices Mask" control is renamed to "Captured FX8010
Outputs". This is a trick to ensure the default mixer settings are
loaded when users upgrade from 1.0.8. Otherwise, the upgrade process
will probably restore the old settings which results in the
"multichannel" capture device only having two channels. I could not
think of a better way to get around this issue, and the alternative
seems to be a slew of bug reports. Half the testers reported this to me
as a bug already.
Anyway, I think the new name is clearer anyway, because there's no
reason to tell userspace the hardware stores this value as a mask, and
"voices" is confusing because it implies some relation to the 64
wavetable/PCM voices.
Signed-Off-By: <rlrevell@joe-job.com>
[-- Attachment #2: sblive-fix-default-voices-mask.patch --]
[-- Type: text/x-patch, Size: 659 bytes --]
Index: alsa/alsa-kernel/pci/emu10k1/emupcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emupcm.c,v
retrieving revision 1.40
diff -u -r1.40 emupcm.c
--- alsa/alsa-kernel/pci/emu10k1/emupcm.c 17 Feb 2005 14:49:50 -0000 1.40
+++ alsa/alsa-kernel/pci/emu10k1/emupcm.c 26 Feb 2005 23:34:53 -0000
@@ -1690,7 +1690,7 @@
emu->efx_voices_mask[0] = 0;
emu->efx_voices_mask[1] = 0xffff;
} else {
- emu->efx_voices_mask[0] = 0xffff;
+ emu->efx_voices_mask[0] = 0xffff0000;
emu->efx_voices_mask[1] = 0;
}
snd_ctl_add(emu->card, snd_ctl_new1(&snd_emu10k1_pcm_efx_voices_mask, emu));
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] emu10k1: fix efx_voices_mask setting for SBLive
2005-02-27 0:19 [PATCH] emu10k1: fix efx_voices_mask setting for SBLive Lee Revell
@ 2005-02-27 0:29 ` Lee Revell
2005-03-01 22:10 ` Lee Revell
0 siblings, 1 reply; 4+ messages in thread
From: Lee Revell @ 2005-02-27 0:29 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, James Courtier-Dutton
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]
On Sat, 2005-02-26 at 19:19 -0500, Lee Revell wrote:
> Also, the "EFX Voices Mask" control is renamed to "Captured FX8010
> Outputs". This is a trick to ensure the default mixer settings are
> loaded when users upgrade from 1.0.8. Otherwise, the upgrade process
> will probably restore the old settings which results in the
> "multichannel" capture device only having two channels. I could not
> think of a better way to get around this issue, and the alternative
> seems to be a slew of bug reports. Half the testers reported this to me
> as a bug already.
>
> Anyway, I think the new name is clearer anyway, because there's no
> reason to tell userspace the hardware stores this value as a mask, and
> "voices" is confusing because it implies some relation to the 64
> wavetable/PCM voices.
Sorry, wrong patch.
Lee
[-- Attachment #2: sblive-fix-default-voices-mask.patch --]
[-- Type: text/x-patch, Size: 988 bytes --]
Index: alsa/alsa-kernel/pci/emu10k1/emupcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emupcm.c,v
retrieving revision 1.40
diff -u -r1.40 emupcm.c
--- alsa/alsa-kernel/pci/emu10k1/emupcm.c 17 Feb 2005 14:49:50 -0000 1.40
+++ alsa/alsa-kernel/pci/emu10k1/emupcm.c 27 Feb 2005 00:07:57 -0000
@@ -1405,7 +1405,7 @@
static snd_kcontrol_new_t snd_emu10k1_pcm_efx_voices_mask = {
.iface = SNDRV_CTL_ELEM_IFACE_PCM,
- .name = "EFX voices mask",
+ .name = "Captured FX8010 Outputs",
.info = snd_emu10k1_pcm_efx_voices_mask_info,
.get = snd_emu10k1_pcm_efx_voices_mask_get,
.put = snd_emu10k1_pcm_efx_voices_mask_put
@@ -1690,7 +1690,7 @@
emu->efx_voices_mask[0] = 0;
emu->efx_voices_mask[1] = 0xffff;
} else {
- emu->efx_voices_mask[0] = 0xffff;
+ emu->efx_voices_mask[0] = 0xffff0000;
emu->efx_voices_mask[1] = 0;
}
snd_ctl_add(emu->card, snd_ctl_new1(&snd_emu10k1_pcm_efx_voices_mask, emu));
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] emu10k1: fix efx_voices_mask setting for SBLive
2005-02-27 0:29 ` Lee Revell
@ 2005-03-01 22:10 ` Lee Revell
2005-03-02 12:32 ` Jaroslav Kysela
0 siblings, 1 reply; 4+ messages in thread
From: Lee Revell @ 2005-03-01 22:10 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, James Courtier-Dutton
On Sat, 2005-02-26 at 19:29 -0500, Lee Revell wrote:
> On Sat, 2005-02-26 at 19:19 -0500, Lee Revell wrote:
> > Also, the "EFX Voices Mask" control is renamed to "Captured FX8010
> > Outputs". This is a trick to ensure the default mixer settings are
> > loaded when users upgrade from 1.0.8. Otherwise, the upgrade process
> > will probably restore the old settings which results in the
> > "multichannel" capture device only having two channels. I could not
> > think of a better way to get around this issue, and the alternative
> > seems to be a slew of bug reports. Half the testers reported this to me
> > as a bug already.
> >
> > Anyway, I think the new name is clearer anyway, because there's no
> > reason to tell userspace the hardware stores this value as a mask, and
> > "voices" is confusing because it implies some relation to the 64
> > wavetable/PCM voices.
>
> Sorry, wrong patch.
>
Please apply the second chunk of the patch ASAP, it's an important bug
fix. The first part (renaming "EFX Voices Mask") is optional.
Lee
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] emu10k1: fix efx_voices_mask setting for SBLive
2005-03-01 22:10 ` Lee Revell
@ 2005-03-02 12:32 ` Jaroslav Kysela
0 siblings, 0 replies; 4+ messages in thread
From: Jaroslav Kysela @ 2005-03-02 12:32 UTC (permalink / raw)
To: Lee Revell; +Cc: alsa-devel
On Tue, 1 Mar 2005, Lee Revell wrote:
> Please apply the second chunk of the patch ASAP, it's an important bug
> fix. The first part (renaming "EFX Voices Mask") is optional.
Applied.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-02 12:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-27 0:19 [PATCH] emu10k1: fix efx_voices_mask setting for SBLive Lee Revell
2005-02-27 0:29 ` Lee Revell
2005-03-01 22:10 ` Lee Revell
2005-03-02 12:32 ` Jaroslav Kysela
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.