Backported sbxfi driver (UNTESTED!)
Quoted 6 lines
Hi,
$SUBJECT is now on my sound-unstable git tree:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound->unstable-2.6.git
together with other experimental patches.
Just wanted to help out with testing stuff.
I compiled your snapshot on my gentoo Linux x86_64
Compilation, installation and loading the drivers went smooth.
And, yes, there is sound...
Here some infos:
blub@freax $ aplay -l
**** List of PLAYBACK Hardware Devices **** card 0: ORIG [SB XFi (ORIG)], device 0: SB-XFi [SB-XFi]
Subdevices: 1/1
Subdevice #0: subdevice #0
blub@freax $ lspci -v
01:00.0 Multimedia audio controller: Creative Labs SB X-Fi
Subsystem: Creative Labs X-Fi Platinum
Flags: bus master, medium devsel, latency 64, IRQ 21 I/O ports at 8c00 [size=32]
Memory at eb800000 (64-bit, non-prefetchable) [size=2M] Memory at e4000000 (64-bit, non-prefetchable) [size=64M]
Capabilities: [40] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+
Queue=0/0 Enable-
Kernel driver in use: SB-XFi
root@freax $ lsmod | grep snd
snd_pcm_oss 40640 0 snd_mixer_oss 17224 1 snd_pcm_oss snd_seq_oss 33168 0 snd_seq_midi_event 9864 1 snd_seq_oss snd_seq 54056 4 snd_seq_oss,snd_seq_midi_event snd_seq_device 10076 2 snd_seq_oss,snd_seq snd_hda_intel 505276 0 snd_hwdep 10320 1 snd_hda_intel snd_sbxfi 23132 1 snd_pcm 81328 3 snd_pcm_oss,snd_hda_intel,snd_sbxfi snd_timer 24160 2 snd_seq,snd_pcm snd 65128 12 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hwdep,snd_sbxfi,snd_pcm,snd_timer soundcore 10208 1 snd snd_page_alloc 11664 3 snd_hda_intel,snd_sbxfi,snd_pcm
root@freax $ emerge --info
Portage 2.1.4.5 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-unpatched x86_64)
So now the funny part:
I was testing a few samplerates:
Used a 1 kHz sine, 0 dBFS, 16 bit mono wave file, 96 kHz sample rate and rsampled it with sox:
for i in 88200 50400 50000 48000 47250 44100 44056 32000 22050 11025 8000 ; do sox 0_16_96000.wav -r ${i} 0_16_${i}.wav ; done
and played them with aplay:
for i in 96000 88200 50400 50000 48000 47250 44100 44056 32000 22050 11025 8000 ; do echo "Now playing 0_16_${i}.wav" ; aplay 0_16_${i}.wav ; echo "DONE" ; done
96000 --> O.K.
88200 --> No Sound
50400 --> No Sound
50000 --> No Sound
48000 --> O.K.
47250 --> No Sound
44100 --> No Sound
44056 --> No Sound
32000 --> No Sound
22050 --> SYSTEM FREEZ
Playing WAVE '0_16_22050.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
11025 --> SYSTEM FREEZ
Playing WAVE '0_16_11025.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono
8000 --> No Sound
Let me know if I can help out testing some more stuff
kind regards
Bjoern
At Wed, 15 Oct 2008 23:57:05 +0200,
Quoted 9 lines · Bjoern Olausson
So now the funny part:
I was testing a few samplerates:
Used a 1 kHz sine, 0 dBFS, 16 bit mono wave file, 96 kHz sample rate and rsampled it with sox:
for i in 88200 50400 50000 48000 47250 44100 44056 32000 22050 11025 8000 ; do sox 0_16_96000.wav -r ${i} 0_16_${i}.wav ; done
Quoted 8 lines
and played them with aplay:
for i in 96000 88200 50400 50000 48000 47250 44100 44056 32000 22050 11025 8000 ; do echo "Now playing 0_16_${i}.wav" ; aplay 0_16_${i}.wav ; echo "DONE" ; done
96000 --> O.K.
Does "O.K." mean really OK, or with any issue? Other people reported about the glitch sounds, for example.
Quoted 4 lines
88200 --> No Sound
50400 --> No Sound
50000 --> No Sound
48000 --> O.K.
The same question.
Quoted 7 lines
47250 --> No Sound
44100 --> No Sound
44056 --> No Sound
32000 --> No Sound22050 --> SYSTEM FREEZ
Playing WAVE '0_16_22050.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Does hang-up this happen with stereo samples, too? Also, any chance to get Oops messages?
Quoted 8 lines
11025 --> SYSTEM FREEZ
Playing WAVE '0_16_11025.wav' : Signed 16 bit Little Endian, Rate 11025 Hz, Mono8000 --> No Sound
Let me know if I can help out testing some more stuff
Try to build with XXX_48K_ONLY defined in sbxfi.c. And try 48kHz samples (and others).
Also, please show the output of lspci -nv to see the PCI SSID.
thanks,
Takashi
A message that is not in the archive (sent off-list or not yet received): [email protected]
I found a site with a large range of files:
http://bellatrix.ece.mcgill.ca/Documents/AudioFormats/WAVE/Samples.html
aplay plays all files it is capable to decode. No crackel, no noise, just fine.
glass.wav
Signed 16 bit Little Endian, Rate 8000 Hz, Mono
M1F1-int16-AFsp.wav
Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
M1F1-int24-AFsp.wav
Signed 24 bit Little Endian in 3bytes, Rate 8000 Hz, Stereo
M1F1-int32-AFsp.wav
Signed 32 bit Little Endian, Rate 8000 Hz, Stereo
M1F1-uint8-AFsp.wav
Unsigned 8 bit, Rate 8000 Hz, Stereo
stereol.wav
Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
Utopia_Critical_Stop.wav
Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Thought when I try to play the first one with mplayer ---> FREEZZZZZ Spiele glass.wav.
Audio file-Dateiformat erkannt!
==========================================================================
Öffne Audiodecoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Ausgewählter Audiocodec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Amarok with backend ALSA plays all files it can decode without problems.
All Signed 16 bit Little Endian, Rate 8000 to 96000 Hz, Stereo do work (with the same oszilating noise described in my previous post with the mono files [I just joned two to get stereo])
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Thu, 16 Oct 2008 22:07:02 +0200,
Quoted 27 lines · Bjoern Olausson
I found a site with a large range of files:
http://bellatrix.ece.mcgill.ca/Documents/AudioFormats/WAVE/Samples.htmlaplay plays all files it is capable to decode. No crackel, no noise, just fine.
glass.wav
Signed 16 bit Little Endian, Rate 8000 Hz, MonoM1F1-int16-AFsp.wav
Signed 16 bit Little Endian, Rate 8000 Hz, StereoM1F1-int24-AFsp.wav
Signed 24 bit Little Endian in 3bytes, Rate 8000 Hz, StereoM1F1-int32-AFsp.wav
Signed 32 bit Little Endian, Rate 8000 Hz, StereoM1F1-uint8-AFsp.wav
Unsigned 8 bit, Rate 8000 Hz, Stereostereol.wav
Signed 16 bit Little Endian, Rate 22050 Hz, StereoUtopia_Critical_Stop.wav
Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Quoted 8 lines
Thought when I try to play the first one with mplayer ---> FREEZZZZZ Spiele glass.wav.
Audio file-Dateiformat erkannt!
==========================================================================
Öffne Audiodecoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000) Ausgewählter Audiocodec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Then likely a problem with mplayer. Can you check which parameters (period_size, buffer_size) does mplayer use, and try to pass to aplay via --period-size and --buffer-size options?
Quoted 5 lines
Amarok with backend ALSA plays all files it can decode without problems.
All Signed 16 bit Little Endian, Rate 8000 to 96000 Hz, Stereo do work (with the same oszilating noise described in my previous post with the mono files [I just joned two to get stereo])
Hm, mono isn't supported by this hardware, so alsa-lib simply duplicates the signals to the stereo. There shouldn't be any difference in that manner...
Takashi