]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: hda - Introduce bit flags to snd_hda_codec_read/write()
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Jun 2013 12:00:23 +0000 (14:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Jun 2013 12:11:14 +0000 (14:11 +0200)
commite7ecc27e520a9c9891362c6dabd18c4da9885946
treef919645b7e4c9316b5823801739dc214acd4c35f
parent36bb00d4b2463b0b8b37fb0ce753813bf729b997
ALSA: hda - Introduce bit flags to snd_hda_codec_read/write()

snd_hda_codec_read(), snd_hda_codec_write() & co take the argument
"direct" that indicates whether the given NID is a direct reference or
an indirect reference.  However, the indirect reference is practically
unimplemented and never exists.  And moreover, we don't need the
indication of indirect reference at this high level, as NID can be
represented in 16bit values at this point.

Meanwhile, there are some cases where it'd be nice to give some
operational options to these functions.  So, we can reuse this
argument as a new bit flag!  Pretty frugal, eh?

All callers so far pass zero to this argument, thus there is no
behavior change by this replacement.

The real usage of this new bit option will be added in the following
patches.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h