From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Hofman Subject: Re: M-Audio Audiophile 192 (ice1724)'s broken spdif capture Date: Mon, 28 Jan 2013 13:52:10 +0100 Message-ID: <5106747A.5070803@ivitera.com> References: <51042EE5.5070900@perex.cz> <7adcf466397b198e2e079e35b47686bc.squirrel@mail.insite.cz> <510644E5.1040505@perex.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cable.insite.cz (static-84-242-75-189.net.upcbroadband.cz [84.242.75.189]) by alsa0.perex.cz (Postfix) with ESMTP id 9CE59265293 for ; Mon, 28 Jan 2013 13:52:11 +0100 (CET) In-Reply-To: <510644E5.1040505@perex.cz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Jaroslav Kysela Cc: alsa-devel , Jonas Petersen List-Id: alsa-devel@alsa-project.org On 28.1.2013 10:29, Jaroslav Kysela wrote: > Date 27.1.2013 16:49, Jonas Petersen wrote: >> in ap192_ak4114_init() of revo.c I see this: >> >> ---- static const unsigned char ak4114_init_vals[] = { AK4114_RST | >> AK4114_PWN | AK4114_OCKS0 | AK4114_OCKS1, AK4114_DIF_I24I2S, >> AK4114_TX1E, AK4114_EFH_1024 | AK4114_DIT | AK4114_IPS(1), 0, 0 }; >> static const unsigned char ak4114_init_txcsb[] = { 0x41, 0x02, >> 0x2c, 0x00, 0x00 }; ---- >> >> Something wrong here maybe? >> >> I noticed that the ak4114_init_vals array has 6 values but in >> ap192_ak4114_init() 7 values get written to ak4114.regmap. > > Looking to the AK4114 datasheet. I would try the clock mode 2 > (CM1=1,CM0=0) and also, check if there is a 11.2896Mhz crystal used > for the reference clock (XTL1, XTL0). Also, the note in revo.c that > the input rate reported by AK4114 is unstable, clearly shows that the > clock logic is screwed (misconfigured). The crystal is not used http://www.nix.ru/autocatalog/m_audio_midiman_sound/34397_2245_draft.jpg . IME ak411x cards without the auxiliary Xiling fpga do not provide the independent clock from ak411X and thus cannot report the input rate correctly. That is why I do not make use of the value in the driver (ak->check_flags = AK4114_CHECK_NO_RATE) Jonas, please could you check if ak4114 pins XTL0/1 (10, 11) are connected to logical high? They should be :) Regards, Pavel.