Demo application for accel operation.#26
Demo application for accel operation.#26TE-N-ShengjiuWang wants to merge 2 commits intoalsa-project:masterfrom
Conversation
src/utils/caccel.c
Outdated
| goto end_process_err; | ||
| } | ||
|
|
||
| if (ioctl(fd_accel, SNDRV_COMPRESS_TASK_STOP, &task.seqno) < 0) { |
There was a problem hiding this comment.
STOP ioctl should not wait for result. STATUS or poll() should be used to wait for the task operation.
|
Thank you for this example code, but the abstraction should be added to tinycompress library like we do for standard playback/capture modes. |
| #include <sound/asound.h> | ||
| #include <sound/compress_params.h> | ||
| #define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 2, 0) | ||
| #define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 3, 0) |
There was a problem hiding this comment.
heh! GH doesnt let comment on patchlog...
I guess it would make sense to say, move the header to version 0.3.0...
| struct snd_dec_alac alac_d; | ||
| struct snd_dec_ape ape_d; | ||
| struct { | ||
| __u32 out_sample_rate; |
There was a problem hiding this comment.
This should be folded into previos patch as both are coming from kernel header
| @@ -1,11 +1,14 @@ | |||
| bin_PROGRAMS = cplay crecord | |||
| bin_PROGRAMS = cplay crecord caccel | |||
There was a problem hiding this comment.
should we always build caccel?
yes, that is the primary comment for this change |
Merge header file compress_offload.h for the changes of adding accel operation. Merge header file compress_params.h for the changes of adding src codec. update libtinycompress for adding accel operations. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
This 'caccel' applicaton is a demo to show how to call the new introduced accel interface. The kernel patch is: ALSA: compress_offload: introduce accel operation mode As there is conflict when using the API of alsa-lib, add alsa_wrap file to separate the header files: alsa/asoundlib.h sound/asound.h Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
89f4299 to
87f7e56
Compare
|
@perexg @vinodkoul I have update the commits, mainly for tinycompress library. |
This 'caccel' applicaton is a demo to show how to
call the new introduced accel interface.
The kernel patch is:
ALSA: compress_offload: introduce accel operation mode
As there is conflict when using the API of alsa-lib,
add alsa_wrap file to separate the header files:
alsa/asoundlib.h
sound/asound.h
command for conversion to 48kHz:
caccel -i in.wav -o out.wav -r 48000