Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d461f95b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: codecs: Add default case for switch."

parents eba2e296 7a01c26d
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -163,6 +163,10 @@ static int wcd937x_set_port_params(struct snd_soc_component *component,
		map = &wcd937x->tx_port_mapping;
		map = &wcd937x->tx_port_mapping;
		num_ports = wcd937x->num_tx_ports;
		num_ports = wcd937x->num_tx_ports;
		break;
		break;
	default:
		dev_err(component->dev, "%s Invalid path selected %u\n",
					__func__, path);
		return -EINVAL;
	}
	}


	for (i = 0; i <= num_ports; i++) {
	for (i = 0; i <= num_ports; i++) {
@@ -207,6 +211,10 @@ static int wcd937x_parse_port_mapping(struct device *dev,
		map = &wcd937x->tx_port_mapping;
		map = &wcd937x->tx_port_mapping;
		num_ports = &wcd937x->num_tx_ports;
		num_ports = &wcd937x->num_tx_ports;
		break;
		break;
	default:
		dev_err(dev, "%s Invalid path selected %u\n",
				 __func__, path);
		return -EINVAL;
	}
	}


	if (!of_find_property(dev->of_node, prop,
	if (!of_find_property(dev->of_node, prop,