Other Parts Discussed in Thread: TLV320ADC3101,
I am writing a custom audio device definition file to use the TLV320ADC3101 in purepathe wireless configurator with the CC8530. I have the file most of the way completed and the device works with the chip, but I cannot sort out the volume control. The device mutes and outputs audio correctly, but it currently has no volume control. I think the error is most likely from a misunderstanding of one of the ctrl spec definition, but I am unsure. I copied and pasted the block from the device definition file for volume, would somebody please look over it to see where I may have made my error. The digital volume control register of TLV320ADC3101 is discussed at the bottom of page 25 of the data sheet (link included below).
Thank you, Austin
<vol_ctrl_spec dir="Input" type="Volume" io_channel_mask="01">
<pre_patch_cfg_sequence>
w 30 00 00 # Select register page 0
</pre_patch_cfg_sequence>
<vol_precision>1</vol_precision>
<vol_negate>0</vol_negate>
<vol_add_value>0</vol_add_value>
<vol_left_shift>0</vol_left_shift>
<vol_field_size>7</vol_field_size>
<patch_i2c_addr>30</patch_i2c_addr>
<patch_reg_addr_size>1</patch_reg_addr_size>
<patch_reg_addr>53</patch_reg_addr>
<patch_reg_data_size>1</patch_reg_data_size>
<patch_reg_data>80</patch_reg_data>
<patch_read_mask>80</patch_read_mask>
</vol_ctrl_spec>