Skip to content

Commit

Permalink
Return mute status
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Dec 16, 2024
1 parent 1b60e35 commit 467ef11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/usb/usb_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ static int usb_device_audio_get_control(usb_device_audio *device, uint8_t attrib

switch (aid)
{
case ATTRIB_ID(MUTE_CONTROL, CR_GET_CUR, 0x0200):
{
data[0] = device->mute;
ret = 1;
break;
}
case ATTRIB_ID(VOLUME_CONTROL, CR_GET_CUR, 0x0200):
if (cn < 2) {
uint16_t vol = (uint16_t)device->vol[cn];
Expand Down

0 comments on commit 467ef11

Please sign in to comment.