aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/genpd.py
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2023-08-15 21:01:30 +0200
committerTakashi Iwai <[email protected]>2023-08-18 12:19:18 +0200
commit95396d83e96cc1b7887562d07ff0324c11e744db (patch)
treeabe1133b995c8581710723531a2a9fcdabff24e9 /scripts/gdb/linux/genpd.py
parent66201cacc33d740057bd64af6371ad846cff376f (diff)
ASoC: mediatek: Convert to generic PCM copy ops
This patch converts the mediatek BT SCO driver code to use the new unified PCM copy callback. It's a straightforward conversion from *_user() to *_iter() variants. As copy_form/to_iter() updates the internal offset at each read/write, we can drop the cur_*_idx counter in the loop, too. Note that copy_from/to_iter() returns the copied bytes, hence the error condition is adjusted accordingly. Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/genpd.py')
0 files changed, 0 insertions, 0 deletions