Commit Graph

649 Commits

Author SHA1 Message Date
Manos Pitsidianakis
91a5259cce
Add vhost-user-sound crate
Signed-off-by: Emmanouil Pitsidianakis <manos.pitsidianakis@linaro.org>
2023-08-23 22:12:35 +03:00
Stefano Garzarella
583d15433b
Merge pull request #15 from dorindabassey/cargofmt
cargo fmt
2023-07-12 09:07:13 +02:00
Dorinda Bassey
e49e8117d7 cargo fmt
Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
2023-07-11 18:23:33 +02:00
Matias Ezequiel Vara Larsen
508508afaf
Merge pull request #9 from MatiasVara/vsound-set-param
Vsound set param
2023-07-11 17:56:33 +02:00
Matias Ezequiel Vara Larsen
03241612a7 Sound: Add set_param()
This commit adds the set_param() method. This method can only be called
if the stream is in the "set parameters", "prepare" or "release" state.
For the pw backend, this method only updates the internal values for the
given stream.

Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
2023-07-11 12:08:30 +02:00
dorindabassey
4027f61d92
Merge pull request #14 from dorindabassey/pwnew
instantiate new backend with PW thread loop functions
2023-07-11 11:39:00 +02:00
Dorinda Bassey
08078b752c instantiate new backend with PW thread loop functions
Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
2023-07-10 18:58:06 +02:00
Matias Ezequiel Vara Larsen
3a0f49d279
Merge pull request #7 from MatiasVara/vsound-init-streamsinfo
Sound: initialize StreamInfo
2023-07-06 15:44:01 +02:00
Matias Ezequiel Vara Larsen
b3b83c1f41 Sound: initialize StreamInfo
This commit adds a vector named StreamInfo that contains the supported
configuration for the audio backends, e.g., rate, format. This
information is stored in the context of VhostUserSoundBackend. The
device reponses this information when getting the VIRTIO_SND_R_PCM_INFO
msg. The number of streams that are exposed in the device configuration
is got from this table.

Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
2023-07-05 17:02:13 +02:00
dorindabassey
4cf4e675ff
Merge pull request #6 from dorindabassey/vsound_newtx
instantiate new backend
2023-07-03 16:57:26 +02:00
Dorinda Bassey
110ccd736c instantiate new backend
Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
2023-07-03 16:02:37 +02:00
Matias Ezequiel Vara Larsen
e77e32646d
Merge pull request #5 from MatiasVara/vsound-tx-queue
Vsound tx queue
2023-06-30 17:26:58 +02:00
Matias Ezequiel Vara Larsen
e3d5071246 Sound: add audio_backend parameter
Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
2023-06-30 10:33:13 +02:00
Matias Ezequiel Vara Larsen
c4b253c433 Sound: Handle tx queue
This commit handles the pcm i/o messages to the tx transmission queue.
These msgs contains three descriptors: hdr, data and status. The data
descriptor shall be processed by the audio backend. The data may be
split in multiples descriptors.

Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
2023-06-30 10:31:48 +02:00
dorindabassey
170933506c
Merge pull request #3 from dorindabassey/vsound_test
Sound: Handle control Queue
2023-06-21 13:14:23 +02:00
Dorinda Bassey
582a66ff07 Sound: Handle control queue
Handle ctrl msgs from the control Queue in method for handling control queue

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
2023-06-21 13:02:58 +02:00
Stefano Garzarella
9f20f6502f
Merge pull request #4 from epilys/fix/chmaps-typo
rename typo virtio_snd_config.chmpas -> chmaps
2023-06-06 13:49:55 +02:00
Manos Pitsidianakis
d39140f82a
sound: rename typo virtio_snd_config.chmpas -> chmaps 2023-06-05 13:53:37 +03:00
Stefano Garzarella
63db2e8b41
Merge pull request #2 from dorindabassey/v_sound
sound: add PipeWire backend skeleton
2023-05-26 17:49:10 +02:00
Dorinda Bassey
05a959d703 sound: add PipeWire backend skeleton
to enable the pipewire backend feature, build with `--features pw-backend`

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
2023-05-26 17:44:05 +02:00
Stefano Garzarella
a198f48cde sound: rename alloc_audio_backend 2023-05-19 18:19:47 +02:00
Stefano Garzarella
65f7c78dbd sound: support --backend option 2023-05-19 18:16:21 +02:00
Stefano Garzarella
82660840ca sound: add NullBackend skeleton 2023-05-19 18:11:14 +02:00
Stefano Garzarella
5e8fd650e9 sound: add AudioBackend trait 2023-05-19 18:11:14 +02:00
Stefano Garzarella
c3e2f6a4bc
Merge pull request #1 from dorindabassey/d_sound
virtio_sound.rs: Added device configuration and common definitions
2023-04-28 10:06:49 +02:00
Dorinda Bassey
16e927e10e virtio_sound.rs: Added device configuration and common definitions
Added device configuration and common definitions from the
virtio sound specifications to the header file

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
2023-04-27 08:39:15 +02:00
Stefano Garzarella
2366b76718 sound: add missing files 2023-04-03 14:33:53 +02:00
Stefano Garzarella
b81c55fbe2 sound: code refactoring 2023-03-31 17:16:21 +02:00
Stefano Garzarella
8d3ebf35e1 sound: support multiple threads 2023-03-31 15:49:46 +02:00
Stefano Garzarella
72c31053ff Revert "sound: use thread trait"
This reverts commit 3ac6c160c1.
2023-03-31 12:05:58 +02:00
Stefano Garzarella
3ac6c160c1 sound: use thread trait 2023-03-30 20:56:42 +02:00
Stefano Garzarella
a1b49a76a7 sound: use interior mutability 2023-03-30 20:23:51 +02:00
Stefano Garzarella
0a78103b41 sound: initial commit 2023-03-30 18:47:15 +02:00
dependabot[bot]
a3427f5c34 build(deps): bump windows_aarch64_msvc from 0.42.1 to 0.42.2
Bumps [windows_aarch64_msvc](https://github.com/microsoft/windows-rs) from 0.42.1 to 0.42.2.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/commits)

---
updated-dependencies:
- dependency-name: windows_aarch64_msvc
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 13:29:48 +05:30
dependabot[bot]
54f29fa041 build(deps): bump windows_x86_64_gnullvm from 0.42.1 to 0.42.2
Bumps [windows_x86_64_gnullvm](https://github.com/microsoft/windows-rs) from 0.42.1 to 0.42.2.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/commits)

---
updated-dependencies:
- dependency-name: windows_x86_64_gnullvm
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 13:29:40 +05:30
dependabot[bot]
ea4754802e build(deps): bump futures-task from 0.3.26 to 0.3.27
Bumps [futures-task](https://github.com/rust-lang/futures-rs) from 0.3.26 to 0.3.27.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.26...0.3.27)

---
updated-dependencies:
- dependency-name: futures-task
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 13:29:22 +05:30
dependabot[bot]
16a8f79d87 build(deps): bump io-lifetimes from 1.0.5 to 1.0.8
Bumps [io-lifetimes](https://github.com/sunfishcode/io-lifetimes) from 1.0.5 to 1.0.8.
- [Release notes](https://github.com/sunfishcode/io-lifetimes/releases)
- [Commits](https://github.com/sunfishcode/io-lifetimes/compare/v1.0.5...v1.0.8)

---
updated-dependencies:
- dependency-name: io-lifetimes
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 09:37:50 +00:00
dependabot[bot]
3738928f67 build(deps): bump syn from 1.0.107 to 1.0.109
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.107 to 1.0.109.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.107...1.0.109)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-22 16:27:55 +00:00
dependabot[bot]
1947f4c124 build(deps): bump rustix from 0.36.8 to 0.36.9
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.36.8 to 0.36.9.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.36.8...v0.36.9)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 14:36:30 +05:30
dependabot[bot]
9c7dee2baf build(deps): bump clap from 4.1.6 to 4.1.8
Bumps [clap](https://github.com/clap-rs/clap) from 4.1.6 to 4.1.8.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.1.6...v4.1.8)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 14:36:20 +05:30
dependabot[bot]
76f056d385 build(deps): bump once_cell from 1.17.0 to 1.17.1
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.17.0 to 1.17.1.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.0...v1.17.1)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 14:36:11 +05:30
dependabot[bot]
b181568ae5 build(deps): bump tempfile from 3.3.0 to 3.4.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases)
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS)
- [Commits](https://github.com/Stebalien/tempfile/commits)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 14:09:24 +05:30
Viresh Kumar
ea699c86de tests: Initialize queues properly
The virtio-queue crate doesn't allow invalid queue state since commit
d951283a8e88 ("don't allow processing descriptors for invalid q").

Initialize the queues properly to fix testing failures.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2023-02-28 14:44:14 +05:30
dependabot[bot]
8b9a40299f build(deps): bump virtio-queue from 0.7.0 to 0.7.1
Bumps [virtio-queue](https://github.com/rust-vmm/vm-virtio) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/rust-vmm/vm-virtio/releases)
- [Commits](https://github.com/rust-vmm/vm-virtio/compare/virtio-queue-v0.7.0...virtio-queue-v0.7.1)

---
updated-dependencies:
- dependency-name: virtio-queue
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-28 14:44:14 +05:30
Alex Bennée
2857681557 Updates crates to use virtio_config bindings
Rather incongruously the common VIRTIO feature flags where part of the
net binding. Now that the new binding are out we can update them to
something generic.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2023-02-28 14:19:12 +05:30
dependabot[bot]
45b5d49f00 build(deps): bump clap_lex from 0.3.1 to 0.3.2
Bumps [clap_lex](https://github.com/clap-rs/clap) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_lex-v0.3.1...clap_lex-v0.3.2)

---
updated-dependencies:
- dependency-name: clap_lex
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 10:42:13 +05:30
dependabot[bot]
b32559eb72 build(deps): bump clap from 4.1.4 to 4.1.6
Bumps [clap](https://github.com/clap-rs/clap) from 4.1.4 to 4.1.6.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.1.4...v4.1.6)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 12:09:24 +05:30
dependabot[bot]
b2af05f8fc build(deps): bump clang-sys from 1.4.0 to 1.6.0
Bumps [clang-sys](https://github.com/KyleMayes/clang-sys) from 1.4.0 to 1.6.0.
- [Release notes](https://github.com/KyleMayes/clang-sys/releases)
- [Changelog](https://github.com/KyleMayes/clang-sys/blob/master/CHANGELOG.md)
- [Commits](https://github.com/KyleMayes/clang-sys/commits)

---
updated-dependencies:
- dependency-name: clang-sys
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 12:09:16 +05:30
dependabot[bot]
10a159dee7 build(deps): bump slab from 0.4.7 to 0.4.8
Bumps [slab](https://github.com/tokio-rs/slab) from 0.4.7 to 0.4.8.
- [Release notes](https://github.com/tokio-rs/slab/releases)
- [Changelog](https://github.com/tokio-rs/slab/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/slab/compare/v0.4.7...v0.4.8)

---
updated-dependencies:
- dependency-name: slab
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 12:09:07 +05:30
Viresh Kumar
799073f17c gpio: Migrate to the upstream version of libgpiod
The upstream version doesn't compile the .c files locally and depends on
the package to be locally compiled and installed in advance.

It also doesn't provide pre-generated bindings, and requires bindgen
support.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2023-02-15 08:09:13 -07:00