* [PATCH] cs46xx SPDIF input && some cleanups && bug fixes
@ 2002-08-11 8:04 Benny Sjostrand
2002-08-12 9:51 ` Takashi Iwai
0 siblings, 1 reply; 6+ messages in thread
From: Benny Sjostrand @ 2002-08-11 8:04 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 2138 bytes --]
Hi!
I've working to have the SPDIF support working, it has not been easy to
understand and there is still some issues left.
The soundcards manufacturers (like Hercules) dont seems to be interested
in providing us any information about the
use of the different GPIO pins. So , I wrote some code to controll the
EGIO pins on the cs4630 from the ALSA mixer, and
so test them all. I've been spaming and bombing Hercules with mails for
a long time now without any response at all.
Finally i have discovered that on the Hercules Game Theater XP the
EGPIO0 selects between Coxial or Toslink SPDIF.
The code to controll the EPGIO pins are activated by defining the
CONFIG_SND_CS46XX_DEBUG_GPIO, hopefully
this dirty hack can be removed soon but maybe it can be useful to find
out the use of the GPIO pins on other
cs46xx based soundcards.
This patch includes:
- SDPIF input support, only 48khz
- PCM multichannel bug fix.
- Minor cleanups and bugfixes.
One issue SPDIF input is that I dont know how to setup the DSP to detect
the sample rate automatically, so in this moment
only 48khz is supported, or change the code to support other sample
rate, or we can have a module parameter to set
the SPDIF input sample rate.
Any AC3 decoding is not supported yet ....
There have been some changes on the mixer, the following controls have
been added:
- SPDIF Output Switch - mutes, unmutes SPDIF output
- SPDIF Input Switch - mutes, unmutes SPDIF input
- SPDIF Input Volume - adjust the volume on SPDIF input
- DAC capture Switch - capture what goes out to the CODEC, the primary
use of this is to capture the input from the SPDIF,
but it will capture all PCM
playback as well.
- ADC capture Switch - capture what goes analog input to the CODEC like,
mic line in, aux in. etc ...
- Optical/Coaxial SPDIF Input Switch - only Hercules Game Theater XP,
switch between SPDIF toslink and coxial source,
have
not tested the coaxial input yet. (dont have any HW with SPDIF coaxial
output)
The patch is against current CVS.
/Benny
[-- Attachment #2: spdif_input_patch.gz --]
[-- Type: application/postscript, Size: 10191 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] cs46xx SPDIF input && some cleanups && bug fixes
@ 2002-08-12 9:14 Friedrich.Ewaldt
2002-08-12 10:59 ` Benny Sjostrand
0 siblings, 1 reply; 6+ messages in thread
From: Friedrich.Ewaldt @ 2002-08-12 9:14 UTC (permalink / raw)
To: gorm; +Cc: alsa-devel
Hi,
SPDIF input works with my Terratec DMX XFire thanks to Benny's newest patch.
(@Benny: Thanks for remailing the attachment)
I've got only one minor problem:
Switching around in alsamixer at the SPDIF controls for some time causes a
high frequency tone to be played back all the time until I reboot. I'll have
to do further examinations when this happens exactly.
regards, fritz_e
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] cs46xx SPDIF input && some cleanups && bug fixes
2002-08-11 8:04 [PATCH] cs46xx SPDIF input && some cleanups && bug fixes Benny Sjostrand
@ 2002-08-12 9:51 ` Takashi Iwai
2002-08-12 10:56 ` Benny Sjostrand
0 siblings, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2002-08-12 9:51 UTC (permalink / raw)
To: Benny Sjostrand; +Cc: alsa-devel
Hi Benny,
At Sun, 11 Aug 2002 10:04:11 +0200,
Benny Sjostrand wrote:
>
>
> The patch is against current CVS.
looks like the attached file is broken.
could you resend the patch again?
thanks,
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] cs46xx SPDIF input && some cleanups && bug fixes
2002-08-12 9:51 ` Takashi Iwai
@ 2002-08-12 10:56 ` Benny Sjostrand
2002-08-12 11:05 ` Takashi Iwai
0 siblings, 1 reply; 6+ messages in thread
From: Benny Sjostrand @ 2002-08-12 10:56 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
>
>
>looks like the attached file is broken.
>
>could you resend the patch again?
>
It is probably to big .. ~ 60kb
I've published it on my http server at
http://www.cucumelo.org/~gorm/spdif_input_patch.gz
Hope you can get it now.
/Benny
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] cs46xx SPDIF input && some cleanups && bug fixes
2002-08-12 9:14 Friedrich.Ewaldt
@ 2002-08-12 10:59 ` Benny Sjostrand
0 siblings, 0 replies; 6+ messages in thread
From: Benny Sjostrand @ 2002-08-12 10:59 UTC (permalink / raw)
To: Friedrich.Ewaldt; +Cc: alsa-devel
>
>
>Switching around in alsamixer at the SPDIF controls for some time causes a
>high frequency tone to be played back all the time until I reboot. I'll have
>to do further examinations when this happens exactly.
>regards, fritz_e
>
It's a known problem, read the note in cs46xx_lib.c, i think it's becourse
some times the DSP tasks get unsynchronized. I dont know how to fix it yet.
To get around the problem just mute and unmute the SPDIF input controll
in mixer and, that usually fix it.
/Benny
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] cs46xx SPDIF input && some cleanups && bug fixes
2002-08-12 10:56 ` Benny Sjostrand
@ 2002-08-12 11:05 ` Takashi Iwai
0 siblings, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2002-08-12 11:05 UTC (permalink / raw)
To: Benny Sjostrand; +Cc: alsa-devel
At Mon, 12 Aug 2002 12:56:28 +0200,
Benny Sjostrand wrote:
>
> >
> >
> >looks like the attached file is broken.
> >
> >could you resend the patch again?
> >
> It is probably to big .. ~ 60kb
> I've published it on my http server at
> http://www.cucumelo.org/~gorm/spdif_input_patch.gz
thanks, got it.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-08-12 11:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-11 8:04 [PATCH] cs46xx SPDIF input && some cleanups && bug fixes Benny Sjostrand
2002-08-12 9:51 ` Takashi Iwai
2002-08-12 10:56 ` Benny Sjostrand
2002-08-12 11:05 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2002-08-12 9:14 Friedrich.Ewaldt
2002-08-12 10:59 ` Benny Sjostrand
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.