For Ubuntu 8.10 the sound issue (guide with help of all the posts I read over the internet):
Go to
http://www.alsa-project.org/main/index.php/Main_PageDownload alsa-driver-1.0.19
ftp://ftp.alsa-project.org/pub/driver/a ... 19.tar.bz2Save it on desktop.
Open the terminal, and do the command which takes you to the place where the downloaded alsa is (the desktop, if you downloaded it there).
It starts with
cd
and the path.
E.g. cd /home/x/Desktop
Afterwards, do this command, so as to extract the downloaded alsa archive.
tar -xvjf alsa-driver-1.x.xx.tar.bz2
Then, on desktop you'll see a new folder with alsa driver.
Enter the folder with the click of the mouse to this destination:
alsa-kernel/pci/hda/patch_via.c
Change code
static int patch_vt1708(struct hda_codec *codec)
{
struct via_spec *spec;
int err;
/* create a codec specific record */
spec = kcalloc(1, sizeof(*spec), GFP_KERNEL);
if (spec == NULL)
return -ENOMEM;
codec->spec = spec;
/* automatic parse from the BIOS config */
err = vt1708_parse_auto_config(codec);
if (err < 0) {
via_free(codec);
return err;
} else if (!err) {
printk(KERN_INFO "hda_codec: Cannot set up configuration "
"from BIOS. Using genenic mode...\n");
}
spec->stream_name_analog = "VT1708 Analog";
spec->stream_analog_playback = &vt1708_pcm_analog_playback;
spec->stream_analog_capture = &vt1708_pcm_analog_capture;
spec->stream_name_digital = "VT1708 Digital";
spec->stream_digital_playback = &vt1708_pcm_digital_playback;
spec->stream_digital_capture = &vt1708_pcm_digital_capture;
if (!spec->adc_nids && spec->input_mux) {
spec->adc_nids = vt1708_adc_nids;
spec->num_adc_nids = ARRAY_SIZE(vt1708_adc_nids);
spec->mixers[spec->num_mixers] = vt1708_capture_mixer;
spec->num_mixers++;
}
codec->patch_ops = via_patch_ops;
codec->patch_ops.init = via_auto_init;
#ifdef CONFIG_SND_HDA_POWER_SAVE
spec->loopback.amplist = vt1708_loopbacks;
#endif
return 0;
}
with
static int patch_vt1708(struct hda_codec *codec)
{
unsigned int pin_hp;
struct via_spec *spec;
int err;
/* create a codec specific record */
spec = kcalloc(1, sizeof(*spec), GFP_KERNEL);
if (spec == NULL)
return -ENOMEM;
codec->spec = spec;
/* Ajout SQ071031 */
pin_hp=snd_hda_codec_read(codec, 0x20, 0, AC_VERB_GET_CONFIG_DEFAULT, 0);
pin_hp=pin_hp&0x3FFFFFFF;
snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, pin_hp>>24);
/* automatic parse from the BIOS config */
err = vt1708_parse_auto_config(codec);
if (err < 0) {
via_free(codec);
return err;
} else if (!err) {
printk(KERN_INFO "hda_codec: Cannot set up configuration "
"from BIOS. Using genenic mode...\n");
}
spec->stream_name_analog = "VT1708 Analog";
spec->stream_analog_playback = &vt1708_pcm_analog_playback;
spec->stream_analog_capture = &vt1708_pcm_analog_capture;
spec->stream_name_digital = "VT1708 Digital";
spec->stream_digital_playback = &vt1708_pcm_digital_playback;
spec->stream_digital_capture = &vt1708_pcm_digital_capture;
if (!spec->adc_nids && spec->input_mux) {
spec->adc_nids = vt1708_adc_nids;
spec->num_adc_nids = ARRAY_SIZE(vt1708_adc_nids);
spec->mixers[spec->num_mixers] = vt1708_capture_mixer;
spec->num_mixers++;
}
codec->patch_ops = via_patch_ops;
codec->patch_ops.init = via_auto_init;
#ifdef CONFIG_SND_HDA_POWER_SAVE
spec->loopback.amplist = vt1708_loopbacks;
#endif
return 0;
}
Save the modified file. Leave the folder & open again the terminal.
Write:
sudo apt-get install build-essential xmlto
After you finished installing these, type in terminal again the command to lead you to the folder with alsa driver. The alsa driver with patch
cd alsa-driver-1.xx.xx
Which does not actually look like this, but:
cd /home/x/Dexktop/alsa-driver-1.0.19
Then do
./configure
(me, i did directly sudo ./configure , but it can break sound if things are not ok, so not safe to do that)
then, the next command in terminal will be, if no error:
make
(i also did sudo make)
then:
sudo make install
then reboot.
If you want, you can also read the other sound posts, like:
http://ubuntuforums.org/showthread.php?t=556217https://bugs.launchpad.net/ubuntu/+sour ... bug/184314In order to install Ubuntu 8.10 on Amilo Li 1705 there are other info on internet to help you with the video issue. But Ubuntu 8.04 works out of the box, so if you are complete beginner, it's safer that one.
& you need also to do even some more steps to alsa to work on ubuntu 8.04, I guess, at least that's my perspective & experience with it.