Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Change WM8741 volume in software control mode
Change WM8741 volume in software control mode
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 8th November 2017, 11:50 PM   #1
cheng01120 is offline cheng01120
diyAudio Member
 
Join Date: Sep 2014
Default Change WM8741 volume in software control mode

Hi all:

I use the following code to change the wm8741 volume(2-wire control mode):

Code:
    
    /* get lsb and msb */
    lsb = vol & 0x1f; /* lower 5 bit */
    msb = vol >> 5;   /* higher 5 bit */

    wm8741_mute(1);
    // write to registers.
    wm8741_i2c_write(0x00, lsb);
    wm8741_i2c_write(0x01, msb);
    wm8741_i2c_write(0x02, lsb);
    wm8741_i2c_write(0x03, msb | 0x20); // enable bit 6
    wm8741_mute(0);
However, only 1 channel volume can be changed, the other channel doesn't work, Is there anything wrong?
  Reply With Quote

Reply


Change WM8741 volume in software control modeHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrated DAC-Preamplifier: WM8805+WM8741 plus PGA2310 volume control fotios Digital Line Level 2 30th November 2014 05:37 PM
AD1955, WM8741... CONTROL VOLUME duartejunior Digital Line Level 5 3rd August 2014 06:21 AM
How to change a degree of volume pot rotation by remote control? kotofei Analog Line Level 12 26th November 2013 05:01 PM
WM8741 in Dual differential mode and 2-wire control mode BMW850Ci Digital Line Level 14 14th October 2011 08:39 AM
DF1706 and software mode control? WTS Digital Source 8 25th March 2004 11:02 PM


New To Site? Need Help?

All times are GMT. The time now is 12:10 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.79%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki