mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 00:53:40 +00:00
ALSA: usb-audio: Generic DSD detection for XMOS-based implementations
Use more generic method to detect DSD capability of XMOS-based UAC2 implementations in order to support future devices without having to explicitly list every device separately. Signed-off-by: Jussi Laako <jussi@sonarnerd.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
3a572d94bc
commit
f332485fb3
@ -1362,7 +1362,6 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
|
|||||||
case USB_ID(0x1511, 0x0037): /* AURALiC VEGA */
|
case USB_ID(0x1511, 0x0037): /* AURALiC VEGA */
|
||||||
case USB_ID(0x20b1, 0x0002): /* Wyred 4 Sound DAC-2 DSD */
|
case USB_ID(0x20b1, 0x0002): /* Wyred 4 Sound DAC-2 DSD */
|
||||||
case USB_ID(0x20b1, 0x2004): /* Matrix Audio X-SPDIF 2 */
|
case USB_ID(0x20b1, 0x2004): /* Matrix Audio X-SPDIF 2 */
|
||||||
case USB_ID(0x20b1, 0x3008): /* iFi Audio micro/nano iDSD */
|
|
||||||
case USB_ID(0x20b1, 0x2008): /* Matrix Audio X-Sabre */
|
case USB_ID(0x20b1, 0x2008): /* Matrix Audio X-Sabre */
|
||||||
case USB_ID(0x20b1, 0x300a): /* Matrix Audio Mini-i Pro */
|
case USB_ID(0x20b1, 0x300a): /* Matrix Audio Mini-i Pro */
|
||||||
case USB_ID(0x22d9, 0x0416): /* OPPO HA-1 */
|
case USB_ID(0x22d9, 0x0416): /* OPPO HA-1 */
|
||||||
@ -1389,7 +1388,6 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
|
|||||||
case USB_ID(0x20b1, 0x3021): /* Eastern El. MiniMax Tube DAC Supreme */
|
case USB_ID(0x20b1, 0x3021): /* Eastern El. MiniMax Tube DAC Supreme */
|
||||||
case USB_ID(0x20b1, 0x3023): /* Aune X1S 32BIT/384 DSD DAC */
|
case USB_ID(0x20b1, 0x3023): /* Aune X1S 32BIT/384 DSD DAC */
|
||||||
case USB_ID(0x20b1, 0x302d): /* Unison Research Unico CD Due */
|
case USB_ID(0x20b1, 0x302d): /* Unison Research Unico CD Due */
|
||||||
case USB_ID(0x20b1, 0x3036): /* Holo Springs Level 3 R2R DAC */
|
|
||||||
case USB_ID(0x20b1, 0x307b): /* CH Precision C1 DAC */
|
case USB_ID(0x20b1, 0x307b): /* CH Precision C1 DAC */
|
||||||
case USB_ID(0x20b1, 0x3086): /* Singxer F-1 converter board */
|
case USB_ID(0x20b1, 0x3086): /* Singxer F-1 converter board */
|
||||||
case USB_ID(0x22d9, 0x0426): /* OPPO HA-2 */
|
case USB_ID(0x22d9, 0x0426): /* OPPO HA-2 */
|
||||||
@ -1447,6 +1445,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
|
|||||||
* from XMOS/Thesycon
|
* from XMOS/Thesycon
|
||||||
*/
|
*/
|
||||||
switch (USB_ID_VENDOR(chip->usb_id)) {
|
switch (USB_ID_VENDOR(chip->usb_id)) {
|
||||||
|
case 0x20b1: /* XMOS based devices */
|
||||||
case 0x25ce: /* Mytek devices */
|
case 0x25ce: /* Mytek devices */
|
||||||
if (fp->dsd_raw)
|
if (fp->dsd_raw)
|
||||||
return SNDRV_PCM_FMTBIT_DSD_U32_BE;
|
return SNDRV_PCM_FMTBIT_DSD_U32_BE;
|
||||||
|
Loading…
Reference in New Issue
Block a user