From b22da3d8526a935aa31e086e63f60ff3246cb61c Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Sat, 09 Dec 2023 07:24:11 +0000 Subject: [PATCH] add stmac read mac form eeprom --- kernel/include/uapi/sound/compress_offload.h | 22 +++------------------- 1 files changed, 3 insertions(+), 19 deletions(-) diff --git a/kernel/include/uapi/sound/compress_offload.h b/kernel/include/uapi/sound/compress_offload.h index eac1e01..9555f31 100644 --- a/kernel/include/uapi/sound/compress_offload.h +++ b/kernel/include/uapi/sound/compress_offload.h @@ -31,7 +31,7 @@ #include <sound/compress_params.h> -#define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 2) +#define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 2, 0) /** * struct snd_compressed_buffer - compressed buffer * @fragment_size: size of buffer fragment in bytes @@ -67,7 +67,7 @@ */ struct snd_compr_tstamp { __u32 byte_offset; - __u64 copied_total; + __u32 copied_total; __u32 pcm_frames; __u32 pcm_io_frames; __u32 sampling_rate; @@ -123,18 +123,6 @@ } __attribute__((packed, aligned(4))); /** - * struct snd_compr_audio_info: compressed input audio information - * @frame_size: legth of the encoded frame with valid data - * @reserved: reserved for furture use - */ -struct snd_compr_audio_info { - __u32 frame_size; - __u32 reserved[15]; -} __attribute__((packed, aligned(4))); - -#define SND_COMPR_AUDIO_INFO - -/** * enum sndrv_compress_encoder * @SNDRV_COMPRESS_ENCODER_PADDING: no of samples appended by the encoder at the * end of the track @@ -156,7 +144,7 @@ __u32 value[8]; } __attribute__((packed, aligned(4))); -/** +/* * compress path ioctl definitions * SNDRV_COMPRESS_GET_CAPS: Query capability of DSP * SNDRV_COMPRESS_GET_CODEC_CAPS: Query capability of a codec @@ -172,8 +160,6 @@ * SNDRV_COMPRESS_STOP: stop a running stream, discarding ring buffer content * and the buffers currently with DSP * SNDRV_COMPRESS_DRAIN: Play till end of buffers and stop after that - * SNDRV_COMPRESS_SET_NEXT_TRACK_PARAM: send codec specific data for the next - * track in gapless * SNDRV_COMPRESS_IOCTL_VERSION: Query the API version */ #define SNDRV_COMPRESS_IOCTL_VERSION _IOR('C', 0x00, int) @@ -195,8 +181,6 @@ #define SNDRV_COMPRESS_DRAIN _IO('C', 0x34) #define SNDRV_COMPRESS_NEXT_TRACK _IO('C', 0x35) #define SNDRV_COMPRESS_PARTIAL_DRAIN _IO('C', 0x36) -#define SNDRV_COMPRESS_SET_NEXT_TRACK_PARAM\ - _IOW('C', 0x80, union snd_codec_options) /* * TODO * 1. add mmap support -- Gitblit v1.6.2