From: Doug McLain Subject: Re: [ALSA - driver 0001806]: SPDIF and Wordclock I/O is broken on Delta 1010LT Date: Mon, 06 Feb 2006 11:23:04 -0500 Message-ID: <43E777E8.9080506@nostar.net> References: <68c7bcdb75e965f940ce3ea34a123fd6@bugtrack.alsa-project.org> <200602061445.16645.gineera@aspect135.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200602061445.16645.gineera@aspect135.co.uk> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Alan Horstmann Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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. Alan Horstmann wrote: > On Monday 06 February 2006 11:05, bugtrack@alsa-project.org 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. > > >>---------------------------------------------------------------------- >> 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