This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PCM5100A: PCM5100A no output

Part Number: PCM5100A
Other Parts Discussed in Thread: PCM5122

Dear TI:

    We used PCM5100A for experiments. The I2S audio signals BCK, LRCK and DIN are inputted to the PCM5100, and the BCK, LRCK, DIN pin Waveform as an attachment, however, there are no outputs.Test VNEG=-3.3,CAPP=1.65V,CAPM=-1.65V.1273.I2S_PCM5100A.pdfI2S.rar

   

ipq-codec.c
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*/
#define DEBUG
#include <linux/module.h>
#include <linux/init.h>
#include <sound/soc.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/soc-dai.h>
#include <sound/control.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/i2c.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/regmap.h>
#include <sound/initval.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <linux/of_device.h>
#include "ipq-adss.h"
#include "ipq-codec.h"
struct audio_hw_params audio_params;
static struct regmap *akd4613_regmap;
static const u8 akd4613_reg[AK4613_MAX_REG] = {
0x0F, 0x07, 0x3F, 0x20, 0x20, 0x55, 0x05, 0x07,
0x0F, 0x07, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
uint8_t ipq_compare_hw_params(struct audio_hw_params *curr_params)
{
if ((curr_params->bit_width == audio_params.bit_width) &&
(curr_params->freq == audio_params.freq) &&
(curr_params->channels == audio_params.channels))
return 0;
else
return -EINVAL;
}
/* DFS : Sampling Speed
*
* DFS1 DFS0 Sampling Speed Mode (fs)
* 0 0 Normal Speed Mode 32kHz~48kHz (default)
* 0 1 Double Speed Mode 64kHz~96kHz
* 1 0 Quad Speed Mode 128kHz~192kHz
* 1 1 N/A -
*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I2S.rar