Skip to contentSkip to conversation

: SPDIF and Wordclock I/O is broken on Delta 1010LT

ALSA - driver 0001806 [email protected] 3 participants 3 messages Feb 6, 2006

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1806>
======================================================================
Reported By: nostar
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   1806
Category:                   PCI - ice1712
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             02-01-2006 23:06 CET
Last Modified:              02-06-2006 12:05 CET

======================================================================
Summary: SPDIF and Wordclock I/O is broken on Delta 1010LT
Description:
SPDIF output is non existant unless SPDIF In is connected to a valid output source. Then, the signal on SPDIF output is typically just noise. If I toggle between any internal clock setting and SPDIF In using envy24control, eventually I will get audible audio. Using an o-scope on the wordclock output, I get flatline unless there is a valid SPDIF Input signal. I can switch to an internal clock setting while there is an SPDIF In signal connected, and the Word Clock signal will be present, at the frequency of the SPDIF In signal though, and not the frequency of the selected internal clock frequency.

======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001785 ice1712 driver -cs8427 SPDIF chip not a...
======================================================================

----------------------------------------------------------------------
nostar - 02-06-06 11:41
----------------------------------------------------------------------
This patch fixes SPDIF I/O, and adds a few very useful lines to the current proc output.

TODO: Wordclock output was fixed by this as well, but still no syncing to a wordclock input. Also, bit 4 (mask 0x10) of the error register (0x10) can be used to add a new control for the 1010lt to check input status for the locked/unlocked label. Coming soon.

----------------------------------------------------------------------
nostar - 02-06-06 12:05
----------------------------------------------------------------------
envy.diff fixes the problem of not being able toselect word clock directly from an internal clock source (on all cards, not just the 1010LT).

Issue History
Date Modified Username Field Change
======================================================================
02-01-06 23:06 nostar New Issue
02-01-06 23:06 nostar File Added: snd_ice1712_proc_read.c

02-02-06 08:59 perex          Relationship added       related to 0001785  
02-02-06 09:00 perex          Note Added: 0007871                          
02-03-06 16:14 nostar         Note Added: 0007898                          
02-06-06 11:41 nostar         Note Added: 0007947                          
02-06-06 11:41 nostar         File Added: driver.diff                      
02-06-06 12:03 nostar         Issue Monitored: nostar                      
02-06-06 12:05 nostar         Note Added: 0007948                          

======================================================================

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#1 lore raw
Quoted 6 lines · On Monday 06 February 2006 11:05, [email protected] wrote:

----------------------------------------------------------------------
nostar - 02-06-06 11:41
----------------------------------------------------------------------
This patch fixes SPDIF I/O, and adds a few very useful lines to the current proc output.

(driver.diff)

I am glad you have made good progress! What was it that actually solved the problem? In driver.diff, which is wanted, mutex_init or init_MUTEX? Is the patch hunk the right way round? Also there are 2 hunks of spurious white-space changes; I normally edit these out of diff files.

Quoted 6 lines

----------------------------------------------------------------------
nostar - 02-06-06 12:05
----------------------------------------------------------------------
envy.diff fixes the problem of not being able toselect word clock directly from an internal clock source (on all cards, not just the 1010LT).

You're right to point out that internal_clock_set(13) is an anomaly, since it is an external clock source! I suppose we have to live with that, as the driver treats SPDIF in the internal clock routines.

Extra '=' -typo well spotted, although it has compiled for me without problems. It was mine, I think.

Alan

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#2 lore raw

I didnt look to closely at the patch before I sent it, it was late. I don't know what up with the mutex stuff actually, looks like I should have updated before I made a patch. I will make a new patch. The fix is simply one silly little bit:

static struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_select __devinitdata = ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Sync", 0, ICE1712_DELTA_1010LT_WORDCLOCK, 0, 0);

If the 5th argument is a 1, as it was, it inverts the operand, causeing bit 7 (high bit) of the GPIO register to be 1 when spdif and internal are chosen, and 0 for wordclock, which is the opposite of the way it was behaving in windows via PCIScope. I tried this a long time ago as well, to no avail, so I think the fix includes you and perex's work as well.

Quoted 21 lines · Alan Horstmann
Quoted 6 lines · On Monday 06 February 2006 11:05, [email protected] wrote:

----------------------------------------------------------------------
nostar - 02-06-06 11:41
----------------------------------------------------------------------
This patch fixes SPDIF I/O, and adds a few very useful lines to the current proc output.

(driver.diff)

I am glad you have made good progress! What was it that actually solved the problem? In driver.diff, which is wanted, mutex_init or init_MUTEX? Is the patch hunk the right way round? Also there are 2 hunks of spurious white-space changes; I normally edit these out of diff files.

Quoted 6 lines

----------------------------------------------------------------------
nostar - 02-06-06 12:05
----------------------------------------------------------------------
envy.diff fixes the problem of not being able toselect word clock directly from an internal clock source (on all cards, not just the 1010LT).

Quoted 6 lines

You're right to point out that internal_clock_set(13) is an anomaly, since it is an external clock source! I suppose we have to live with that, as the driver treats SPDIF in the internal clock routines.

Extra '=' -typo well spotted, although it has compiled for me without problems. It was mine, I think.

Alan

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642