Set sku variants for audio policy
Change-Id: Id21ac11e2e3994c188ddb600cdf09d982e865c22
This commit is contained in:
1 parent
c76adb8408
commit
1dc0ef8653
1 file changed
+11
@@ -118,6 +118,16 @@ void vendor_set_usb_product_ids(tegra_init *ti)
|
||||
ti->property_set(id.first, id.second);
|
||||
}
|
||||
|
||||
void vendor_set_sku(tegra_init *ti)
|
||||
{
|
||||
if (ti->is_model("loki_e_base") || ti->is_model("loki_e_lte") || ti->is_model("loki_e_wifi"))
|
||||
ti->property_set("ro.boot.product.vendor.sku", "loki");
|
||||
else if (ti->is_model("odin") || ti->is_model("modin") || ti->is_model("frig") || ti->is_model("vali"))
|
||||
ti->property_set("ro.boot.product.vendor.sku", "nx");
|
||||
else if (ti->is_model("dragon"))
|
||||
ti->property_set("ro.boot.product.vendor.sku", "dragon");
|
||||
}
|
||||
|
||||
void vendor_set_nrdp_props(tegra_init *ti)
|
||||
{
|
||||
if (ti->is_model("mdarcy") || ti->is_model("sif"))
|
||||
@@ -190,6 +200,7 @@ void vendor_load_properties()
|
||||
|
||||
if (ti.vendor_context() || ti.recovery_context()) {
|
||||
vendor_set_usb_product_ids(&ti);
|
||||
vendor_set_sku(&ti);
|
||||
|
||||
if (ti.property_get("ro.build.characteristics") == "tv") {
|
||||
vendor_set_nrdp_props(&ti);
|
||||
|
||||
Reference in new issue
Block a user