What's the relation ship between mapping prio and sink prio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/1/28 Tanu Kaskinen <tanuk at iki.fi>:
> On Thu, 2012-01-05 at 10:01 +0800, Feng Wei wrote:
>> Hi Colin,
>> Sorry for not making the question clearly.
>> In alsa module, we parsed out alsa mapping information from
>> profile-sets and mixer paths, and create sink from mapping, so I
>> thought there should be same for mapping priority and sink priority,
>> while port priority comes from mixer path/setting priority. I found
>> port priority assignment in source code, but alsa mapping priority is
>> never used, sink priority is only dependent on PA_PROP_DEVICE_CLASS,
>> PA_PROP_DEVICE_FORM_FACTOR, PA_PROP_DEVICE_BUS,
>> PA_PROP_DEVICE_PROFILE_NAME.
>> So if I can't specify the default sink by profile-sets config files.
>
> I didn't even know that sinks have priorities... But it appears that
> yes, they do, and it's used when the default sink needs to figure out in
> a situation where there's no sink currently set as default (and only at
> that situation!).
Absolutely it is.
>
> Using the mapping priority as the sink priority doesn't sound like a
> good idea, because the same mapping configuration can be used with
> multiple cards - it doesn't make much sense to set the priority to the
> same value for among all stereo sinks and among all 5.1 sinks etc. What
> is the actual problem you're trying to solve here?
I just want something to be default sink out of the box before any
default sink is specified.
> Using the sink
> priorities probably isn't the right solution, whatever the problem is.
If there are other approaches, I agree.
>
> --
> Tanu
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss



-- 
Wei.Feng (irc wei_feng)
Linaro Multimedia Team
Linaro.org???Open source software for ARM SoCs
Follow?Linaro:?Facebook?|?Twitter?|?Blog


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux