Skip to content

Commit a7d9b45

Browse files
committed
[HACK] ASoC: es8316: dump basic _DSM information
First try to get the needed information Signed-off-by: Pierre-Louis Bossart <[email protected]>
1 parent a7bb07a commit a7d9b45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sound/soc/codecs/es8316.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <sound/tlv.h>
2323
#include <sound/jack.h>
2424
#include "es8316.h"
25+
#include "es83xx-dsm-common.h"
2526

2627
/* In slave mode at single speed, the codec is documented as accepting 5
2728
* MCLK/LRCK ratios, but we also add ratio 400, which is commonly used on
@@ -828,6 +829,10 @@ static int es8316_i2c_probe(struct i2c_client *i2c_client)
828829
struct es8316_priv *es8316;
829830
int ret;
830831

832+
ret = es83xx_dsm_dump(dev);
833+
if (ret < 0)
834+
dev_warn(dev, "%s: Could not get information with ACPI _DSM method\n", __func__);
835+
831836
es8316 = devm_kzalloc(&i2c_client->dev, sizeof(struct es8316_priv),
832837
GFP_KERNEL);
833838
if (es8316 == NULL)

0 commit comments

Comments
 (0)