All of lore.kernel.org
 help / color / mirror / Atom feed
* Backported sbxfi driver (UNTESTED!)
@ 2008-10-09 18:02 Takashi Iwai
  2008-10-09 18:12 ` Brendan Pike
                   ` (7 more replies)
  0 siblings, 8 replies; 207+ messages in thread
From: Takashi Iwai @ 2008-10-09 18:02 UTC (permalink / raw)
  To: alsa-devel

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.

If you're using 2.6.27-rc* git tree, pull the master branch of the
tree above into yours, and run make oldconfig.  That is,
    % cd /your/git-tree
    % git pull git://...../sound-unstable-2.6.git master

If you are not using 2.6.27-rc*, or not familiar with git, you can try
alsa-driver-unstable snapshot tarball available at
    ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/
Run configure, make and make install as usual ALSA-driver tarball.

(I didn't check whether the tarball correctly includes the sbxfi
 stuff.  It should have been generated automatically.  If not, wait
 for a while.  If it still doesn't include sbxfi code, please report.
 I'll fix it tomorrow morning.)

The driver is built only for 2.6.26 or later.  If you have an older
kernel, edit alsa-driver*/kconfig-vers and change the version of
CONFIG_SND_SBXFI to 2.6.24 or whatever you want.  Then run
./gitcompile, instead of configure in this case to update the
configure script.

**NOTE**
The driver is totally untested.  It's just compiled without errors,
but not reviewed after a quick writing.  So, don't expect it ever runs
at the first try.  A crash is highly possible.

There are some build conditions found in sound/pci/sbxfi/sbxfi.c,
starting with XXX_*.  You can change it if you want.  As default, it's
for non-fullduplex but accept different rates.  Not sure whether this
works at all.

Any test- (and better debugging-) reports are appreciated.


thanks,

Takashi

^ permalink raw reply	[flat|nested] 207+ messages in thread
* Re: Backported sbxfi driver (UNTESTED!)
@ 2008-10-12 12:53 Alexey Bazhin
  2008-10-13  2:03 ` Takashi Iwai
  0 siblings, 1 reply; 207+ messages in thread
From: Alexey Bazhin @ 2008-10-12 12:53 UTC (permalink / raw)
  To: alsa-devel

Hi,

I have just compiled driver from git and try to run it. My card is pci:
1102:0005 Multimedia audio controller: Creative Labs SB X-Fi

I got following:

root@mayonaka:~# modprobe snd-sbxfi
root@mayonaka:~# speaker-test -c 2 -r 96000 -t sine

speaker-test 1.0.15

Playback device is default
Stream parameters are 96000Hz, S16_LE, 2 channels
Sine wave rate is 440.0000Hz
Rate set to 96000Hz (requested 96000Hz)
[  262.522739] XFi DAC reset timeout

Period size ran[  262.564029] XFi DAC reset timeout
ge from 32 to 16[  262.620275] XFi DAC reset timeout
384
Using max b[  262.676529] XFi DAC reset timeout
uffer size 16384[  262.732784] XFi DAC reset timeout

Periods = 4
w[  262.789038] XFi DAC reset timeout
as set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
[  327.491997] BUG: soft lockup - CPU#0 stuck for 61s! [swapper:0]
[  327.492001] Kernel panic - not syncing: softlockup: hung tasks

and i did hear the sine on the left channel. Hope it helps...

-- 
 Alexey Bazhin
  mailto:baz@irc.msk.ru
  ICQ 125125882

^ permalink raw reply	[flat|nested] 207+ messages in thread
* Backported sbxfi driver (UNTESTED!)
@ 2008-10-15 21:57 Bjoern Olausson
  2008-10-16  8:58 ` Takashi Iwai
  0 siblings, 1 reply; 207+ messages in thread
From: Bjoern Olausson @ 2008-10-15 21:57 UTC (permalink / raw)
  To: alsa-devel

>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

^ permalink raw reply	[flat|nested] 207+ messages in thread
* Backported sbxfi driver (UNTESTED!)
@ 2008-11-10  0:26 Romain
  0 siblings, 0 replies; 207+ messages in thread
From: Romain @ 2008-11-10  0:26 UTC (permalink / raw)
  To: alsa-devel

Hi,

I've tested the sbxfi driver and it works great on my setup.

Had little problems before getting it running :
i had to comment out the snd_printk stuff, otherwise the module wouldn't
load (snd_printk* symbols not found, in dmesg)
This was probably not the cleanest way to deal but  it's just debug messages
and i'm new wrt kernel driver hacking.
I also had to disable my onboard audio in BIOS, otherwise the X-Fi would not
get picked up.

i'm using Fedora 9 with Linux 2.6.26.6-79.fc9.i686 kernel (standard supply
from fedora repos),and pulseaudio
I'm using with standard 2.1 jack output, i do not yet own home cinema
speakers so i couldn't test all the cabling options.

