Puppy 4.2.1 Dell Latitude Cpi D266XT Crystal 4237B Soundcard

Problems and successes with specific brands/models of computer audio hardware
Message
Author
brianh
Posts: 76
Joined: Tue 04 Aug 2009, 13:25

cport 0x210 Invalid

#21 Post by brianh »

Got an email directing me to
http://www.murga-linux.com/puppy/viewto ... 620#330620
so I tried cport=0x220 not 0x210. It (cport=0x220) was rejected as invalid in dmesg.
Brian

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#22 Post by tempestuous »

OK, then try the above command with "cport=0x210".

Code: Select all

modprobe snd-cs4236 port=0×530 cport=0×210 isapnp=0 irq=5 dma1=1 dma2=0
Also try without the dma2 value -

Code: Select all

modprobe snd-cs4236 port=0×530 cport=0×210 isapnp=0 irq=5 dma1=1

brianh
Posts: 76
Joined: Tue 04 Aug 2009, 13:25

modprobe ... isapnp=0

#23 Post by brianh »

Both modprobes gave the dmesg:
ALSA /usr/src/3rd-party-drivers/sound/alsa-driver-1.0.16/isa/cs423x/../../alsa-kernel/isa/cs423x/cs4236_lib.c:280: please, specify control port for CS4236+ chips.
What does isapnp=0 do?
Brian

brianh
Posts: 76
Joined: Tue 04 Aug 2009, 13:25

DMA2 Disabled?

#24 Post by brianh »

using
modprobe snd-cs4236 port=0x530 cport=0x210 isapnp=0 irq=5 dma1=1 dma2=0 mpu_port=0x330 mpu_irq=9
this is the output from alasconf -R; any idea why it shows DMA2 allocated at the end but disabled for 00:0f?
Brian
>>>>> PnP file: /sys/bus/pnp/devices/00:0f/resources
state = active
io 0x530-0x537
io 0x388-0x38b
io 0x220-0x22f
irq 5
dma 0
dma disabled
>>>>> PnP file: /sys/bus/pnp/devices/00:10/resources
state = active
io 0x210-0x217
>>>>> PnP file: /sys/bus/pnp/devices/00:11/resources
state = active
io 0x3f2-0x3f5
io 0x3f7-0x3f7
irq 6
dma 2
>>>>> Allocated dma channels:
0: CS4231 - 2
1: CS4231 - 1
2: floppy
4: cascade
>>>>> Allocated interrupt channels:
CPU0
0: 30755 XT-PIC-XT timer
1: 26 XT-PIC-XT i8042
2: 0 XT-PIC-XT cascade
3: 12 XT-PIC-XT axnet_cs
5: 0 XT-PIC-XT CS4231
6: 3 XT-PIC-XT floppy
8: 1 XT-PIC-XT rtc
9: 3 XT-PIC-XT MPU401 UART
11: 0 XT-PIC-XT yenta, yenta, uhci_hcd:usb1
12: 1323 XT-PIC-XT i8042
14: 1686 XT-PIC-XT ide0
NMI: 0
ERR: 0
Valid DMA channels: 3 5 6 7
Valid IRQ channels: 4 7 10 15

DavidEllis2
Posts: 15
Joined: Sun 09 Aug 2009, 20:09

#25 Post by DavidEllis2 »

Aitch:

Thanks for the response. At least I now know what I'm supposed to be looking for. Unfortunately I can't seem to find anything like it in ALSA. Could you provide a few more clues? (Its been twenty years since I last used UNIX and it was always a 2nd system even then.)

I'm pulling up the ALSA Sound Wizard in a full install of Puppy 4.2.1. All that seems to do is fail to detect the sound card and offer to search for legacy ISA. The list of legacy ISA does not include anything like a CS4205 or an Intel 8x0. (It fails to locate anything that will work.) I conclude that I need to download a driver for Intel 8x0 and put it somewhere so that the ALSA Sound Wizard can find and install it. Any step by step clues would be a huge help. (My real background used to be Digital VMS, briefly converted to UNIX before being polluted by MS. Hence I'm not that great at UNIX slang.)

