public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
From: bugtrack@alsa-project.org
To: alsa-devel@alsa-project.org
Subject: [ALSA - driver 0001728]: Modification of volume control for M-Audio Revolution 5.1
Date: Wed, 25 Jan 2006 00:29:26 +0100	[thread overview]
Message-ID: <5b2b7b49529a0ef7db6479d5893a87ea@bugtrack.alsa-project.org> (raw)


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1728> 
======================================================================
Reported By:                cyan
Assigned To:                
======================================================================
Project:                    ALSA - driver
Issue ID:                   1728
Category:                   PCI - ice1724
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Distribution:               gentoo testing
Kernel Version:             2.6.14-gentoo-r5
======================================================================
Date Submitted:             01-09-2006 23:35 CET
Last Modified:              01-25-2006 00:29 CET
======================================================================
Summary:                    Modification of volume control for M-Audio
Revolution 5.1
Description: 
In Alsamixer (and KMix) is not possible to change volume of both chanels at
once. Slides with names "DAC" and "DAC1" corresponds to left and right
chanel. 
I would like to make a suggestion to merge them together.
======================================================================

----------------------------------------------------------------------
 wollschaf - 01-14-06 22:31 
----------------------------------------------------------------------
This would be a great step for usability.

I dug around in the source code and - surprise, surprise - understood not
a thing going on.

The other 4 DACs should be merged, too.

----------------------------------------------------------------------
 wollschaf - 01-25-06 00:29 
----------------------------------------------------------------------
I tried my best and came up with the attached patch.

The patch modifies ak4xxx-adda.c that only every second DAC (left channel)
gets a mixer attached (but a stereo one).

snd_akm4xxx_volume_put and snd_akm4xxx_volume_put are now based on the
assumption that the register holding the volume of the right channel is
always one register further than the one for the left channel. I found no
card that works different, but I might as well have not looked properly
enough.

The problem is that the patch applies to all cards that use an ak4xxx DAC.
So if there is a card out there that relies on separate mono DAC mixer
elements, this patch is absolutely evil. It is even more evil for an
uneven number of DACs on the card, i.e a card with 7 DACs will be totally
abused if the volume on this channel is adjusted (whatever there is in
addr+1).

This method works well for the Revolution 5.1; Other Cards should / could
work, too. At least I hope so.

I tested front, center/sub and rear channels.

This is my first patch, so it might as well be not working at all
regarding my use of diff. 
This is also my first real use of c besides some "hello world" and printf
things, and my pascal days are long gone and those were not even glorious.
Better look at everything twice ;)

Issue History
Date Modified  Username       Field                    Change              
======================================================================
01-09-06 23:35 cyan           New Issue                                    
01-09-06 23:35 cyan           Distribution              => gentoo testing  
01-09-06 23:35 cyan           Kernel Version            => 2.6.14-gentoo-r5
01-14-06 22:31 wollschaf      Note Added: 0007656                          
01-25-06 00:07 wollschaf      Issue Monitored: wollschaf                    
01-25-06 00:09 wollschaf      File Added: ak4xxx-adda-stereomixer.patch         
          
01-25-06 00:29 wollschaf      Note Added: 0007776                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

             reply	other threads:[~2006-01-24 23:29 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-24 23:29 bugtrack [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-06-27 13:10 [ALSA - driver 0001728]: Modification of volume control for M-Audio Revolution 5.1 bugtrack
2006-06-27 13:08 bugtrack
2006-06-27 12:46 bugtrack
2006-06-26 19:41 bugtrack
2006-06-26 15:49 bugtrack
2006-06-26 15:36 bugtrack
2006-06-26 13:57 bugtrack
2006-06-26 11:35 bugtrack
2006-06-26 11:13 bugtrack
2006-06-24  8:43 bugtrack
2006-06-16 16:50 bugtrack
2006-06-15 17:47 bugtrack
2006-02-02 14:15 bugtrack
2006-01-27 14:20 bugtrack
2006-01-14 21:31 bugtrack
2006-01-09 22:35 bugtrack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b2b7b49529a0ef7db6479d5893a87ea@bugtrack.alsa-project.org \
    --to=bugtrack@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox