Tiny Core Linux

Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: andrewb on January 16, 2012, 05:29:29 PM

Title: Alsa 1.0.24
Post by: andrewb on January 16, 2012, 05:29:29 PM
Please could we have Alsa upgraded to 1.0.24.

Would it be possible to consider using the source from Realtek so as to get full support for the Realtek HDaudio cards so common in laptops & netbooks today? (downloadable from http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownTypeID=3&GetDown=false#High%20Definition%20Audio%20Codecs (http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownTypeID=3&GetDown=false#High%20Definition%20Audio%20Codecs) or http://www.rechner-support.com/index.php?form=DatabaseDownload (http://www.rechner-support.com/index.php?form=DatabaseDownload))

Thanks.
Title: Re: Alsa 1.0.24
Post by: curaga on January 17, 2012, 07:59:40 AM
The kernel modules are already 1.0.24, so I suppose you mean the userspace?
Title: Re: Alsa 1.0.24
Post by: andrewb on January 17, 2012, 04:38:45 PM
The Alsa extension is listed as 1.0.23 & the modules extension doesn't have an Alsa version listed so I'd assume it is 1.0.24

The score from Realtek has a number of additional drivers for HDaudio which should improve handling of the commonly used Realtek HDaudio cards prevalent in current systems.

Title: Re: Alsa 1.0.24
Post by: Jason W on January 18, 2012, 04:42:37 AM
Userspace part of alsa updated now to latest 1.0.24.x.  The Realtek stuff is from a separate source, so someone can make a separate extension, I don't have the hardware to tes anyway.
Title: Re: Alsa 1.0.24
Post by: Juanito on January 19, 2012, 05:52:44 AM
was alsa-dev updated?
Title: Re: Alsa 1.0.24
Post by: Jason W on January 19, 2012, 07:36:28 AM
I made the package for it, but it appears like it may have eluded being uploaded.  I have it at home, I will upload it then.
Title: Re: Alsa 1.0.24
Post by: Jason W on January 19, 2012, 09:01:36 PM
alsa-dev updated.
Title: Re: Alsa 1.0.24
Post by: Juanito on January 20, 2012, 06:28:22 AM
'looks like the location of asound.state changed:
Code: [Select]
$ sudo /usr/local/etc/init.d/alsasound start
...
Starting sound driver: snd-hda-intel 
/usr/local/sbin/alsactl: load_state:1586: Cannot open /var/lib/alsa/asound.state for reading: No such file or directory
Found hardware: "HDA-Intel" "Intel CougarPoint HDMI" "HDA:10134206,106b2100,00100302 HDA:80862805,80860101,00100000" "0x8086" "0x7270"
Hardware is initialized using a generic method

but:
Code: [Select]
$ sudo /usr/local/sbin/alsactl store
/usr/local/sbin/alsactl: save_state:1547: Cannot open /var/lib/alsa/asound.state for writing: No such file or directory
$ sudo mkdir /var/lib/alsa
$ sudo /usr/local/sbin/alsactl store

For me it seems more logical for asound.state to be in /usr/local/etc - maybe with a ./configure switch?
Title: Re: Alsa 1.0.24
Post by: Jason W on January 20, 2012, 11:57:56 AM
I thought that the default was to /etc/asound.state as previously and not in /var.  I will rebuild and specify /usr/local/etc.
Title: Re: Alsa 1.0.24
Post by: Jason W on January 20, 2012, 03:16:56 PM
Rebuilt with /usr/local/etc as asound.state directory, seems to be working here.
Title: Re: Alsa 1.0.24
Post by: Juanito on January 21, 2012, 08:40:58 AM
'seems to have done the trick - thanks

Still doesn't work fully (without the aid of hda analyzer) with my "Intel CougarPoint HDMI", but that's a module, rather than userspace, problem.
Title: Re: Alsa 1.0.24
Post by: bmarkus on January 25, 2012, 02:57:36 PM
1.0.25 released today
Title: Re: Alsa 1.0.24
Post by: Jason W on January 25, 2012, 05:36:09 PM
Thanks for reporting.

But before updating, as the kernel drivers are version 1.0.24, I will wait for some feedback before updating the libs.  It should all just work, just like it  did to leave the libs as 1.0.23, I will update soon if there is no objections.
Title: Re: Alsa 1.0.24
Post by: drumaliens on January 25, 2012, 06:12:12 PM
Not sure if I have not installed the correct update on alsa to solve the directory issue with

sudo alsctl restore

got round this by putting the following in

amixer sset 'Master' 20 unmute
amixer sset 'PCM' 20 unmute

into /opt/bootlocal.sh. I sense a fudge but it gets round the problem

Title: Re: Alsa 1.0.24
Post by: Jason W on January 25, 2012, 06:28:03 PM
Hey drumaliens,

Your post is garbled with some forum code, so is this the commands you have listed?

sudo alsactl restore
amixer sset 'Master' 20 unmute
amixer sset 'PCM' 20 unmute

Title: Re: Alsa 1.0.24
Post by: drumaliens on January 26, 2012, 01:55:54 AM
Sorry about the garble in  the previous post it's tidied up now

I found that alsctl restore would work if I run it in a terminal but not if I put it in bootlocal.sh (with a sleep command). Saying that it would still complain about the directory problem. I have check I believe I am up to date with the versions

I got round this problem by running the appropriate amixer commands in bootlocal.sh and this got me sound as soon as I'm in without having to go through the mixer first.
Title: Re: Alsa 1.0.24
Post by: combo3 on January 30, 2012, 07:26:48 PM
Rebuilt with /usr/local/etc as asound.state directory, seems to be working here.

Just a reminder that the info file needs to be updated as well.

(i.e. This stores the configuration in /usr/local/etc/asound.state)
Title: Re: Alsa 1.0.24
Post by: Jason W on January 30, 2012, 09:29:39 PM
Thanks, info file updated.