From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Emu10k1x driver
Date: Fri, 14 May 2004 18:14:47 +0100 [thread overview]
Message-ID: <40A4FE87.2030001@superbug.demon.co.uk> (raw)
In-Reply-To: <s5hwu3fkkww.wl@alsa2.suse.de>
Takashi Iwai wrote:
> At Wed, 12 May 2004 03:16:14 +0100,
> James Courtier-Dutton wrote:
>
>>fmoraes74@netzero.net wrote:
>>
>>>Here's the first pass at the driver. I've tested it mainly with XMMS with the ALSA output plugin.
>>>
>>>alsaplayer didn't work, not sure why. I've also tested with the pcm test in alsa-lib which seems to be jumping, so that's another problem.
>>>
>>>I've removed the joystick support for now, but the only reason I added it was because the intel8x0.c driver has joystick support in it.
>>>
>>>Enjoy,
>>>
>>>Francisco
>>>
>>>
>>
>>I would like to add some information that might help people modifying
>>this for the Audigy LS.
>>
>>The outputs for the card work in 2 modes.
>>1) Probably analogue on the output jacks.
>>snd_emu10k1x_ptr_write(chip, 0x41, 0, 0x70f);
>>snd_emu10k1x_ptr_write(chip, 0x45, 0, 0);
>
>
> it's already in emu10k1x.c.
>
>
>>2) Probably digital spdif on the output jacks.
>>snd_emu10k1x_ptr_write(chip, 0x41, 0, 0x1000f);
>>snd_emu10k1x_ptr_write(chip, 0x45, 0, 0x700);
>
>
> it's not.
Those (1) and (2) should work on bother the LS and the Dell OEM.
>
>
>>To enable this driver loading for the Audigy LS, have the following PCI IDs.
>>static struct pci_device_id snd_emu10k1x_ids[] = {
>> { 0x1102, 0x0006, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Dell OEM
>>version (EMU10K1X) */
>> { 0x1102, 0x0007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Audigy LS */
>> { 0, }
>>};
>
>
> so, just adding the pci id for audigy LS would suffice at least for
> analog output?
I don't think so, because of all the extra code that will be needed in
the interrupt routines.
>
>
>>Other information: -
>>value = snd_emu10k1x_ptr_read(chip, 0x74, 0);
>>printk("Some special chip ID = %04x\n",value);
>
>
> what value on Dell OEM?
I don't know. Might be worth trying it on the Audigy 2 as well.
>
>
>>Further additions to the snd_emu10k1x_create() function, after the lines
>>snd_emu10k1x_ptr_write(chip, 0x41, 0, 0x70f); // ???
>>snd_emu10k1x_ptr_write(chip, 0x45, 0, 0);
>
>
> hmm...
>
>
>>snd_emu10k1x_ptr_write(chip, 0x65, 0, 0x1000);
>>snd_emu10k1x_ptr_write(chip, 0x72, 0, 0xf0f003f);
>
>
> routing?
>
>
>>snd_emu10k1x_ptr_write(chip, 0x71, 0, 0xf0000000);
>>snd_emu10k1x_ptr_write(chip, 0x61, 0, 0x0);
>>snd_emu10k1x_ptr_write(chip, 0x62, 0, 0x0);
>>
>>The AudigyLS also seems to use the emu10k1x_ptr 0x75 a lot in interrupt
>>routines, but the Dell OEM one does not.
>
>
> what value is supposed to be on 0x75?
I have no idea. But some trial and error with some actual hardware
should help.
>
>
> Takashi
>
>
Takashi,
I am waiting for someone to donate an Audigy LS to me. I will then be
able to build a driver for it.
It seems that the Audigy LS is quite a lot different from the Dell OEM,
so I will probably create a new .c file for it.
Maybe at a later stage, when everything works well, we might decide to
join the two drivers.
Also, if we get the Audigy LS working, it might shed some light on the
P16 or P17 chip details in the Audigy 2.
For features like high sample rates etc.
I have had one offer so far for an Audigy LS, so, if it arrives, I will
start work on it.
Cheers
James
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
next prev parent reply other threads:[~2004-05-14 17:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-12 0:31 Emu10k1x driver fmoraes74
2004-05-12 2:16 ` James Courtier-Dutton
2004-05-12 2:46 ` Francisco Moraes
2004-05-14 16:55 ` Takashi Iwai
2004-05-14 17:14 ` James Courtier-Dutton [this message]
2004-05-14 17:32 ` Takashi Iwai
2004-05-14 18:48 ` James Courtier-Dutton
2004-05-12 11:05 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2004-05-12 18:36 fmoraes74
2004-05-13 13:17 ` Takashi Iwai
[not found] <20040514.045055.28422.197543@webmail10.nyc.untd.com>
2004-05-14 13:35 ` Takashi Iwai
2004-05-14 23:49 ` Francisco Moraes
2004-05-14 17:02 fmoraes74
2004-05-15 1:30 fmoraes74
2004-05-15 13:18 ` Takashi Iwai
2004-05-15 21:30 ` Francisco Moraes
2004-05-16 14:59 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40A4FE87.2030001@superbug.demon.co.uk \
--to=james@superbug.demon.co.uk \
--cc=alsa-devel@lists.sourceforge.net \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.