[alsa-devel] [PATCH] USB: Support for (original) Xbox Communicator

Takashi Iwai tiwai at suse.de
Mon Sep 3 10:20:20 CEST 2012


At Sun, 2 Sep 2012 14:59:27 +0200,
Marko Friedemann wrote:
> 
> From: Marko Friedemann <mfr at bmx-chemnitz.de>
> 
> Added support for Xbox Communicator to USB quirks.
> 
> Signed-off-by: Marko Friedemann <mfr at bmx-chemnitz.de>
> 
> ---
> As requested, resubmit according to documentation.

Thanks, applied.


Takashi


> 
> Regards,
> Marko
> 
> 
> --- alsa-driver-1.0.25/alsa-kernel/usb/quirks-table.h	2012-01-25 08:56:49.000000000 +0100
> +++ alsa-driver/alsa-kernel/usb/quirks-table.h	2012-09-01 16:30:09.000000000 +0200
> @@ -2758,4 +2758,59 @@ YAMAHA_DEVICE(0x7010, "UB99"),
>  	}
>  },
>  
> +{
> +	/*
> +	 * Microsoft XboxLive Headset/Xbox Communicator
> +	 */
> +	USB_DEVICE(0x045e, 0x0283),
> +	.bInterfaceClass = USB_CLASS_PER_INTERFACE,
> +	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
> +		.vendor_name = "Microsoft",
> +		.product_name = "XboxLive Headset/Xbox Communicator",
> +		.ifnum = QUIRK_ANY_INTERFACE,
> +		.type = QUIRK_COMPOSITE,
> +		.data = &(const struct snd_usb_audio_quirk[]) {
> +			{
> +				/* playback */
> +				.ifnum = 0,
> +				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
> +				.data = &(const struct audioformat) {
> +					.formats = SNDRV_PCM_FMTBIT_S16_LE,
> +					.channels = 1,
> +					.iface = 0,
> +					.altsetting = 0,
> +					.altset_idx = 0,
> +					.attributes = 0,
> +					.endpoint = 0x04,
> +					.ep_attr = 0x05,
> +					.rates = SNDRV_PCM_RATE_CONTINUOUS,
> +					.rate_min = 22050,
> +					.rate_max = 22050
> +				}
> +			},
> +			{
> +				/* capture */
> +				.ifnum = 1,
> +				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
> +				.data = &(const struct audioformat) {
> +					.formats = SNDRV_PCM_FMTBIT_S16_LE,
> +					.channels = 1,
> +					.iface = 1,
> +					.altsetting = 0,
> +					.altset_idx = 0,
> +					.attributes = 0,
> +					.endpoint = 0x85,
> +					.ep_attr = 0x05,
> +					.rates = SNDRV_PCM_RATE_CONTINUOUS,
> +					.rate_min = 16000,
> +					.rate_max = 16000
> +				}
> +			},
> +			{
> +				.ifnum = -1
> +			}
> +		}
> +	}
> +},
> +
>  #undef USB_DEVICE_VENDOR_SPEC
> 
> -- 
> "Somit werden Zitate zu zählbaren Einheiten wissenschaftlicher
>  Reputation."        -- NeMa-News - Trends in der Wissenschaft
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 


More information about the Alsa-devel mailing list