Thanks for this great work,

Best Regards,
Romain.

^ permalink raw reply	[flat|nested] 207+ messages in thread

end of thread, other threads:[~2009-06-12 16:46 UTC | newest]

Thread overview: 207+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-09 18:02 Backported sbxfi driver (UNTESTED!) Takashi Iwai
2008-10-09 18:12 ` Brendan Pike
2008-10-09 18:25 ` Ted T. Logian
2008-10-09 18:25 ` William Pitcock
2008-10-09 18:49 ` Ted T. Logian
2008-10-09 19:50 ` James Courtier-Dutton
2008-10-10  6:02   ` Takashi Iwai
2008-10-09 20:03 ` Ted T. Logian
2008-10-09 20:17 ` Ted T. Logian
2008-10-10  6:01   ` Takashi Iwai
2008-10-10  6:26     ` Ted T. Logian
2008-10-10  6:46       ` Takashi Iwai
2008-10-10 18:17         ` William Pitcock
2008-10-11 16:01           ` Takashi Iwai
2008-10-11 17:36             ` William Pitcock
2008-10-11 17:39               ` William Pitcock
2008-10-11 17:41               ` Takashi Iwai
2008-10-11 17:43                 ` Takashi Iwai
2008-10-11 18:04                 ` William Pitcock
2008-10-12 19:34                   ` Takashi Iwai
     [not found]                     ` <e4b753d00810121816i133141d5te6a4d638044f3875@mail.gmail.com>
2008-10-13  2:08                       ` Takashi Iwai
2008-10-13  9:51                     ` Takashi Iwai
     [not found]         ` <6d00fe310810100939h6cd61e0cg7817c7f54f6261f6@mail.gmail.com>
2008-10-10 16:41           ` Fwd: " The Source
2008-10-11 15:47           ` Takashi Iwai
2008-10-11 16:03             ` Ted T. Logian
2008-10-11 17:32               ` Takashi Iwai
2008-10-12  8:41                 ` Vedran Miletić
2008-10-12  8:48                   ` James Courtier-Dutton
2008-10-12  9:43                     ` The Source
2008-10-12  8:44                 ` James Courtier-Dutton
2008-10-13  9:52                   ` Takashi Iwai
2008-10-11 16:28             ` The Source
2008-10-11 17:34               ` Takashi Iwai
2009-06-10  8:39       ` problems with fedora 11 and pulseaudio and svn x-fi driver Ted T. Logan
2009-06-10  8:52         ` Ted T. Logan
2009-06-10  9:29           ` Takashi Iwai
2009-06-10 16:23             ` Ted T. Logan
2009-06-10 16:48             ` Ted T. Logan
2009-06-11 14:48             ` Ted T. Logan
2009-06-12 16:46             ` "ticks" with latest " Ted T. Logan
2008-10-16 12:03 ` Backported sbxfi driver (UNTESTED!) Jan Wolf
2008-10-16 12:33   ` Takashi Iwai
2008-10-16 12:56     ` Xarteras
2008-10-16 13:36       ` The Source
2008-10-16 13:48         ` Takashi Iwai
2008-10-16 14:15           ` The Source
2008-10-16 14:18             ` Takashi Iwai
2008-10-16 14:41               ` The Source
2008-10-16 14:42                 ` Takashi Iwai
2008-10-16 14:51                   ` The Source
2008-10-16 15:00                   ` The Source
2008-10-16 15:04                     ` Takashi Iwai
     [not found]                       ` <48F75892.8000209@gmail.com>
2008-10-16 15:15                         ` Takashi Iwai
2008-10-16 17:53                           ` Bjoern Olausson
2008-10-16 18:02                             ` The Source
2008-10-16 18:18                           ` The Source
2008-10-17  6:17                             ` Takashi Iwai
2008-10-17  6:26                               ` The Source
2008-10-17  6:39                                 ` Takashi Iwai
2008-10-17  7:16                                   ` The Source
2008-10-17  8:17                                   ` The Source
2008-10-17  9:00                                   ` Xarteras
2008-10-17  9:17                                     ` The Source
2008-10-17  9:25                                       ` Takashi Iwai
2008-10-17  9:23                                     ` Takashi Iwai
2008-10-17  9:50                                       ` Xarteras
2008-10-17 10:00                                         ` Tony Vroon
2008-10-17 10:35                                           ` Xarteras
2008-10-17 15:33                                             ` Bjoern Olausson
2008-10-17  7:57                               ` The Source
2008-10-17  9:35                                 ` Takashi Iwai
2008-10-17  9:58                                   ` The Source
2008-10-17  9:59                                     ` Takashi Iwai
2008-10-17 10:01                                       ` The Source
2008-10-17 10:04                                         ` Takashi Iwai
     [not found]                                           ` <48F86606.9070108@gmail.com>
2008-10-17 10:27                                             ` Takashi Iwai
2008-10-17 20:48                                               ` William Pitcock
2008-10-18 10:06                                               ` Xarteras
2008-10-18 15:06                                                 ` Takashi Iwai
2008-10-18 17:10                                                   ` William Pitcock
2008-10-18 17:17                                                     ` William Pitcock
2008-10-19  7:59                                                       ` Takashi Iwai
2008-10-19 18:07                                                         ` Bjoern Olausson
2008-10-19 19:47                                                           ` William Pitcock
2008-10-16 21:29           ` Xarteras
2008-10-17 18:16             ` James Courtier-Dutton
2008-10-22 15:24           ` Bjoern Olausson
2008-10-22 15:26             ` Takashi Iwai
2008-10-22 16:07               ` Bjoern Olausson
2008-10-22 16:24                 ` Bjoern Olausson
2008-10-22 19:25                   ` The Source
2008-10-23  5:40                     ` Takashi Iwai
2008-10-23 11:46                       ` Bjoern Olausson
2008-10-23 11:53                         ` Jason Harvey
2008-10-23 13:56                           ` Takashi Iwai
2008-10-23 12:45                             ` Jason Harvey
2008-10-23 13:07                               ` Bjoern Olausson
2008-10-23 13:21                                 ` Jason Harvey
2008-10-23 15:54                               ` Takashi Iwai
2008-10-23 14:23                                 ` Jason Harvey
2008-10-23 17:07                                   ` Takashi Iwai
2008-10-23 17:15                                     ` Takashi Iwai
2008-10-23 15:37                                       ` Jason Harvey
2008-10-23 15:40                                         ` Bjoern Olausson
2008-10-23 17:44                                         ` Takashi Iwai
2008-10-23 17:49                                           ` Takashi Iwai
2008-10-23 16:23                                             ` Jason Harvey
2008-10-23 19:14                                               ` Takashi Iwai
2008-10-23 17:32                                                 ` Jason Harvey
2008-10-23 21:30                                                   ` Takashi Iwai
2008-10-23 20:17                                                     ` Jason Harvey
2008-10-24  8:40                                                       ` Takashi Iwai
2008-10-24  7:56                                                         ` Jason Harvey
2008-10-24 10:21                                                           ` Takashi Iwai
2008-10-24  8:50                                                             ` Jason Harvey
2008-10-25 13:06                                                             ` Backported sbxfi driver, possible fix Thomas Scheunemann
2008-10-25 16:05                                                               ` Takashi Iwai
2008-10-25 19:42                                                                 ` Thomas Scheunemann
2008-10-25 19:59                                                                   ` Takashi Iwai
2008-10-25 20:40                                                                     ` Jason Harvey
2008-10-25 21:57                                                                       ` Bjoern Olausson
2008-10-26  6:32                                                                         ` The Source
2008-10-26  8:23                                                                           ` Takashi Iwai
2008-10-26  9:11                                                                             ` The Source
2008-10-26  9:17                                                                             ` The Source
2008-10-26  6:45                                                                         ` The Source
2008-10-26  6:56                                                                         ` The Source
2008-10-26  7:22                                                                           ` The Source
2008-10-26  8:21                                                                         ` Takashi Iwai
2008-10-27  5:15                                                                           ` Alexander E. Patrakov
2008-10-27  5:32                                                                             ` The Source
2008-10-27  6:28                                                                               ` Takashi Iwai
2008-10-27  6:34                                                                                 ` The Source
2008-10-27  6:39                                                                                   ` Takashi Iwai
2008-10-28  0:10                                                                                 ` Bjoern Olausson
2008-10-28  7:14                                                                                   ` Takashi Iwai
2008-10-28 13:48                                                                                     ` Bjoern Olausson
2008-10-28 14:12                                                                                       ` Takashi Iwai
2008-10-30 10:46                                                                                         ` Bjoern Olausson
2008-10-30 11:05                                                                                           ` Bjoern Olausson
2008-10-30 11:07                                                                                             ` Takashi Iwai
2008-10-30 12:25                                                                                               ` Bjoern Olausson
2008-10-28  6:59                                                                                 ` Takashi Iwai
2008-10-27  6:36                                                                             ` Takashi Iwai
2008-10-27 20:08                                                                             ` James Courtier-Dutton
2008-10-28  4:44                                                                               ` Alexander E. Patrakov
2008-10-28  9:31                                                                               ` Takashi Iwai
2008-10-28 10:53                                                                               ` Vedran Miletić
2008-10-29  8:38                                                                               ` Pavel Hofman
2008-10-26  8:16                                                                       ` Takashi Iwai
2008-10-26  8:45                                                                         ` Backported sbxfi driver. Pulse works! Jason Harvey
2008-10-23 17:26                                       ` Backported sbxfi driver (UNTESTED!) Takashi Iwai
2008-10-23 15:31                                         ` Jason Harvey
2008-10-23 17:41                                           ` Takashi Iwai
2008-10-23 14:48                                 ` Jason Harvey
2008-10-23 13:54                         ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2008-10-12 12:53 Alexey Bazhin
2008-10-13  2:03 ` Takashi Iwai
2008-10-13 12:58   ` Alexey Bazhin
2008-10-13 13:18     ` Takashi Iwai
2008-10-13 14:33       ` The Source
2008-10-13 14:56         ` Takashi Iwai
2008-10-13 15:43           ` Takashi Iwai
2008-10-13 16:02             ` Takashi Iwai
2008-10-13 16:05               ` Takashi Iwai
2008-10-13 19:21                 ` Alexey Bazhin
2008-10-14  5:17                   ` The Source
2008-10-14  5:41                     ` Takashi Iwai
2008-10-14  6:45                   ` Takashi Iwai
2008-10-14  7:23                     ` The Source
2008-10-14  7:40                       ` Takashi Iwai
2008-10-14  7:58                         ` The Source
2008-10-14  8:14                           ` Takashi Iwai
2008-10-14  8:13                     ` Alexey Bazhin
2008-10-14  8:48                     ` The Source
2008-10-14  8:55                       ` Takashi Iwai
2008-10-14  8:55                         ` The Source
2008-10-14  9:07                           ` Takashi Iwai
2008-10-14  9:17                     ` The Source
2008-10-14 10:52                       ` Takashi Iwai
2008-10-14 11:03                         ` Takashi Iwai
2008-10-14 14:11                           ` The Source
2008-10-14 15:32                             ` Takashi Iwai
2008-10-14 16:22                               ` Vedran Miletić
2008-10-14 16:25                                 ` Takashi Iwai
2008-10-14 11:24                         ` The Source
2008-10-15  6:38                           ` Takashi Iwai
2008-10-15  7:16                             ` The Source
2008-10-15  7:36                               ` Takashi Iwai
     [not found]                                 ` <48F59FF4.20800@gmail.com>
2008-10-15  7:54                                   ` Takashi Iwai
2008-10-15  8:14                                     ` The Source
2008-10-15  9:07                                       ` Takashi Iwai
2008-10-15 12:34                                         ` Alexey Bazhin
2008-10-14 20:35                     ` Alexey Bazhin
2008-10-15  6:30                       ` Takashi Iwai
2008-10-15  8:26                         ` Alexey Bazhin
2008-10-15  9:02                           ` Takashi Iwai
2008-10-15 18:54                             ` Alexey Bazhin
2008-10-16 10:03                               ` Takashi Iwai
2008-10-16 10:46                               ` Takashi Iwai
2008-10-16 11:09                                 ` Alexey Bazhin
2008-10-16 11:12                                   ` Takashi Iwai
2008-10-15 21:57 Bjoern Olausson
2008-10-16  8:58 ` Takashi Iwai
     [not found]   ` <5501535d0810161130i7e3fa4c2hbe267ba2cbb15c00@mail.gmail.com>
2008-10-16 20:07     ` Bjoern Olausson
2008-10-17  6:21       ` Takashi Iwai
2008-11-10  0:26 Romain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.