-----

After starting this reply I find that my puppy has two files already on it. One is snd-intel8x0.ko in directory /lib/modules/2.6.25.16/kernelsound/pci/ and the other is snd-intel8x0m.ko in that same directory. Hence I conclude that I probably already have the driver that I need. I just do not know how to install it or make it active. Its just not showing up in the ALSA wizard.

I'm think some sort of manual setup is required. I did already find modprobe.conf with the following entries - I'm just not sure what (if anything) to change...

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.16 ---
alias snd-card-0 snd-sb16
alias sound-slot-0 snd-sb16
options snd-sb16 isapnp=0
# --- END: Generated by ALSACONF, do not edit. ---

Thanks in anticipation.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#26 Post by tempestuous »

brianh, you're close.
First, I would seriously consider upgrading your bios.
Go to http://support.dell.com/
then click on the "Download drivers,BIOS, and firmware updates" link at the bottom of the page,
Then "Choose a Model", "Laptops", "Latitude", "CPi"
and amongst the downloads listed you will find the latest "A12" bios, plus instructions.

Second, I think it's time to try other Puppy versions ... especially those with matched ALSA drivers and libraries.
I have commented on this issue before: it's sometimes critical to have matched drivers and libraries.
Puppy 4.2.x is a community effort, and I'm highly suspicious about what they have done with ALSA libraries. I strongly suggest you go back to the latest official Puppy 4.1 release -
http://distro.ibiblio.org/pub/linux/dis ... monkey.iso
This version of Puppy has matched ALSA v1.0.16rc2 drivers/libraries.

If still no success, go back to Puppy214R, which is still available here
http://214r.minipc.org/pup214R-1.01.iso
This has matched ALSA v1.0.12rc1 drivers/libraries.
The current Puppy214X development series is based on Puppy 214R, but be careful; again I'm suspicious about the technical sins which may have been committed ALSA-wise with the 214X series. So use the original.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#27 Post by tempestuous »

DavidEllis2,
I reiterate that your problem is unrelated to the problem of the original poster, and the subject of this thread.
If you do the courteous thing and start a new post I will offer a solution there.

brianh
Posts: 76
Joined: Tue 04 Aug 2009, 13:25

Success!!

#28 Post by brianh »

puppy-4.1.2-k2.6.25.16-seamonkey.iso did the trick with the following settings:
modprobe snd-cs4236 port=0x530 cport=0x210 isapnp=0 irq=5 dma1=0 dma2=3 mpu_port=0x330 mpu_irq=9
also needed to turn the Master and PCM alsaconf controls right up to the top of the red. I was surprised the sound goes to nothing when they're set much lower than max - I suppose it's just possible one of the dozens of earlier combinations also worked but I didn't hear.
I'd already upgraded the BIOS to A12 before I read your post but it seemed to make no difference. By the way it initially wouldn't upgrade the BIOS because the machine has no battery - some Google research suggested adding the parameter /forceit which worked.
Thanks very much for your help.
Brian

brianh
Posts: 76
Joined: Tue 04 Aug 2009, 13:25

A couple more points

#29 Post by brianh »

By the way alasconf -R still shows DMA2 allocated at the end but disabled for 00:0f. A red herring then...
Only slight irritant with this distro is it doesn't rememebr the network setup - have to go through the conf every time I boot.
Brian

brianh
Posts: 76
Joined: Tue 04 Aug 2009, 13:25

...and a few more points

#30 Post by brianh »

For info, I don't now have any extra boot parameters such as pci=biosirq or acpi=off in menu.list to turn off pnp etc, or any blacklist statements in modprobe.conf to exclude cs4232.
Brian

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#31 Post by tempestuous »

