ASoC: rt286: Add rt288 codec support
Subsystems (3)
PATCH 1/1 ASoC: rt286: Add rt288 codec support
This patch adds support for rt288 codec.
Signed-off-by Bard Liao <[email protected]>
--- sound/soc/codecs/rt286.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/rt286.c +2 -1
@@ -34,6 +34,7 @@#include "rt286.h" #define RT286_VENDOR_ID 0x10ec0286 +#define RT288_VENDOR_ID 0x10ec0288struct rt286_priv {struct regmap *regmap;
@@ -1210,7 +1211,7 @@ static int rt286_i2c_probe(struct i2c_client *i2c,regmap_read (rt286->regmap,RT286_GET_PARAM (AC_NODE_ROOT ,AC_PAR_VENDOR_ID ), &ret); -if (ret !=RT286_VENDOR_ID ) { +if (ret !=RT286_VENDOR_ID && ret !=RT288_VENDOR_ID ) {dev_err (&i2c->dev,"Device with ID register %x is not rt286\n" , ret);return -ENODEV ;
Signature · 1 line
1.8.1.1.439.g50a6b54
Mark Brown
maintainerQuoted 6 lines · Bard Liao
This patch adds support for rt288 codec.
Signed-off-by Bard Liao <[email protected]>--- sound/soc/codecs/rt286.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
This is fine in so far as it goes but I'd also expect to see the rt288 ID being added to the I2C device IDs table - a board should be able to register the device as an rt288 if that's what it is.