[lang]

Present Perfect

Personal
Projects
Packages
Patches
Presents
Linux

Picture Gallery
Present Perfect

Before the devil knows you’re dead

Filed under: movies — Thomas @ 00:59

2008-08-25
00:59

Arek and I have spent the weekend working - it's been so hard to get a block of continuous time to work on deploying a new version of our platform that I decided I would set aside a weekend for it to get started and convinced him to trade two working days for two weekend days. It's the only time I'm guaranteed not to be interrupted by everyone else at the time.

We decided we wouldn't actually discuss stuff, just get things done. Of course, Saturday ended up being nothing but discussing every possible topic. While it was exhausting for both of us, it seems it was unavoidable, even when we both were planning to avoid discussions. I did get to understand a bunch of things a lot better, so I spent Saturday night staying up too long and synthesising the discussions into things to do for the future.

Today, Sunday, was more productive - we're advancing on the list of tasks still left to do. In the evening I agreed to meet up with Mariette and friends to go see a movie, and Arek went along.

I was actually pretty impressed with the movie. Arek thought it was artificial, which I can see, but I really like a well told story. I only found the basic premise artificial in the sense that I couldn't believe someone would start out doing something like that.

There are two things I really like about the movie beyond the obvious (Philip Seymour Hoffman turns in another stellar performance).

A good piece of art makes you project your own ideas onto it, making you think that the piece of art is telling you something that in fact is coming from the other direction - you. In this particular case, I felt the movie showed what happens when a dysfunctional family dynamic, which is relatively harmless when kids are young, persists into adulthood. The same basic motivations and behaviours they had as kids bring on much bigger consequences when the now-adult kids have real lives and access to more powerful or dangerous resources.

You see this family interact in probably much the same way they did when the sons were kids - but the consequences of every action - stealing from your parents, harassing your little brother into doing your dirty work for you, stealing something from your older brother, fighting over a girl, whatever - are so much more far-reaching when the toy guns are real, when the money is more than what's in a wallet, and when the girl is more than just yesterday's crush.

Like I said, I'm probably projecting my thoughts on the movie.

The second thing I liked is how such a simple but clever premise births subsequent situations that are refreshing yet still entirely logical. The premise is so simple yet unbelievable that I'm surprised I haven't seen it before in a movie - what would happen if two sons rob their parents' store ? The rest of the story has its drama unfold in ways that you've probably not seen happen in the more standard thrillers, but it's still predictable even in its originality. I can't talk about any examples without giving plot away, though. But I very much appreciate how such a simple idea for a movie can be so powerful and basically write the whole movie on its own.

I understand what Arek doesn't like about the movie, but I'm still pretty impressed - a good spur of the moment movie choice as far as they go.

Pukkelpop playlist

Filed under: Music — Thomas @ 14:31

2008-08-05
14:31

Every time I go to a festival I prepare a festival playlist to get amped up.

This year's Pukkelpop playlist has 942 songs, good for 2 days and 22 hours of non-stop listening. And I have some more songs arriving through the tubes.

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 Page
picture