Well it's good that you have success of some sorts.
It would be interesting to know if your successful settings work OK with Puppy 4.2.1.
brianh wrote:dma1=0 dma2=3
Mmm. That's somewhat unconventional.
brianh wrote:alsaconf -R still shows DMA2 allocated at the end but disabled for 00:0f
More evidence to suggest that all is not well with your laptop's hardware resource allocation under Linux.
brianh wrote:needed to turn the Master and PCM alsaconf controls right up to the top of the red
With all your various attempts at setup, I suspect this could be due to a messed-up ALSA configuration file: /etc/asound.state
possibly caused by the different configuration attempts.

If you have a frugal installation, boot afresh with the "pfix=ram" boot parameter, then erase your pupsave file, then reboot creating a new pupsave file.

brianh
Posts: 76
Joined: Tue 04 Aug 2009, 13:25

Network Parameters not saved

#32 Post by brianh »

To work around this I creted a text file containing:
sleep1
dhcpcd eth0

(NB no newline at end)
Then
Document >Set Filetype>Scripting Languages >Shell script file

Saved the file as /root/startup/startnetwork
In file manager right click on the file then:
Permissions>Command: Make executable / Searchable>yes

brianh
Posts: 76
Joined: Tue 04 Aug 2009, 13:25

Further Research

#33 Post by brianh »

Thanks for the suggestions tempestuous. I'll let you know if I take this any further - for now I think I'll get on with other things while I enjoy Spotify through the Dell which is now acting as a dedicated server connected to the hifi as I'd hoped.
Thanks again for all the help.
Brian

brianh
Posts: 76
Joined: Tue 04 Aug 2009, 13:25

ALSA Sound Levels

#34 Post by brianh »

Re:
'With all your various attempts at setup, I suspect this could be due to a messed-up ALSA configuration file: /etc/asound.state
possibly caused by the different configuration attempts. '

I don't think it can be this as I reformatted the partition before I installed puppy-4.1.2-k2.6.25.16-seamonkey.iso so it was a clean install and didn't need to do any experimentation after that to get it working - just added the single line to rc.local:

modprobe snd-cs4236 index=0 id=CARD_0 port=0x530 cport=0x210 irq=5 dma1=0 dma2=3 mpu_port=0x330 isapnp=0 fm_port=0x388 mpu_irq=9

Brian

aclowery
Posts: 2
Joined: Fri 28 Aug 2009, 15:36

Solved- dell cpi d266xt sound now seems to work.

#35 Post by aclowery »

I have sound- and with the latest puppy version, 4.21.- and with bios a-11! Not sure exactly why - but it works. Thanks to Brianh for the help- and all on the thread!

First, adjust default settings in Bios (a11):

1. Page 2 Docking IRQ [irq12]
2. Universal connect [disabled]
3. Page 3 Primary Video [system]
4. Page 4 Serial [com1]
5. infrared [disabled]
6. Par Port [ecp]
7. Audio [Half duplex]

Second, add this line to end (with a new line enter at end) to /etc/rc.d/rc.local:

modprobe snd-cs4236 index=0 id=CARD_0 port=0x530 cport=0x210 irq=5 dma1=0 dma2=3 mpu_port=0x330 isapnp=0 fm_port=0x388 mpu_irq=9

Third:
DO NOT modify modprobe.conf or run alsaconfig wizard after a clean install.

Fourth:
Open alsa mixer and raise master and PCM all the way up to 100%

One minor bug still there, not able to adjust volume by left clicking the speaker- but if you right click the speaker- it works! Also it may take a minute after bootup to play a mp3. If you don't wait long enough, it will start then close the player in about 10 seconds.

Note, Please let us all know if you have an update, particularly in bios requirements.

Art

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#36 Post by Aitch »

Solution using Puppy 4.3 here

http://www.murga-linux.com/puppy/viewtopic.php?t=46290

Aitch :)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#37 Post by greengeek »

just getting this onto my watchlist...

Post Reply