linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Fwd: Re: CMPCI patch for 2.4.23 (fix multi channel audio, spdiff, game port)
       [not found] <20031207201207.ED1F11B246@simpukka.saunalahti.fi>
@ 2003-12-07 20:38 ` Ville Hallivuori
  2003-12-08 18:24   ` Anssi Saari
  0 siblings, 1 reply; 2+ messages in thread
From: Ville Hallivuori @ 2003-12-07 20:38 UTC (permalink / raw)
  To: Anssi Saari; +Cc: davej, linux-kernel

> Indeed, it did, at least what little spdif functionality there was with
> the original 2.4.23 driver. I have an onboard CM8738 on ASUS A7S333 and
> use the optical spdif output exclusively.

> 		spdif out?			spdif AC3 passthrough?
> vanilla 2.4.22	yes				yes
> vanilla 2.4.23	yes, if enabled with cmictl	no
> this patch	no				no
> 
> The fix isn't quite right, so further work would be much appreciated. I
> sent this mail to you two directly as I'm not sure if I can just post a
> followup to lkml when reading it through usenet.

I don't have spdiff hardware (nor do I have register chart...), so I
can not be certain, but try changing:
#define	   SPDF_0	0x01
#define	   SPDF_1	0x02
to 
#define	   SPDF_0	0x02
#define	   SPDF_1	0x01

And change from function set_spdif_monitor line:
  maskw(s->iobase + CODEC_CMI_FUNCTRL1, ~SPDO2DAC, channel == 2 ? SPDO2DAC : 0);
to:
  maskw(s->iobase + CODEC_CMI_FUNCTRL1, ~SPDO2DAC, channel == 1 ? SPDO2DAC : 0);

If this does not help. try looking for similar value pairs -- it seems
that channel number assumptions are present in quite many places...

-- 
[Ville Hallivuori][vph@iki.fi][http://www.iki.fi/vph/]
[ID 8E1AD461][FP16=C9 50 E2 DF 48 F6 33 62  5D 87 47 9D 3F 2B 07 5D]
[ID 58543419][FP20=8731 941D 15AB D4A0 88A0  FC8F B55C F4C4 5854 3419]
[ID 8061C24E][FP20=C722 12DA 841E D811 DBFE  2FB3 174C E291 8061 C24E]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CMPCI patch for 2.4.23 (fix multi channel audio, spdiff, game port)
  2003-12-07 20:38 ` Fwd: Re: CMPCI patch for 2.4.23 (fix multi channel audio, spdiff, game port) Ville Hallivuori
@ 2003-12-08 18:24   ` Anssi Saari
  0 siblings, 0 replies; 2+ messages in thread
From: Anssi Saari @ 2003-12-08 18:24 UTC (permalink / raw)
  To: Ville Hallivuori; +Cc: davej, linux-kernel

On Sun, Dec 07, 2003 at 10:38:02PM +0200, Ville Hallivuori wrote:

> #define	   SPDF_0	0x01
> #define	   SPDF_1	0x02
> to 
> #define	   SPDF_0	0x02
> #define	   SPDF_1	0x01
> 
> And change from function set_spdif_monitor line:
>   maskw(s->iobase + CODEC_CMI_FUNCTRL1, ~SPDO2DAC, channel == 2 ? SPDO2DAC : 0);
> to:
>   maskw(s->iobase + CODEC_CMI_FUNCTRL1, ~SPDO2DAC, channel == 1 ? SPDO2DAC : 0);
> 
> If this does not help. try looking for similar value pairs -- it seems
> that channel number assumptions are present in quite many places...

Yes, that fixed SPDIF out. However, I still don't have working
AC3 passthrough. I wish I knew more about the chip... At least
set_ac3_unlocked() seems to do the same thing for both versions.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-08 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20031207201207.ED1F11B246@simpukka.saunalahti.fi>
2003-12-07 20:38 ` Fwd: Re: CMPCI patch for 2.4.23 (fix multi channel audio, spdiff, game port) Ville Hallivuori
2003-12-08 18:24   ` Anssi Saari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).