Skip to contentSkip to conversation

compatibility between alsa-kernel and alsa-lib

RFC Thierry Vignaud 3 participants 4 messages Aug 8, 2006 – Aug 16, 2006 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): s5hzmekvnyg.wl%[email protected]

#2 lore raw
Quoted 28 lines · Takashi Iwai
Quoted 13 lines

I may have already raised this (sorry), but from times to times, a change in a driver (ie a mixer element change) is coupled with a corresponding change in the config file in /usr/share/alsa/cards/).

This means that there's a point of linkage between alsa-kernel and alsa-lib (that is one has to use older releases for both kernel and libs or new releases for both).

Is there a way to ensure some compatibility, ie alsa-lib-1.0.20 will work with both kernel-2.6.32 and kernel-2.6.16 despite driver snd-foobar has changed it's mixer in kernel-2.6.20?

Quoted 6 lines

Maybe with versionnated config files or versionnated definitions in the config files?

I know that this can be hard since more and more change will be accumulated (on the other hand, such changes don't happen that often).

Yes, that's a missing part, so far.

Currently, we keep the backward compatibility as much as possible. For example, if a control element is renamed, we keep the old entry with "optional true" attribute so that the same config works for older version. But, this wouldn't work if the device number changes or any other critical change occurs.

Quoted 7 lines

The versioned config would be a solution. The question is how to take the version number/string. One possible idea is that a card provides a read-only control element named "Version" with IFACE_CARD. Or simply a new ioctl for this purpose.

Anyway, this implementation should be more discussed on alsa-devel ML.

let's forward it alsa-devel@ ml then.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#3 lore raw
Quoted 13 lines · Thierry Vignaud
Quoted 13 lines

Yes, that's a missing part, so far.

Currently, we keep the backward compatibility as much as possible. For example, if a control element is renamed, we keep the old entry with "optional true" attribute so that the same config works for older version. But, this wouldn't work if the device number changes or any other critical change occurs.

The versioned config would be a solution. The question is how to take the version number/string. One possible idea is that a card provides a read-only control element named "Version" with IFACE_CARD. Or simply a new ioctl for this purpose.

Quoted 4 lines
Quoted 2 lines

Anyway, this implementation should be more discussed on alsa-devel ML.

let's forward it alsa-devel@ ml then.

is nobody interested in ensuring compatibility between alsa-lib & alsa-kernel?
see linus statements about greg wanted to break compatibility with older udev...

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#4 lore raw
Quoted 18 lines · Thierry Vignaud
Quoted 16 lines · Thierry Vignaud
Quoted 15 lines

Yes, that's a missing part, so far.

Currently, we keep the backward compatibility as much as possible. For example, if a control element is renamed, we keep the old entry with "optional true" attribute so that the same config works for older version. But, this wouldn't work if the device number changes or any other critical change occurs.

The versioned config would be a solution. The question is how to take the version number/string. One possible idea is that a card provides a read-only control element named "Version" with IFACE_CARD. Or simply a new ioctl for this purpose.

Anyway, this implementation should be more discussed on alsa-devel ML.

Quoted 6 lines
Quoted 1 line

let's forward it alsa-devel@ ml then.

is nobody interested in ensuring compatibility between alsa-lib & alsa-kernel?
see linus statements about greg wanted to break compatibility with older udev...

I thought it was already ALSA policy for a year or so not to make incompatible changes between alsa-lib and alsa-kernel.

Lee

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#5 lore raw

At Fri, 11 Aug 2006 11:55:17 -0400,

Quoted 17 lines · Lee Revell
Quoted 15 lines · Thierry Vignaud
Quoted 13 lines · Thierry Vignaud
Quoted 13 lines

Yes, that's a missing part, so far.

Currently, we keep the backward compatibility as much as possible. For example, if a control element is renamed, we keep the old entry with "optional true" attribute so that the same config works for older version. But, this wouldn't work if the device number changes or any other critical change occurs.

The versioned config would be a solution. The question is how to take the version number/string. One possible idea is that a card provides a read-only control element named "Version" with IFACE_CARD. Or simply a new ioctl for this purpose.

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Anyway, this implementation should be more discussed on alsa-devel ML.

let's forward it alsa-devel@ ml then.

is nobody interested in ensuring compatibility between alsa-lib & alsa-kernel?

Well, at least I'm interested but I've been absent.

Quoted 5 lines
Quoted 2 lines

see linus statements about greg wanted to break compatibility with older udev...

I thought it was already ALSA policy for a year or so not to make incompatible changes between alsa-lib and alsa-kernel.

Right, we do NOT break kernel ABI -- at least, not intentionally.

The problem is the incompatibility of configuration space. It has been working until now somehow, but there is no good way to provide a workaround for a bigger change in future. My suggestion above is for that purpose.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642