summaryrefslogtreecommitdiff
path: root/firmware/bnx2x
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-03-04 20:43:20 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-23 13:19:42 +0100
commitd313e0a88d1b29d17198ef659af042a633a2d3de (patch)
treebee10919b779f05bda95eb8c5ac2610226e79396 /firmware/bnx2x
parenta551d91473e5e3a591f6fe86ac5a5fb460c3f96a (diff)
downloadlinux-next-d313e0a88d1b29d17198ef659af042a633a2d3de.tar.gz
ALSA: hda - Add a fake stereo amp register support
HD-audio spec is inconvenient regarding the handling of stereo volume controls. It can set and get only single channel at once (although there is a special option to set the same value to both channels). This patch provides a fake pseudo-register via the regmap access so that the stereo channels can be read and written by a single call. It'd be useful, for example, for implementing DAPM widgets. A stereo amp pseudo register consists of the encoding like the normal amp verbs but it has both SET_LEFT (bit 13) and SET_RIGHT (bit 12) bits set. The regmap reads and writes a 16bit value for this pseudo register where the upper 8bit is for the right chanel and the lower 8bit for the left channel. Note that the driver doesn't recognize conflicts when both stereo and mono channel registers are mixed. Mixing them would certainly confuse the operation. So, use carefully. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'firmware/bnx2x')
0 files changed, 0 insertions, 0 deletions