Skip to content

Commit b973500

Browse files
committed
tools/include: Sync uapi/sound/asound.h with the kernel sources
To pick up changes from: f05c1ff ALSA: pcm: reinvent the stream synchronization ID API This should be used to beautify sound syscall arguments and it addresses these tools/perf build warnings: Warning: Kernel ABI header differences: diff -u tools/perf/trace/beauty/include/uapi/sound/asound.h include/uapi/sound/asound.h Please see tools/include/uapi/README for details (it's in the first patch of this series). Cc: Jaroslav Kysela <[email protected]> Cc: Takashi Iwai <[email protected]> Cc: [email protected] Signed-off-by: Namhyung Kim <[email protected]>
1 parent 8ec9497 commit b973500

File tree

1 file changed

+5
-4
lines changed
  • tools/perf/trace/beauty/include/uapi/sound

1 file changed

+5
-4
lines changed

tools/perf/trace/beauty/include/uapi/sound/asound.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct snd_hwdep_dsp_image {
142142
* *
143143
*****************************************************************************/
144144

145-
#define SNDRV_PCM_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 17)
145+
#define SNDRV_PCM_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 18)
146146

147147
typedef unsigned long snd_pcm_uframes_t;
148148
typedef signed long snd_pcm_sframes_t;
@@ -334,7 +334,7 @@ union snd_pcm_sync_id {
334334
unsigned char id[16];
335335
unsigned short id16[8];
336336
unsigned int id32[4];
337-
};
337+
} __attribute__((deprecated));
338338

339339
struct snd_pcm_info {
340340
unsigned int device; /* RO/WR (control): device number */
@@ -348,7 +348,7 @@ struct snd_pcm_info {
348348
int dev_subclass; /* SNDRV_PCM_SUBCLASS_* */
349349
unsigned int subdevices_count;
350350
unsigned int subdevices_avail;
351-
union snd_pcm_sync_id sync; /* hardware synchronization ID */
351+
unsigned char pad1[16]; /* was: hardware synchronization ID */
352352
unsigned char reserved[64]; /* reserved for future... */
353353
};
354354

@@ -420,7 +420,8 @@ struct snd_pcm_hw_params {
420420
unsigned int rate_num; /* R: rate numerator */
421421
unsigned int rate_den; /* R: rate denominator */
422422
snd_pcm_uframes_t fifo_size; /* R: chip FIFO size in frames */
423-
unsigned char reserved[64]; /* reserved for future */
423+
unsigned char sync[16]; /* R: synchronization ID (perfect sync - one clock source) */
424+
unsigned char reserved[48]; /* reserved for future */
424425
};
425426

426427
enum {

0 commit comments

Comments
 (0)