Sansa AMS/AMSv2: analog front-end register CVDD/DCDC3 doesn't exist in AMSv2, so don't modify it

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30579 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2011-09-21 21:48:19 +00:00
parent 151424a6fd
commit b1298c2c44
3 changed files with 8 additions and 5 deletions

View file

@ -357,8 +357,10 @@ static void ascodec_wait(struct ascodec_request *req)
static void ascodec_async_write(unsigned int index, unsigned int value,
struct ascodec_request *req)
{
#ifndef HAVE_AS3543
if (index == AS3514_CVDD_DCDC3) /* prevent setting of the LREG_CP_not bit */
value &= ~(1 << 5);
#endif
ascodec_req_init(req, ASCODEC_REQ_WRITE, index, 1);
req->data[0] = value;