mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	ALSA: usb-audio: Support both DSD LE/BE Amanero firmware versions
Add DSD support for both little endian (DSD_U32_LE) and big endian (DSD_U32_BE) version of the Amanero firmware. Signed-off-by: Jussi Laako <jussi@sonarnerd.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									f93a1c9e5e
								
							
						
					
					
						commit
						3eff682d76
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
					@ -1359,6 +1359,21 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 | 
				
			||||||
		if (fp->altsetting == 3)
 | 
							if (fp->altsetting == 3)
 | 
				
			||||||
			return SNDRV_PCM_FMTBIT_DSD_U32_BE;
 | 
								return SNDRV_PCM_FMTBIT_DSD_U32_BE;
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						/* Amanero Combo384 USB interface with native DSD support */
 | 
				
			||||||
 | 
						case USB_ID(0x16d0, 0x071a):
 | 
				
			||||||
 | 
							if (fp->altsetting == 2) {
 | 
				
			||||||
 | 
								switch (chip->dev->descriptor.bcdDevice) {
 | 
				
			||||||
 | 
								case 0x199:
 | 
				
			||||||
 | 
									return SNDRV_PCM_FMTBIT_DSD_U32_LE;
 | 
				
			||||||
 | 
								case 0x19b:
 | 
				
			||||||
 | 
									return SNDRV_PCM_FMTBIT_DSD_U32_BE;
 | 
				
			||||||
 | 
								default:
 | 
				
			||||||
 | 
									break;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue