Skip to content

Commit

Permalink
Add support for RCA PlayingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
berezovskyi-oleksandr committed Aug 9, 2024
1 parent c37739f commit ddf4241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/linkplay/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def playmode_support(self) -> list[PlayingMode]:
flags = InputMode(
int(self.properties[DeviceAttribute.PLAYMODE_SUPPORT], base=16)
)

return [INPUT_MODE_MAP[flag] for flag in flags]

@property
Expand Down
2 changes: 2 additions & 0 deletions src/linkplay/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ class InputMode(IntFlag):
BLUETOOTH = 4
USB = 8
OPTICAL = 16
RCA = 32
COAXIAL = 64
LINE_IN_2 = 256
USB_DAC = 32768
Expand All @@ -179,6 +180,7 @@ class InputMode(IntFlag):
InputMode.BLUETOOTH: PlayingMode.BLUETOOTH,
InputMode.USB: PlayingMode.UDISK,
InputMode.OPTICAL: PlayingMode.OPTICAL,
InputMode.RCA: PlayingMode.RCA,
InputMode.COAXIAL: PlayingMode.COAXIAL,
InputMode.LINE_IN_2: PlayingMode.LINE_IN_2,
InputMode.USB_DAC: PlayingMode.USB_DAC,
Expand Down

0 comments on commit ddf4241

Please sign in to comment.