At Tue, 09 Sep 2008 22:53:50 +0200,
Ruediger Dohmhardt wrote:
>
> Vedran Miletić schrieb:
> > Why don't you just pull the entire Takashi's tree with git and compile
> > it? That would probably require the least effort, because you won't
> > need to do any patching at all.
> >
> Ok! I did it. *The good news*:
> Building "sound-unstable-2.6.git" with kernel 2.6.26.3 made the VT1708B
> chip on my ASUS-M3N78-VM flawlessly working (at least I don't hear
> distortion).
Good to hear. Yes, some fixes have been added for VIA stuff pretty
recently.
> The alsa parts in
>
> (1) the kernel SUSE 11.0 ( 2.6.25.11-0.1-default)
> (2) the latest stable version 2.6.26.3 as well as
> (3) the alsa-driver-1.0.18rc1
>
> made a lot of distortion. You could stand it for a while listening to
> 48kHz (DVB and DVD), but it was terrible with 44,1kHz (Wav files and CD).
> The distortion with the VT1708B was actually the reason buying the
> Creative X-Fi Xtreme Audio PCIe card.
>
> *The bad news:*
> The PCIe card does not work. The driver "snd_hda_intel" loads fine, but
> when running
>
> aplay -Dhw:0,1 /usr/share/sounds/alsa/test.wav
> ->Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit
> Little Endian, Rate 44100 Hz, Stereo
>
> the output 10s later is:
> ->aplay: pcm_write:1394: write error: Eingabe-/Ausgabefehler
> (Translation: Input-/Output Error)
>
> According to /proc/interrupts, there are approx. 10 interrupts while
> playing "test.wav".
>
>
> But there is no sound at the front speaker-output. I haven't tested the
> optical SPDIF output yet, but will do so the next week.
> No log in /var/log/messages.
>
> Prior to doing the tests and creating the logs I disabled the VT1708B
> in the BIOS. Therefore it is not listed below.
>
> /************ Output of aplay -L ****************/
> aplay -L
> default:CARD=Intel
> HDA Intel, CA0110 Analog
> Default Audio Device
> front:CARD=Intel,DEV=0
> HDA Intel, CA0110 Analog
> Front speakers
> surround40:CARD=Intel,DEV=0
> HDA Intel, CA0110 Analog
> 4.0 Surround output to Front and Rear speakers
> surround41:CARD=Intel,DEV=0
> HDA Intel, CA0110 Analog
> 4.1 Surround output to Front, Rear and Subwoofer speakers
> surround50:CARD=Intel,DEV=0
> HDA Intel, CA0110 Analog
> 5.0 Surround output to Front, Center and Rear speakers
> surround51:CARD=Intel,DEV=0
> HDA Intel, CA0110 Analog
> 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
> surround71:CARD=Intel,DEV=0
> HDA Intel, CA0110 Analog
> 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
> iec958:CARD=Intel,DEV=0
> HDA Intel, CA0110 Digital
> IEC958 (S/PDIF) Digital Audio Output
> hdmi:CARD=Intel,DEV=0
> HDA Intel
> HDMI Audio Output
> null
> Discard all samples (playback) or generate zero samples (capture)
>
> /************ hwinfo --sound ***************/
>
> hwinfo --sound
> 10: PCI 500.0: 0403 Audio device
> [Created at pci.310]
> UDI: /org/freedesktop/Hal/devices/pci_1102_9
> Unique ID: Ddhb.YhraNp3EzIA
> Parent ID: YmUS.Ty6MHw35u4D
> SysFS ID: /devices/pci0000:00/0000:00:12.0/0000:04:00.0/0000:05:00.0
> SysFS BusID: 0000:05:00.0
> Hardware Class: sound
> Model: "Creative [SB X-Fi Xtreme Audio] CA0110-IBG"
> Vendor: pci 0x1102 "Creative Labs"
> Device: pci 0x0009 "[SB X-Fi Xtreme Audio] CA0110-IBG"
> SubVendor: pci 0x1102 "Creative Labs"
> SubDevice: pci 0x0018
> Driver: "HDA Intel"
> Driver Modules: "snd_hda_intel"
> Memory Range: 0xfebfc000-0xfebfffff (rw,non-prefetchable)
> IRQ: 18 (1144 events)
> Module Alias: "pci:v00001102d00000009sv00001102sd00000018bc04sc03i00"
> Driver Info #0:
> Driver Status: snd_hda_intel is active
> Driver Activation Cmd: "modprobe snd_hda_intel"
> Config Status: cfg=no, avail=yes, need=no, active=unknown
> Attached to: #11 (PCI bridge)
>
>
> /******* Installation of "sound-unstable-2.6.git" *******************/
>
> cd linux-2.6.25.10
> mv sound sound.org /* hide
> original sound directory */
> git clone
> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable-2.6.git
> ln -s sound-unstable-2.6.git sound
> cd include/
> mv sound/ sound.org /* rescue
> linux-2.6.26.3/include/sound */
> ln -s ../sound-unstable-2.6/include/sound/
> cd ..
> make xconfig
> make /*
> and it compiles fine */
>
>
> I appreciate any hints
Thanks for checking. It's a bit hard right now for me debugging this
since I've been (and will be) in a series of conferences.
Will check after returning.
One thing you can try is to add a delay in the codec communication
code. Try the patch below, for example.
thanks,
Takashi
diff --git a/sound/pci/hda/patch_ca0110.c b/sound/pci/hda/patch_ca0110.c
index adc8387..4e0c1f4 100644
--- a/sound/pci/hda/patch_ca0110.c
+++ b/sound/pci/hda/patch_ca0110.c
@@ -502,6 +502,8 @@ int patch_ca0110(struct hda_codec *codec)
return -ENOMEM;
codec->spec = spec;
+ codec->bus->needs_damn_long_delay = 1;
+
err = ca0110_parse_auto_config(codec);
if (err < 0)
goto error;
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user