Skip to content

Commit 0d8f473

Browse files
WhatAmISupposedToPutHerejannau
authored andcommitted
rust: bindings: WIP(?): Add sound bits for AOP series
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com> Signed-off-by: Janne Grunau <j@jannau.net>
1 parent dc8cab3 commit 0d8f473

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

rust/bindgen_parameters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
# Packed type cannot transitively contain a `#[repr(align)]` type.
1414
--opaque-type alt_instr
15+
--opaque-type snd_codec_options
16+
--opaque-type snd_codec
17+
--opaque-type snd_compr_params
1518
--opaque-type x86_msi_data
1619
--opaque-type x86_msi_addr_lo
1720

rust/bindings/bindings_helper.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@
9090
#include <linux/wait.h>
9191
#include <linux/workqueue.h>
9292
#include <linux/xarray.h>
93+
#include <sound/core.h>
94+
#include <sound/dmaengine_pcm.h>
95+
#include <sound/pcm.h>
9396
#include <trace/events/rust_sample.h>
9497

9598
/*
@@ -117,6 +120,8 @@ const gfp_t RUST_CONST_HELPER___GFP_NOWARN = ___GFP_NOWARN;
117120
const blk_features_t RUST_CONST_HELPER_BLK_FEAT_ROTATIONAL = BLK_FEAT_ROTATIONAL;
118121
const fop_flags_t RUST_CONST_HELPER_FOP_UNSIGNED_OFFSET = FOP_UNSIGNED_OFFSET;
119122

123+
const u64 BINDINGS_SNDRV_PCM_FMTBIT_FLOAT_LE = SNDRV_PCM_FMTBIT_FLOAT_LE;
124+
120125
const xa_mark_t RUST_CONST_HELPER_XA_PRESENT = XA_PRESENT;
121126

122127
const gfp_t RUST_CONST_HELPER_XA_FLAGS_ALLOC = XA_FLAGS_ALLOC;

0 commit comments

Comments
 (0)