From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: optical SPDIF output on Abit NF7 nforce2 main board. Date: Tue, 02 Sep 2003 15:21:33 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3F532D5E.6040300@icem.com> <3F534D6A.5030706@icem.com> <3F535A42.6020403@icem.com> <3F536C97.5080008@icem.com> <3F538893.1010801@icem.com> <3F539A3E.3030508@icem.com> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: multipart/mixed; boundary="Multipart_Tue_Sep__2_15:21:33_2003-1" Return-path: In-Reply-To: <3F539A3E.3030508@icem.com> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Carsten Koch Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Tue_Sep__2_15:21:33_2003-1 Content-Type: text/plain; charset=US-ASCII At Mon, 01 Sep 2003 21:13:02 +0200, Carsten Koch wrote: > > Takashi Iwai wrote: > ... > > ok, then apparently it looks like working correctly. > > Look: yes, sound: no. ;-) > > > > can you play mp3 on normal analog output correctly? > > Yes. It looks like this: > > vdr:~ # head /proc/asound/card?/pcm?p/sub?/hw_params > ==> /proc/asound/card0/pcm0p/sub0/hw_params <== > access: RW_INTERLEAVED > format: S16_LE > subformat: STD > channels: 2 > rate: 44100 (44100/1) > period_size: 1024 > buffer_size: 8192 > tick_time: 10000 > > ==> /proc/asound/card0/pcm1p/sub0/hw_params <== > closed > > and it sounds OK. looking at the nvidia's driver code, it seems that spdif on nforce supports only 48k in fact. i'll add the restriction on the driver side, then. could you try the attached patch? Takashi --Multipart_Tue_Sep__2_15:21:33_2003-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="nforce-spdif-48k.dif" Content-Transfer-Encoding: 7bit Index: alsa-kernel/pci/intel8x0.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/intel8x0.c,v retrieving revision 1.92 diff -u -r1.92 intel8x0.c --- alsa-kernel/pci/intel8x0.c 12 Aug 2003 14:05:07 -0000 1.92 +++ alsa-kernel/pci/intel8x0.c 2 Sep 2003 13:20:34 -0000 @@ -1534,7 +1534,7 @@ { NVD_PCMOUT, { AC97_PCM_FRONT_DAC_RATE, AC97_PCM_SURR_DAC_RATE, AC97_PCM_LFE_DAC_RATE }, AC97_RATES_FRONT_DAC }, { NVD_PCMIN, { AC97_PCM_LR_ADC_RATE, 0, 0 }, AC97_RATES_ADC }, { NVD_MIC, { AC97_PCM_MIC_ADC_RATE, 0, 0 }, AC97_RATES_MIC_ADC }, - { NVD_SPBAR, { AC97_SPDIF, AC97_PCM_FRONT_DAC_RATE, 0 }, AC97_RATES_SPDIF }, + { NVD_SPBAR, { AC97_SPDIF, AC97_PCM_FRONT_DAC_RATE, 0 }, -1 }, /* spdif is 48k only */ }; static struct _ac97_rate_regs ali_ac97_rate_regs[] __devinitdata = { --Multipart_Tue_Sep__2_15:21:33_2003-1-- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf