quirks.c (126f7051b4daa3716d9af2851dcb55316e4c2b25) quirks.c (3a572d94bcff98a14c94fe686881a169a26f3fca)
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 1429 unchanged lines hidden (view full) ---

1438 * three (0-2),
1439 * Altsetting 3 support native DSD if the num of altsets is
1440 * four (0-3).
1441 */
1442 if (fp->altsetting == iface->num_altsetting - 1)
1443 return SNDRV_PCM_FMTBIT_DSD_U32_BE;
1444 }
1445
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 1429 unchanged lines hidden (view full) ---

1438 * three (0-2),
1439 * Altsetting 3 support native DSD if the num of altsets is
1440 * four (0-3).
1441 */
1442 if (fp->altsetting == iface->num_altsetting - 1)
1443 return SNDRV_PCM_FMTBIT_DSD_U32_BE;
1444 }
1445
1446 /* Mostly generic method to detect many DSD-capable implementations -
1447 * from XMOS/Thesycon
1448 */
1449 switch (USB_ID_VENDOR(chip->usb_id)) {
1450 case 0x25ce: /* Mytek devices */
1451 if (fp->dsd_raw)
1452 return SNDRV_PCM_FMTBIT_DSD_U32_BE;
1453 break;
1454 default:
1455 break;
1456
1457 }
1458
1446 return 0;
1447}
1448
1449void snd_usb_audioformat_attributes_quirk(struct snd_usb_audio *chip,
1450 struct audioformat *fp,
1451 int stream)
1452{
1453 switch (chip->usb_id) {

--- 28 unchanged lines hidden ---
1459 return 0;
1460}
1461
1462void snd_usb_audioformat_attributes_quirk(struct snd_usb_audio *chip,
1463 struct audioformat *fp,
1464 int stream)
1465{
1466 switch (chip->usb_id) {

--- 28 unchanged lines hidden ---