* cmipci CM_FLINKOFF disables multinchannel playback
@ 2007-10-29 14:14 Timofei V. Bondarenko
2007-10-29 16:38 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: Timofei V. Bondarenko @ 2007-10-29 14:14 UTC (permalink / raw)
To: alsa-devel
Hi.
I found the latest cmipci driver cannot playback in multichannel mode
anymore.
My hardware is 'CMI8738 model 55' attempting to play 2 or 4 channels
through the 2nd DAC i get no sound at all. 6 ch produces sound only at
center/bass while front and rear still mute.
I found the root of problem in redefinition of some bits of the
CM_REG_MISC_CTRL (0x18) register.
Was: CM_FLINKON=0x40, CM_FLINKOFF=0x20
Now it is: CM_FLINKON=0x80 CM_FLINKOFF=0x40
Note the CM_FLINKOFF does collide with the CM_MUTECH1=0x40 bit.
This bit disables playback on 2nd DAC.
The CM_FLINKOFF/CM_FLINKON bits used in the 'Modem' mixer control only.
During startup the mixer turns the modem off somewhere and this disables
2nd DAC as well.
Complete removal of this 'Modem' control fixes the problem.
Is it an acceptable solution?
I guess the snd_cmipci_control_switches could be removed too.
Regards.
Tim.
--- alsa-driver-hg20071027/alsa-kernel/pci/cmipci.c 2007-09-18
04:00:10.000000000 +0400
+++ alsa-driver/alsa-kernel/pci/cmipci.c 2007-10-29 17:09:31.000000000 +0300
@@ -2389,7 +2389,6 @@ DEFINE_BIT_SWITCH_ARG(fourch, CM_REG_MIS
// DEFINE_BIT_SWITCH_ARG(line_rear, CM_REG_MIXER1, CM_REAR2LIN, 1, 0);
// DEFINE_BIT_SWITCH_ARG(line_bass, CM_REG_LEGACY_CTRL,
CM_CENTR2LIN|CM_BASE2LIN, 0, 0);
// DEFINE_BIT_SWITCH_ARG(joystick, CM_REG_FUNCTRL1, CM_JYSTK_EN, 0,
0); /* now module option */
-DEFINE_SWITCH_ARG(modem, CM_REG_MISC_CTRL, CM_FLINKON|CM_FLINKOFF,
CM_FLINKON, 0, 0);
#define DEFINE_SWITCH(sname, stype, sarg) \
{ .name = sname, \
@@ -2597,7 +2596,7 @@ static struct snd_kcontrol_new snd_cmipc
/* card control switches */
static struct snd_kcontrol_new snd_cmipci_control_switches[]
__devinitdata = {
// DEFINE_CARD_SWITCH("Joystick", joystick), /* now module option */
- DEFINE_CARD_SWITCH("Modem", modem),
+// DEFINE_CARD_SWITCH("Modem", modem),
};
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: cmipci CM_FLINKOFF disables multinchannel playback
2007-10-29 14:14 cmipci CM_FLINKOFF disables multinchannel playback Timofei V. Bondarenko
@ 2007-10-29 16:38 ` Clemens Ladisch
2007-10-29 17:01 ` Timofei V. Bondarenko
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2007-10-29 16:38 UTC (permalink / raw)
To: Timofei V. Bondarenko, alsa-devel
Timofei V. Bondarenko wrote:
> I found the latest cmipci driver cannot playback in multichannel mode
> anymore.
>
> My hardware is 'CMI8738 model 55' attempting to play 2 or 4 channels
> through the 2nd DAC i get no sound at all. 6 ch produces sound only at
> center/bass while front and rear still mute.
>
> I found the root of problem in redefinition of some bits of the
> CM_REG_MISC_CTRL (0x18) register.
> Was: CM_FLINKON=0x40, CM_FLINKOFF=0x20
> Now it is: CM_FLINKON=0x80 CM_FLINKOFF=0x40
>
> Note the CM_FLINKOFF does collide with the CM_MUTECH1=0x40 bit.
> This bit disables playback on 2nd DAC.
>
> The CM_FLINKOFF/CM_FLINKON bits used in the 'Modem' mixer control only.
> During startup the mixer turns the modem off somewhere and this disables
> 2nd DAC as well.
>
> Complete removal of this 'Modem' control fixes the problem.
Do you have any information about the exact chip version where this
change happened? It appears chip versions 39 and newer don't have
a modem.
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cmipci CM_FLINKOFF disables multinchannel playback
2007-10-29 16:38 ` Clemens Ladisch
@ 2007-10-29 17:01 ` Timofei V. Bondarenko
2007-10-30 8:37 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: Timofei V. Bondarenko @ 2007-10-29 17:01 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
Clemens Ladisch wrote:
> Timofei V. Bondarenko wrote:
>> I found the latest cmipci driver cannot playback in multichannel mode
>> anymore.
>>
>> My hardware is 'CMI8738 model 55' attempting to play 2 or 4 channels
>> through the 2nd DAC i get no sound at all. 6 ch produces sound only at
>> center/bass while front and rear still mute.
>>
>> I found the root of problem in redefinition of some bits of the
>> CM_REG_MISC_CTRL (0x18) register.
>> Was: CM_FLINKON=0x40, CM_FLINKOFF=0x20
>> Now it is: CM_FLINKON=0x80 CM_FLINKOFF=0x40
>>
>> Note the CM_FLINKOFF does collide with the CM_MUTECH1=0x40 bit.
>> This bit disables playback on 2nd DAC.
>>
>> The CM_FLINKOFF/CM_FLINKON bits used in the 'Modem' mixer control only.
>> During startup the mixer turns the modem off somewhere and this disables
>> 2nd DAC as well.
>>
>> Complete removal of this 'Modem' control fixes the problem.
>
> Do you have any information about the exact chip version where this
> change happened? It appears chip versions 39 and newer don't have
> a modem.
No. I'm talking not about chip versions.
The definitions was changed in the cmipci driver code.
In the patch named 'cmipci: update register definitions' about 18th
september.
My card certainly have no modem.
But the driver creates almost dummy 'Modem' control.
I suggested to remove it just because i see no use of this control other
than flipping 2 bits in CM_REG_MISC_CTRL.
Regards,
Tim.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-30 8:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 14:14 cmipci CM_FLINKOFF disables multinchannel playback Timofei V. Bondarenko
2007-10-29 16:38 ` Clemens Ladisch
2007-10-29 17:01 ` Timofei V. Bondarenko
2007-10-30 8:37 ` Clemens Ladisch
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.