All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benny Sjostrand <gorm@cucumelo.org>
To: alsa-devel@lists.sourceforge.net
Subject: [PATCH] cs46xx SPDIF input && some cleanups && bug fixes
Date: Sun, 11 Aug 2002 10:04:11 +0200	[thread overview]
Message-ID: <3D561A7B.6090204@cucumelo.org> (raw)

[-- 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 --]

             reply	other threads:[~2002-08-11  8:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-11  8:04 Benny Sjostrand [this message]
2002-08-12  9:51 ` [PATCH] cs46xx SPDIF input && some cleanups && bug fixes 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D561A7B.6090204@cucumelo.org \
    --to=gorm@cucumelo.org \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.