sound: usb: quirks: add flag for HEM devices to enable native DSD playback
PATCH 1/1 sound: usb: quirks: add flag for HEM devices to enable native DSD playback
This commit adds new DEVICE_FLG with QUIRK_FLAG_DSD_RAW and Vendor Id for HEM devices which supports native DSD. Prior to this change Linux kernel was not enabling native DSD playback for HEM devices, and as a result, DSD audio was being converted to PCM "on the fly". HEM devices, when connected to the system, would only play audio in PCM format, even if the source material was in DSD format. With the addition of new VENDOR_FLG in the quircks.c file, the devices are now correctly recognized, and raw DSD data is transmitted to the device, allowing for native DSD playback.
--- sound/usb/quirks.c | 2 ++ 1 file changed, 2 insertions(+)
sound/usb/quirks.c +2 -0
@@ -2197,6 +2197,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { QUIRK_FLAG_DSD_RAW),VENDOR_FLG (0xc502 ,/* HiBy devices */ QUIRK_FLAG_DSD_RAW ), +VENDOR_FLG (0x3336 ,/* HEM devices */ + QUIRK_FLAG_DSD_RAW), {} /* terminator */ };
Signature · 1 line
2.34.1
Quoted 21 lines · Lukasz Tyl
This commit adds new
DEVICE_FLGwithQUIRK_FLAG_DSD_RAWand Vendor Id for HEM devices which supports native DSD. Prior to this change Linux kernel was not enabling native DSD playback for HEM devices, and as a result, DSD audio was being converted to PCM "on the fly". HEM devices, when connected to the system, would only play audio in PCM format, even if the source material was in DSD format. With the addition of newVENDOR_FLGin thequircks.cfile, the devices are now correctly recognized, and raw DSD data is transmitted to the device, allowing for native DSD playback.Signed-off-by Lukasz Tyl <[email protected]>--- sound/usb/quirks.c | 2 ++ 1 file changed, 2 insertions(+)sound/usb/quirks.c +0
-0
sound/usb/quirks.c static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { · line 2201
Quoted 5 lines
sound/usb/quirks.c +2
-0@@ -2197,6 +2197,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { QUIRK_FLAG_DSD_RAW),VENDOR_FLG (0xc502 ,/* HiBy devices */ QUIRK_FLAG_DSD_RAW ), +VENDOR_FLG (0x3336 ,/* HEM devices */ + QUIRK_FLAG_DSD_RAW),
The entry is sorted in vendor id number. Could you try to put at the right position?
thanks,
Takashi