alsa-compress-offload: Add device object and udev based autodetection

As part of this, in alsa-udev.c, certain structures and variables referred
to as "device" are renamed to "card". Otherwise, there is ambiguity, since
"device" can mean a udev device, an SPA device, a compress-offload device,
a PCM device etc.

Also, replace "card id" with "card number" to emphasize that these integers
are not actually SPA object IDs.
This commit is contained in:
Carlos Rafael Giani 2023-08-30 23:52:14 +02:00 committed by Wim Taymans
parent ae4bff78a3
commit 8e6d070148
8 changed files with 1050 additions and 237 deletions

View file

@ -15,7 +15,10 @@ spa_alsa_sources = ['alsa.c',
'alsa-seq.c']
if compress_offload_option.allowed()
spa_alsa_sources += [ 'alsa-compress-offload-sink.c', 'compress-offload-api.c' ]
spa_alsa_sources += ['alsa-compress-offload-sink.c',
'alsa-compress-offload-device.c',
'compress-offload-api-util.c',
'compress-offload-api.c']
endif
spa_alsa = shared_library(