[lang]

Present Perfect

Personal
Projects
Packages
Patches
Presents
Linux

Picture Gallery
Present Perfect

mach 0.9.4 ‘Maroc’ is released

Filed under: Releases — Thomas @ 12:40

2008-08-29
12:40

This new release adds support for recent OpenSuSE versions, and fixes a bug where mach fails to work because yum --version now outputs much more than the usual one line:

[thomas@ana mach2]$ yum --version
3.2.17
Installed: rpm-4.4.2.3-2.fc9.i386 at 2008-05-24 02:06
Built : Fedora Project at 2008-04-18 16:52
Committed: Bill Nottingham at 2008-04-18 22:00

Installed: yum-metadata-parser-1.1.2-8.fc9.i386 at 2008-05-24 02:07
Built : Fedora Project at 2008-02-14 13:27
Committed: Seth Vidal at 2008-02-14 22:00

Installed: yum-3.2.17-2.fc9.noarch at 2008-08-01 11:00
Built : Fedora Project at 2008-07-10 16:53
Committed: Seth Vidal at 2008-07-10 22:00

I'm sure there's a good reason for doing that, so I guess the egg is on my face for my simplistic version parsing from before.

Soon in a Fedora repository near you, or you can get the source.

Congrats

Filed under: GNOME — Thomas @ 11:42

11:42

to OpenedHand on cashing out! May you all be made rich and live prosperously.

Just make sure you don't get sucked into the Black Hole of Being Acquired, but keep hacking. Make us proud!

Stackoverflow

Filed under: Hacking — Thomas @ 12:15

2008-08-28
12:15

I've been listening to the StackOverflow podcast for a few months. I never was into podcasting but decided I should give it a try and I decided around the time Joel Spolsky and Jeff Atwood started their podcast. I've followed both of their blogs for a while now, mostly because Joel is very good at explaining his opinions and has lots of experience to build on, and Jeff is refreshingly down-to-earth and prolific as a blogger. I use them as my conduit to the non-Linux side of programming, as a crutch to keep me a little bit grounded into the real world out there where 95% of people never use Linux and get their job done as well.

So, I applied for the beta, but didn't have time this month to actually use it. I started using it last weekend, browsing, answering some questions, and so on. It's actually a fun site, and I think it will end up being very useful. In the beginning I couldn't do much because you need reputation to do certain actions, like voting questions up. But today I hit the 3 digit reputation score, I've had some questions answered, and I've had some answers voted up or promoted to the right answer, and it starts being useful.

It's too soon to say, but it might end up being the single best new web site this year, and one of the few directly useful for my work. And it's all running on Windows!

I sincerily hope us Free Software people can get past that 'it runs on Windows' hangup and seriously use the site when it's available. I've already run into one of us going through some of the Python questions. Instead of asking the intarweb, I'm now going to ask technical questions over there. I hope you will too.

distro conditionals in spec files

Filed under: Fedora — Thomas @ 14:47

2008-08-25
14:47

Every time I have to write a spec file and do something specifically for a certain distro version (like, for example, packages were renamed or split or ...) I end up trying to remember what the last package was in which I used it to have the most up-to-date version of that macro.

And once in a while I try one and it doesn't work, for some silly reason. And these macros are always very fragile.

So, this weekend I rebuilt a package for RHEL5.2 and the spec was supposed to BuildRequire: libXv-devel for RHEL5 and onwards. But the check didn't take the 5.2 version number (with a period) into account and it failed.

So this time I decided to just create a wiki page on my wiki that I will update if I ever run into problems again, and will reference back to next time I need it. In the process I managed to simplify the macros and make them more correct, so everyone wins. And that includes you - because now you can go there too if you care! *

* Of course, if you're part of the 99.99999999% of people that doesn't write spec files for fun or money, then you probably don't!

SAlsa

Filed under: Elisa,Hacking — Thomas @ 10:35

2008-08-02
10:35

I'm sure the ALSA guys aren't doing this deliberately, but boy, is it ever not a painful exercise to set your mixer levels and controls correctly ?

Ok, arguably I have a quite complex onboard soundcard, but it's still an onboard soundcard. When you open up alsamixer and see all those labels that don't give you much information, you just get lost. Would it have been that hard for the ALSA guys to make it easier for driver developers to document their stuff ?

My particular onboard card is a VIA 8237 Realtek ALC850, and has coax and SPDIF output. It has controls like Center/LFE (but do they control analog or digital output ? who knows), IEC958 (how many people know that this is SPDIF ?) and IEC958 Output (though it is the former that controls SPDIF output, not the latter, go figure), there's Duplicate Front (I enabled it but strangely enough my computer did not pop out another computer front plate as I expected), and then there is VIA DXS, VIA DXS1, VIA DXS2, and VIA DXS3. And I left out at least two times more controls.

Today I finally figured out how to get my digital output to directly take the PCM data (the actual digital samples) instead of having the digital output take in the Analog Output. But it probably was the most non-obvious ALSA thing I've ever had the non-pleasure of having to do.

There is one control labeled IEC958 Playback AC97-SPSA, which is a level control with only 4 steps (0, 33, 66, 100%). Much like the Mic Input on some webcams I have. Strangely enough, that setting didn't ever seem to affect any volume in my experimentation, but hey, so don't most of the other level controls anyway, so I never looked into it further.

Today, upgrading my media machine from F8 to F9, my obtained-through-careful-random-experimentation asound.state didn't work on F9. So I set out to experiment again and this time, document my settings. Which is when I, completely by accident, tweaked this level control.

And, apparently, setting it to 0% makes the PCM setting on the following switch (IEC958 Playback Source) work and give me completely digital PCM output. Completely puzzled, I started Googling for this card and this setting, and found a close-enough wiki page documenting a previous model and saying this about the setting I tweaked:

f the playback device indicates a link is present, but makes no sound, check the mixer 'IEC958 Playback AC97-SPSA'. The S/PDIF always outputs at full volume - even muting the master or PCM mixers does not affect the S/PDIF volume. The meanings of the settings for 'IEC958 Playback AC97-SPSA' are

0. PCM1
1. PCM2,PCM1 (rear)
2. Centre and LFE
3. PCM3,Modem,Dedicated S/PDIF

Most users will want it set to 0 (PCM1). Some of the 82xx chips have a dedicated S/PDIF port, which is (I assume) accessed by setting it to 3 (Dedicated S/PDIF). The default appears to be 3.

I don't claim to understand much of that explanation, apart from the fact that this is obviously a switch between inputs or outputs and thus affects internal routing.

If I lost you by now, here's the one-line summary: this driver implements a four-state switch with a slider control. And it's not because he wasn't able to figure out switches either - the driver has 6 or more switches for other settings.

This is a control that is labeled such that you can't understand it, with a control that hides what it actually does and suggest it does something else, and controls whether your card works at all. Well done, driver developer guy.

I wish it were me, but hey, I'm an audio engineer, and I set up technical infrastructure for two actual radio stations. That complex 75k euro mixing desk was easier to figure out and program than this simple onboard sound card - and the mixing desk was only programmable in assembler!

I filed this bug - yet another notch on my totem of bugtracker accounts.

« Previous PageNext Page »
picture