Skip to content

Commit 636b26b

Browse files
committed
Added codec register output for debugging
1 parent b0412c3 commit 636b26b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sound/soc/codecs/ad193x.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static int ad193x_hw_params(struct snd_pcm_substream *substream,
247247
struct snd_pcm_hw_params *params,
248248
struct snd_soc_dai *dai)
249249
{
250-
int word_len = 0, master_rate = 0, sample_rate = 0;
250+
int word_len = 0, master_rate = 0, sample_rate = 0, i, ret;
251251
struct snd_soc_codec *codec = dai->codec;
252252
struct ad193x_priv *ad193x = snd_soc_codec_get_drvdata(codec);
253253

@@ -312,6 +312,11 @@ static int ad193x_hw_params(struct snd_pcm_substream *substream,
312312
regmap_update_bits(ad193x->regmap, AD193X_ADC_CTRL1,
313313
AD193X_ADC_WORD_LEN_MASK, word_len);
314314

315+
for(i=0; i<=16; i++){
316+
regmap_read(ad193x->regmap , i, &ret) ;
317+
dev_dbg(codec->dev, "AD193X register %d:\t0x%x", i, ret);
318+
}
319+
315320
return 0;
316321
}
317322

0 commit comments

Comments
 (0)