|
@@ -1778,6 +1778,14 @@ static int azx_first_init(struct azx *chip)
|
|
chip->playback_index_offset = chip->capture_streams;
|
|
chip->playback_index_offset = chip->capture_streams;
|
|
chip->num_streams = chip->playback_streams + chip->capture_streams;
|
|
chip->num_streams = chip->playback_streams + chip->capture_streams;
|
|
|
|
|
|
|
|
+ /* sanity check for the SDxCTL.STRM field overflow */
|
|
|
|
+ if (chip->num_streams > 15 &&
|
|
|
|
+ (chip->driver_caps & AZX_DCAPS_SEPARATE_STREAM_TAG) == 0) {
|
|
|
|
+ dev_warn(chip->card->dev, "number of I/O streams is %d, "
|
|
|
|
+ "forcing separate stream tags", chip->num_streams);
|
|
|
|
+ chip->driver_caps |= AZX_DCAPS_SEPARATE_STREAM_TAG;
|
|
|
|
+ }
|
|
|
|
+
|
|
/* initialize streams */
|
|
/* initialize streams */
|
|
err = azx_init_streams(chip);
|
|
err = azx_init_streams(chip);
|
|
if (err < 0)
|
|
if (err < 0)
|