Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 46) sorted by relevance

12

/Zephyr-latest/samples/subsys/usb/audio/headphones_microphone/
Dapp.overlay14 feature-volume;
15 volume-max = <0x0500>;
16 volume-min = <0xBA00>;
17 volume-res = <0x100>;
/Zephyr-latest/samples/subsys/usb/audio/headset/
Dapp.overlay18 hp-feature-volume;
19 volume-max = <0x0500>;
20 volume-min = <0xBA00>;
21 volume-res = <0x100>;
/Zephyr-latest/subsys/bluetooth/audio/
Dvcp_vol_rend.c86 vol_rend.state.volume, vol_rend.state.mute, in read_vol_state()
197 if (vol_rend.state.volume > 0) { in write_vcs_control()
198 vol_rend.state.volume = VOLUME_DOWN(vol_rend.state.volume); in write_vcs_control()
205 if (vol_rend.state.volume != UINT8_MAX) { in write_vcs_control()
206 vol_rend.state.volume = VOLUME_UP(vol_rend.state.volume); in write_vcs_control()
213 if (vol_rend.state.volume > 0) { in write_vcs_control()
214 vol_rend.state.volume = VOLUME_DOWN(vol_rend.state.volume); in write_vcs_control()
225 if (vol_rend.state.volume != UINT8_MAX) { in write_vcs_control()
226 vol_rend.state.volume = VOLUME_UP(vol_rend.state.volume); in write_vcs_control()
237 opcode, vol_rend.state.volume); in write_vcs_control()
[all …]
Dvcp_internal.h33 uint8_t volume; member
45 uint8_t volume; member
Dvcp_vol_ctlr.c59 listener->state(vol_ctlr, err, err == 0 ? vol_ctlr->state.volume : 0, in vcp_vol_ctlr_state_changed()
120 vol_ctlr->state.volume, vol_ctlr->state.mute, in vcp_vol_ctlr_notify_handler()
147 vol_ctlr->state.volume, in vcp_vol_ctlr_read_vol_state_cb()
259 vol_ctlr->state.volume, in internal_read_vol_state_cb()
1200 int bt_vcp_vol_ctlr_set_vol(struct bt_vcp_vol_ctlr *vol_ctlr, uint8_t volume) in bt_vcp_vol_ctlr_set_vol() argument
1222 vol_ctlr->cp_val.volume = volume; in bt_vcp_vol_ctlr_set_vol()
/Zephyr-latest/samples/bluetooth/tmap_bmr/src/
Dvcp_vol_renderer.c22 static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument
27 printk("VCS volume %u, mute %u\n", volume, mute); in vcs_state_cb()
54 vcp_register_param.volume = 100; in vcp_vol_renderer_init()
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/
Dvcp_vol_renderer.c22 static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument
27 printk("VCS volume %u, mute %u\n", volume, mute); in vcs_state_cb()
54 vcp_register_param.volume = 100; in vcp_vol_renderer_init()
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dvcp.h96 uint8_t volume; member
173 void (*state)(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute);
254 int bt_vcp_vol_rend_set_vol(uint8_t volume);
289 void (*state)(struct bt_vcp_vol_ctlr *vol_ctlr, int err, uint8_t volume,
562 int bt_vcp_vol_ctlr_set_vol(struct bt_vcp_vol_ctlr *vol_ctlr, uint8_t volume);
/Zephyr-latest/samples/subsys/usb/audio/headset/src/
Dmain.c46 int16_t volume = 0; in feature_update() local
54 volume = UNALIGNED_GET((int16_t *)evt->val); in feature_update()
55 LOG_INF("set volume: %d", volume); in feature_update()
/Zephyr-latest/samples/bluetooth/tmap_central/src/
Dvcp_vol_ctlr.c39 uint8_t volume, uint8_t mute) in vcs_state_cb() argument
46 printk("VCS volume %u, mute %u\n", volume, mute); in vcs_state_cb()
140 int vcp_vol_ctlr_set_vol(uint8_t volume) in vcp_vol_ctlr_set_vol() argument
145 err = bt_vcp_vol_ctlr_set_vol(vcp_vol_ctlr, volume); in vcp_vol_ctlr_set_vol()
Dtmap_central.h53 int vcp_vol_ctlr_set_vol(uint8_t volume);
/Zephyr-latest/samples/subsys/usb/audio/headphones_microphone/src/
Dmain.c48 int16_t volume = 0; in feature_update() local
56 volume = UNALIGNED_GET((int16_t *)evt->val); in feature_update()
57 LOG_INF("set volume: %d", volume); in feature_update()
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_vcs.h18 uint8_t volume; member
Dbtp_vcp.h54 uint8_t volume; member
99 uint8_t volume; member
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dcap.rst247 such as mute or volume states.
262 change_volume :Change volume on all connections <volume>
263 change_volume_mute :Change volume mute state on all connections <mute>
264 change_volume_offset :Change volume offset per connection <volume_offset
293 Setting the volume on all connected devices
302 Setting volume to 15 on 2 connections
303 VCP volume 15, mute 0
305 VCP volume 15, mute 0
310 Setting the volume offset on one or more devices
332 Setting volume offset on 1 connections
[all …]
/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dvcp_vol_renderer.c21 static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument
26 printk("VCS volume %u, mute %u\n", volume, mute); in vcs_state_cb()
164 vcp_register_param.volume = 100; in vcp_vol_renderer_init()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_vcp.c89 LOG_DBG("Set volume 0x%02x", cp->volume); in set_volume()
91 if (bt_vcp_vol_rend_set_vol(cp->volume) != 0) { in set_volume()
146 static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument
510 vcp_register_param.volume = 100; in set_register_params()
583 static void btp_send_vcp_state_ev(struct bt_conn *conn, uint8_t att_status, uint8_t volume, in btp_send_vcp_state_ev() argument
591 ev.volume = volume; in btp_send_vcp_state_ev()
693 static void vcp_vol_ctlr_state_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err, uint8_t volume, in vcp_vol_ctlr_state_cb() argument
699 btp_send_vcp_state_ev(conn, err, volume, mute); in vcp_vol_ctlr_state_cb()
910 LOG_DBG("VCP CTLR Set absolute volume %d", cp->volume); in vcp_ctlr_set_vol()
912 err = bt_vcp_vol_ctlr_set_vol(vol_ctlr, cp->volume); in vcp_ctlr_set_vol()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dvcp_vol_rend.c31 static void vcp_vol_rend_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcp_vol_rend_state_cb() argument
36 shell_print(ctx_shell, "VCP volume %u, mute %u", volume, mute); in vcp_vol_rend_state_cb()
215 vcp_register_param.volume = 100; in cmd_vcp_vol_rend_init()
227 vcp_register_param.volume = shell_strtoul(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
364 unsigned long volume; in cmd_vcp_vol_rend_volume_set() local
367 volume = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_volume_set()
374 if (volume > UINT8_MAX) { in cmd_vcp_vol_rend_volume_set()
375 shell_error(sh, "Invalid volume %lu", volume); in cmd_vcp_vol_rend_volume_set()
380 result = bt_vcp_vol_rend_set_vol(volume); in cmd_vcp_vol_rend_volume_set()
Dcap_commander.c214 unsigned long volume; in cmd_cap_commander_change_volume() local
222 volume = shell_strtoul(argv[1], 10, &err); in cmd_cap_commander_change_volume()
229 if (volume > UINT8_MAX) { in cmd_cap_commander_change_volume()
230 shell_error(sh, "Invalid volume %lu", volume); in cmd_cap_commander_change_volume()
234 param.volume = (uint8_t)volume; in cmd_cap_commander_change_volume()
255 shell_print(sh, "Setting volume to %u on %zu connections", param.volume, param.count); in cmd_cap_commander_change_volume()
Dvcp_vol_ctlr.c109 uint8_t volume, uint8_t mute) in vcs_state_cb() argument
114 shell_print(ctx_shell, "VCP volume %u, mute %u", volume, mute); in vcs_state_cb()
481 unsigned long volume; in cmd_vcp_vol_ctlr_volume_set() local
489 volume = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_volume_set()
496 if (volume > UINT8_MAX) { in cmd_vcp_vol_ctlr_volume_set()
497 shell_error(sh, "Volume shall be 0-255, was %lu", volume); in cmd_vcp_vol_ctlr_volume_set()
502 result = bt_vcp_vol_ctlr_set_vol(vcp_vol_ctlr, volume); in cmd_vcp_vol_ctlr_volume_set()
/Zephyr-latest/doc/connectivity/bluetooth/api/
Dindex.rst28 audio/volume.rst
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/
Dtest_vcp.c78 .volume = 177, in ZTEST_F()
110 .volume = 177, in ZTEST_F()
156 .volume = 177, in ZTEST_F()
171 .volume = 177, in ZTEST_F()
191 .volume = 177, in ZTEST_F()
220 .volume = 177, in ZTEST_F()
242 .volume = 177, in ZTEST_F()
261 .volume = 177, in ZTEST_F()
/Zephyr-latest/drivers/audio/
Dwm8904.c219 static int wm8904_out_volume_config(const struct device *dev, audio_channel_t channel, int volume) in wm8904_out_volume_config() argument
222 const uint16_t val = WM8904_REGVAL_OUT_VOL(0, 0, 1, volume); in wm8904_out_volume_config()
264 static int wm8904_in_volume_config(const struct device *dev, audio_channel_t channel, int volume) in wm8904_in_volume_config() argument
266 const uint16_t val = WM8904_REGVAL_IN_VOL(0, volume); in wm8904_in_volume_config()
/Zephyr-latest/subsys/fs/
DKconfig.fatfs37 bool "Allow formatting volume when mounting fails"
42 a volume if no file system is found.
255 access for each volume. Will create a zephyr mutex object for each
256 FatFs volume and a FatFs system mutex.
277 physical drive number and only an FAT volume found on the physical drive
/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dvcp.c37 int bt_vcp_vol_ctlr_set_vol(struct bt_vcp_vol_ctlr *vol_ctlr, uint8_t volume) in bt_vcp_vol_ctlr_set_vol() argument

12