Use ALSA 1.x API instead of 0.9 #11

Συγχωνευμένα
MicheleC συγχώνευσε 3 υποβολές από fix/alsa-0.9-api σε master 1 έτος πριν
koorogi σχολίασε 1 έτος πριν
Συνεργάτης

Despite the comment in ConfigureChecks.cmake, we were requesting the 0.9 compatibility version of some APIs with the ALSA_PCM_OLD_SW_PARAMS_API and ALSA_PCM_OLD_HW_PARAMS_API macros.

ALSA implements the compatibility versions of these APIs using symbol versioning, which musl (at least) does not support. The code compiled and linked, but at runtime would call the 1.x version of the API instead of the 0.9 version the code expected.

The 1.x versions of these APIs were introduced in 2002.

Fixes #5

Despite the comment in `ConfigureChecks.cmake`, we were requesting the 0.9 compatibility version of some APIs with the `ALSA_PCM_OLD_SW_PARAMS_API` and `ALSA_PCM_OLD_HW_PARAMS_API` macros. ALSA implements the compatibility versions of these APIs using symbol versioning, which musl (at least) does not support. The code compiled and linked, but at runtime would call the 1.x version of the API instead of the 0.9 version the code expected. The 1.x versions of these APIs were introduced in 2002. Fixes #5
koorogi πρόσθεσε 3 υποβολές 1 έτος πριν
5b08269551
Delete unused source file
d1f4425c84
Update ALSA support to use 1.x API
ecba6be174
Rename file
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Great @koorogi, thanks for the PR.

@Francois in relation to the arts problem reported in TDE/tde#128, could you test the code in this PR and see how it goes with this PR?

Great @koorogi, thanks for the PR. @Francois in relation to the arts problem reported in TDE/tde#128, could you test the code in this PR and see how it goes with this PR?
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

@koorogi in the meantime, could you rebase the PR on top of origin/master since I have merged PR #10?

@koorogi in the meantime, could you rebase the PR on top of origin/master since I have merged PR #10?
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Test in debian looks good. Waiting for the test on RPM :-)

Test in debian looks good. Waiting for the test on RPM :-)
koorogi force-pushed fix/alsa-0.9-api από το ecba6be174 στο 596d2accf4 1 έτος πριν
koorogi σχολίασε 1 έτος πριν
Συντάκτης
Συνεργάτης

@koorogi in the meantime, could you rebase the PR on top of origin/master since I have merged PR #10?

Done

> @koorogi in the meantime, could you rebase the PR on top of origin/master since I have merged PR #10? > Done
Francois σχολίασε 1 έτος πριν
Συνεργάτης

Great @koorogi, thanks for the PR.

@Francois in relation to the arts problem reported in TDE/tde#128, could you test the code in this PR and see how it goes with this PR?

Hello @MicheleC , I've just tested in Fedora 37 virtual machine.
Before the patch, configuring arts for alsa output makes it crash instantly.
After the patch, arts starts normally and sound is outputted as expected (via alsa/pulseaudio redirection).

> Great @koorogi, thanks for the PR. > > @Francois in relation to the arts problem reported in TDE/tde#128, could you test the code in this PR and see how it goes with this PR? > Hello @MicheleC , I've just tested in Fedora 37 virtual machine. Before the patch, configuring arts for alsa output makes it crash instantly. After the patch, arts starts normally and sound is outputted as expected (via alsa/pulseaudio redirection).
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Hello @MicheleC , I've just tested in Fedora 37 virtual machine.
Before the patch, configuring arts for alsa output makes it crash instantly.
After the patch, arts starts normally and sound is outputted as expected (via alsa/pulseaudio redirection).

Thanks for testing @Francois, good to hear arts works fine with the patch.

@koorogi thanks for the patch, great to have a new contributor!! 🙂

> Hello @MicheleC , I've just tested in Fedora 37 virtual machine. > Before the patch, configuring arts for alsa output makes it crash instantly. > After the patch, arts starts normally and sound is outputted as expected (via alsa/pulseaudio redirection). Thanks for testing @Francois, good to hear arts works fine with the patch. @koorogi thanks for the patch, great to have a new contributor!! 🙂
MicheleC ενέκρινε αυτές τις αλλαγές 1 έτος πριν
MicheleC άφησε ένα σχόλιο
Ιδιοκτήτης

Looks good and test on debian/fedora works fine.

Looks good and test on debian/fedora works fine.
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

@koorogi could you squash the 3 commits into one before I merge?

@koorogi could you squash the 3 commits into one before I merge?
SlavekB σχολίασε 1 έτος πριν
Ιδιοκτήτης

I recommend not to make squash, because there are much better to see changes for API 1.x, when it is in a separate commit and renaming the file also in a separate commit. When it is together, it is much less visible, what are real changes.

I recommend not to make squash, because there are much better to see changes for API 1.x, when it is in a separate commit and renaming the file also in a separate commit. When it is together, it is much less visible, what are real changes.
koorogi force-pushed fix/alsa-0.9-api από το 596d2accf4 στο a5790c02df 1 έτος πριν
koorogi force-pushed fix/alsa-0.9-api από το a5790c02df στο 596d2accf4 1 έτος πριν
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

I recommend not to make squash, because there are much better to see changes for API 1.x, when it is in a separate commit and renaming the file also in a separate commit. When it is together, it is much less visible, what are real changes.

Ok, in such case I will merge as is (3 commits).

> I recommend not to make squash, because there are much better to see changes for API 1.x, when it is in a separate commit and renaming the file also in a separate commit. When it is together, it is much less visible, what are real changes. Ok, in such case I will merge as is (3 commits).
koorogi σχολίασε 1 έτος πριν
Συντάκτης
Συνεργάτης

I recommend not to make squash, because there are much better to see changes for API 1.x, when it is in a separate commit and renaming the file also in a separate commit. When it is together, it is much less visible, what are real changes.

Looks like you posted this at almost the same time I pushed the squashed commit. I do agree, the unsquashed version is much easier to read, so I've gone and re-pushed that again.

> I recommend not to make squash, because there are much better to see changes for API 1.x, when it is in a separate commit and renaming the file also in a separate commit. When it is together, it is much less visible, what are real changes. Looks like you posted this at almost the same time I pushed the squashed commit. I do agree, the unsquashed version is much easier to read, so I've gone and re-pushed that again.
MicheleC συγχώνευσε την υποβολή 596d2accf4 σε master 1 έτος πριν
MicheleC διέγραψε το κλάδο fix/alsa-0.9-api 1 έτος πριν
MicheleC το πρόσθεσε στο R14.1.1 release ορόσημο 1 έτος πριν
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Merged and backported. Thanks @koorogi!

Merged and backported. Thanks @koorogi!

Εξεταστές

MicheleC ενέκρινε αυτές τις αλλαγές 1 έτος πριν
Το pull request έχει συγχωνευθεί ως 596d2accf4.
Συνδεθείτε για να συμμετάσχετε σε αυτή τη συνομιλία.
Δεν υπάρχουν εξεταστές
Χωρίς Ορόσημο
Χωρίς Αποδέκτη
4 Συμμετέχοντες
Ειδοποιήσεις
Ημερομηνία Παράδοσης

Δεν ορίστηκε ημερομηνία παράδοσης.

Εξαρτήσεις

Δεν έχουν οριστεί εξαρτήσεις.

Αναφορά: TDE/arts#11
Φόρτωση…
Δεν υπάρχει ακόμα περιεχόμενο.