[alsa-devel] [PATCH] ASoC: rt5640: Add minimal support for RT5642

Bard Liao bardliao at realtek.com
Thu Apr 17 03:59:17 CEST 2014

> -----Original Message-----
> From: Jarkko Nikula [mailto:jarkko.nikula at linux.intel.com]
> Sent: Wednesday, April 16, 2014 9:16 PM
> To: alsa-devel at alsa-project.org
> Cc: Mark Brown; Oder Chiou; Bard Liao; Liam Girdwood; Jarkko Nikula
> Subject: [PATCH] ASoC: rt5640: Add minimal support for RT5642
> We have been using rt5640.c codec driver with RT5642 codec chip before commit
> 022d21f004c1 ("ASoC: rt5640: add rt5639 support"). That commits starts using
> device ID reading in reset register for adding device specific controls and routes
> runtime.
> Now since device ID appears to be different between RT5640 and RT5642 the
> driver doesn't add those controls and routes that are valid also on RT5642.
> Fix this by adding a device ID found by debugging and minimal code for supporting
> RT5642.
>  #define RT5639_RESET_ID				0x0008
>  #define RT5640_RESET_ID				0x000c
> +#define RT5642_RESET_ID				0x0006

Actually, the device is store in bit 1 and 2. So we need a mask when reading the device ID.
I will send another patch for doing it.

> ------Please consider the environment before printing this e-mail.

More information about the Alsa-devel mailing list