]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Simplify PCM setup overrides
authorTakashi Iwai <tiwai@suse.de>
Mon, 16 Mar 2015 22:34:34 +0000 (23:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Mar 2015 19:57:20 +0000 (20:57 +0100)
commit53050f64a18bc3d940e65ea8ff49c29098f9ad85
treeeee9711b4e895efc5c51587fe2cb87340a45c929
parentd0ec1b1113a294863b24e2313f883ab0d27e6a21
ALSA: hda - Simplify PCM setup overrides

This patch does two things:
- code refactoring with a local helper function,
- allow codec drivers to provide the specific PCM stream info pointers
  only for overriding the non-NULL entries, instead of copying the
  whole.

This simplifies the codec driver side (currently the only user is
alc269's 44kHz fixed rate).

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