mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 13:34:30 +00:00
ALSA: hda - Set individual name to secondary analog PCM stream
It'd be better to give another name to the secondary (alt) analog PCM stream, which is dedicated for the independent HP out and extra inputs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
f2f8be43c5
commit
a607148ff3
@ -4531,9 +4531,12 @@ int snd_hda_gen_build_pcms(struct hda_codec *codec)
|
||||
!spec->dyn_adc_switch && !spec->auto_mic;
|
||||
/* Additional Analaog capture for index #2 */
|
||||
if (spec->alt_dac_nid || have_multi_adcs) {
|
||||
fill_pcm_stream_name(spec->stream_name_alt_analog,
|
||||
sizeof(spec->stream_name_alt_analog),
|
||||
" Alt Analog", codec->chip_name);
|
||||
codec->num_pcms = 3;
|
||||
info = spec->pcm_rec + 2;
|
||||
info->name = spec->stream_name_analog;
|
||||
info->name = spec->stream_name_alt_analog;
|
||||
if (spec->alt_dac_nid) {
|
||||
p = spec->stream_analog_alt_playback;
|
||||
if (!p)
|
||||
|
@ -80,6 +80,8 @@ struct hda_gen_spec {
|
||||
char stream_name_analog[32]; /* analog PCM stream */
|
||||
const struct hda_pcm_stream *stream_analog_playback;
|
||||
const struct hda_pcm_stream *stream_analog_capture;
|
||||
|
||||
char stream_name_alt_analog[32]; /* alternative analog PCM stream */
|
||||
const struct hda_pcm_stream *stream_analog_alt_playback;
|
||||
const struct hda_pcm_stream *stream_analog_alt_capture;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user