Skip to content

Commit

Permalink
Merge pull request #35 from hyphop/khadas-edge-4.4.y
Browse files Browse the repository at this point in the history
ALSA: usb-audio: add usb vendor id as DSD-capable for Khadas devices
  • Loading branch information
numbqq committed Nov 23, 2020
2 parents a87a282 + e53a82f commit 099a9d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sound/usb/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,14 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
}
}

/* Khadas devices - XMOS based USB DAC */
if ( USB_ID_VENDOR(chip->usb_id) == 0x3353 ) {
//usb_audio_warn(chip,"KHADAS AUDIO - %d %llu %u %u\n",
// fp->altsetting, fp->formats, fp->fmt_type, sample_bytes);
if (fp->altsetting == 3)
return SNDRV_PCM_FMTBIT_DSD_U32_BE;
}

/* XMOS based USB DACs */
switch (chip->usb_id) {
case USB_ID(0x20b1, 0x3008): /* iFi Audio micro/nano iDSD */
Expand Down

0 comments on commit 099a9d9

Please sign in to comment.