diff options
| author | Mengdong Lin <mengdong.lin@linux.intel.com> | 2016-04-19 01:12:35 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2016-04-20 12:14:43 -0400 |
| commit | 2f0ad49104cbb19db24442af736614659363d2ab (patch) | |
| tree | a9bf04d7e055f266189dcb12032caf8431aae868 | |
| parent | f55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff) | |
ASoC: Change DAI link's be_id to a generic id
The generic ID can be used by topology:
- Toplogy can create FE links and set their ID, machine drivers will
be notified and check this ID for machine-specific init.
- Toplogy can use the ID to find existing BE & CC links and further
configure them.
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | include/sound/soc.h | 2 | ||||
| -rw-r--r-- | sound/soc/intel/boards/broadwell.c | 2 | ||||
| -rw-r--r-- | sound/soc/intel/boards/bytcr_rt5640.c | 2 | ||||
| -rw-r--r-- | sound/soc/intel/boards/bytcr_rt5651.c | 2 | ||||
| -rw-r--r-- | sound/soc/intel/boards/cht_bsw_max98090_ti.c | 2 | ||||
| -rw-r--r-- | sound/soc/intel/boards/cht_bsw_rt5645.c | 2 | ||||
| -rw-r--r-- | sound/soc/intel/boards/cht_bsw_rt5672.c | 2 | ||||
| -rw-r--r-- | sound/soc/intel/boards/haswell.c | 2 | ||||
| -rw-r--r-- | sound/soc/intel/boards/skl_nau88l25_max98357a.c | 12 | ||||
| -rw-r--r-- | sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 12 | ||||
| -rw-r--r-- | sound/soc/intel/boards/skl_rt286.c | 10 |
11 files changed, 25 insertions, 25 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 02b4a215fd75..ef25e86d51ee 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
| @@ -1002,7 +1002,7 @@ struct snd_soc_dai_link { | |||
| 1002 | */ | 1002 | */ |
| 1003 | const char *platform_name; | 1003 | const char *platform_name; |
| 1004 | struct device_node *platform_of_node; | 1004 | struct device_node *platform_of_node; |
| 1005 | int be_id; /* optional ID for machine driver BE identification */ | 1005 | int id; /* optional ID for machine driver link identification */ |
| 1006 | 1006 | ||
| 1007 | const struct snd_soc_pcm_stream *params; | 1007 | const struct snd_soc_pcm_stream *params; |
| 1008 | unsigned int num_params; | 1008 | unsigned int num_params; |
diff --git a/sound/soc/intel/boards/broadwell.c b/sound/soc/intel/boards/broadwell.c index 3f8a1e10bed0..7486a0022fde 100644 --- a/sound/soc/intel/boards/broadwell.c +++ b/sound/soc/intel/boards/broadwell.c | |||
| @@ -201,7 +201,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = { | |||
| 201 | { | 201 | { |
| 202 | /* SSP0 - Codec */ | 202 | /* SSP0 - Codec */ |
| 203 | .name = "Codec", | 203 | .name = "Codec", |
| 204 | .be_id = 0, | 204 | .id = 0, |
| 205 | .cpu_dai_name = "snd-soc-dummy-dai", | 205 | .cpu_dai_name = "snd-soc-dummy-dai", |
| 206 | .platform_name = "snd-soc-dummy", | 206 | .platform_name = "snd-soc-dummy", |
| 207 | .no_pcm = 1, | 207 | .no_pcm = 1, |
diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c index 032a2e753f0b..88efb62439ba 100644 --- a/sound/soc/intel/boards/bytcr_rt5640.c +++ b/sound/soc/intel/boards/bytcr_rt5640.c | |||
| @@ -304,7 +304,7 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = { | |||
| 304 | /* back ends */ | 304 | /* back ends */ |
| 305 | { | 305 | { |
| 306 | .name = "SSP2-Codec", | 306 | .name = "SSP2-Codec", |
| 307 | .be_id = 1, | 307 | .id = 1, |
| 308 | .cpu_dai_name = "ssp2-port", | 308 | .cpu_dai_name = "ssp2-port", |
| 309 | .platform_name = "sst-mfld-platform", | 309 | .platform_name = "sst-mfld-platform", |
| 310 | .no_pcm = 1, | 310 | .no_pcm = 1, |
diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c index 1c95ccc886c4..35f591eab3c9 100644 --- a/sound/soc/intel/boards/bytcr_rt5651.c +++ b/sound/soc/intel/boards/bytcr_rt5651.c | |||
| @@ -267,7 +267,7 @@ static struct snd_soc_dai_link byt_rt5651_dais[] = { | |||
| 267 | /* back ends */ | 267 | /* back ends */ |
| 268 | { | 268 | { |
| 269 | .name = "SSP2-Codec", | 269 | .name = "SSP2-Codec", |
| 270 | .be_id = 1, | 270 | .id = 1, |
| 271 | .cpu_dai_name = "ssp2-port", | 271 | .cpu_dai_name = "ssp2-port", |
| 272 | .platform_name = "sst-mfld-platform", | 272 | .platform_name = "sst-mfld-platform", |
| 273 | .no_pcm = 1, | 273 | .no_pcm = 1, |
diff --git a/sound/soc/intel/boards/cht_bsw_max98090_ti.c b/sound/soc/intel/boards/cht_bsw_max98090_ti.c index e609f089593a..6260df6bd49c 100644 --- a/sound/soc/intel/boards/cht_bsw_max98090_ti.c +++ b/sound/soc/intel/boards/cht_bsw_max98090_ti.c | |||
| @@ -255,7 +255,7 @@ static struct snd_soc_dai_link cht_dailink[] = { | |||
| 255 | /* back ends */ | 255 | /* back ends */ |
| 256 | { | 256 | { |
| 257 | .name = "SSP2-Codec", | 257 | .name = "SSP2-Codec", |
| 258 | .be_id = 1, | 258 | .id = 1, |
| 259 | .cpu_dai_name = "ssp2-port", | 259 | .cpu_dai_name = "ssp2-port", |
| 260 | .platform_name = "sst-mfld-platform", | 260 | .platform_name = "sst-mfld-platform", |
| 261 | .no_pcm = 1, | 261 | .no_pcm = 1, |
diff --git a/sound/soc/intel/boards/cht_bsw_rt5645.c b/sound/soc/intel/boards/cht_bsw_rt5645.c index 2a6f80843bc9..0618a7f1025b 100644 --- a/sound/soc/intel/boards/cht_bsw_rt5645.c +++ b/sound/soc/intel/boards/cht_bsw_rt5645.c | |||
| @@ -295,7 +295,7 @@ static struct snd_soc_dai_link cht_dailink[] = { | |||
| 295 | /* back ends */ | 295 | /* back ends */ |
| 296 | { | 296 | { |
| 297 | .name = "SSP2-Codec", | 297 | .name = "SSP2-Codec", |
| 298 | .be_id = 1, | 298 | .id = 1, |
| 299 | .cpu_dai_name = "ssp2-port", | 299 | .cpu_dai_name = "ssp2-port", |
| 300 | .platform_name = "sst-mfld-platform", | 300 | .platform_name = "sst-mfld-platform", |
| 301 | .no_pcm = 1, | 301 | .no_pcm = 1, |
diff --git a/sound/soc/intel/boards/cht_bsw_rt5672.c b/sound/soc/intel/boards/cht_bsw_rt5672.c index 2e5347f8f96c..df9d254baa18 100644 --- a/sound/soc/intel/boards/cht_bsw_rt5672.c +++ b/sound/soc/intel/boards/cht_bsw_rt5672.c | |||
| @@ -273,7 +273,7 @@ static struct snd_soc_dai_link cht_dailink[] = { | |||
| 273 | { | 273 | { |
| 274 | /* SSP2 - Codec */ | 274 | /* SSP2 - Codec */ |
| 275 | .name = "SSP2-Codec", | 275 | .name = "SSP2-Codec", |
| 276 | .be_id = 1, | 276 | .id = 1, |
| 277 | .cpu_dai_name = "ssp2-port", | 277 | .cpu_dai_name = "ssp2-port", |
| 278 | .platform_name = "sst-mfld-platform", | 278 | .platform_name = "sst-mfld-platform", |
| 279 | .no_pcm = 1, | 279 | .no_pcm = 1, |
diff --git a/sound/soc/intel/boards/haswell.c b/sound/soc/intel/boards/haswell.c index 22558572cb9c..863f1d5e2a2c 100644 --- a/sound/soc/intel/boards/haswell.c +++ b/sound/soc/intel/boards/haswell.c | |||
| @@ -156,7 +156,7 @@ static struct snd_soc_dai_link haswell_rt5640_dais[] = { | |||
| 156 | { | 156 | { |
| 157 | /* SSP0 - Codec */ | 157 | /* SSP0 - Codec */ |
| 158 | .name = "Codec", | 158 | .name = "Codec", |
| 159 | .be_id = 0, | 159 | .id = 0, |
| 160 | .cpu_dai_name = "snd-soc-dummy-dai", | 160 | .cpu_dai_name = "snd-soc-dummy-dai", |
| 161 | .platform_name = "snd-soc-dummy", | 161 | .platform_name = "snd-soc-dummy", |
| 162 | .no_pcm = 1, | 162 | .no_pcm = 1, |
diff --git a/sound/soc/intel/boards/skl_nau88l25_max98357a.c b/sound/soc/intel/boards/skl_nau88l25_max98357a.c index 72176b79a18d..9cc9240ed717 100644 --- a/sound/soc/intel/boards/skl_nau88l25_max98357a.c +++ b/sound/soc/intel/boards/skl_nau88l25_max98357a.c | |||
| @@ -456,7 +456,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 456 | { | 456 | { |
| 457 | /* SSP0 - Codec */ | 457 | /* SSP0 - Codec */ |
| 458 | .name = "SSP0-Codec", | 458 | .name = "SSP0-Codec", |
| 459 | .be_id = 0, | 459 | .id = 0, |
| 460 | .cpu_dai_name = "SSP0 Pin", | 460 | .cpu_dai_name = "SSP0 Pin", |
| 461 | .platform_name = "0000:00:1f.3", | 461 | .platform_name = "0000:00:1f.3", |
| 462 | .no_pcm = 1, | 462 | .no_pcm = 1, |
| @@ -472,7 +472,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 472 | { | 472 | { |
| 473 | /* SSP1 - Codec */ | 473 | /* SSP1 - Codec */ |
| 474 | .name = "SSP1-Codec", | 474 | .name = "SSP1-Codec", |
| 475 | .be_id = 1, | 475 | .id = 1, |
| 476 | .cpu_dai_name = "SSP1 Pin", | 476 | .cpu_dai_name = "SSP1 Pin", |
| 477 | .platform_name = "0000:00:1f.3", | 477 | .platform_name = "0000:00:1f.3", |
| 478 | .no_pcm = 1, | 478 | .no_pcm = 1, |
| @@ -489,7 +489,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 489 | }, | 489 | }, |
| 490 | { | 490 | { |
| 491 | .name = "dmic01", | 491 | .name = "dmic01", |
| 492 | .be_id = 2, | 492 | .id = 2, |
| 493 | .cpu_dai_name = "DMIC01 Pin", | 493 | .cpu_dai_name = "DMIC01 Pin", |
| 494 | .codec_name = "dmic-codec", | 494 | .codec_name = "dmic-codec", |
| 495 | .codec_dai_name = "dmic-hifi", | 495 | .codec_dai_name = "dmic-hifi", |
| @@ -501,7 +501,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 501 | }, | 501 | }, |
| 502 | { | 502 | { |
| 503 | .name = "iDisp1", | 503 | .name = "iDisp1", |
| 504 | .be_id = 3, | 504 | .id = 3, |
| 505 | .cpu_dai_name = "iDisp1 Pin", | 505 | .cpu_dai_name = "iDisp1 Pin", |
| 506 | .codec_name = "ehdaudio0D2", | 506 | .codec_name = "ehdaudio0D2", |
| 507 | .codec_dai_name = "intel-hdmi-hifi1", | 507 | .codec_dai_name = "intel-hdmi-hifi1", |
| @@ -512,7 +512,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 512 | }, | 512 | }, |
| 513 | { | 513 | { |
| 514 | .name = "iDisp2", | 514 | .name = "iDisp2", |
| 515 | .be_id = 4, | 515 | .id = 4, |
| 516 | .cpu_dai_name = "iDisp2 Pin", | 516 | .cpu_dai_name = "iDisp2 Pin", |
| 517 | .codec_name = "ehdaudio0D2", | 517 | .codec_name = "ehdaudio0D2", |
| 518 | .codec_dai_name = "intel-hdmi-hifi2", | 518 | .codec_dai_name = "intel-hdmi-hifi2", |
| @@ -523,7 +523,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 523 | }, | 523 | }, |
| 524 | { | 524 | { |
| 525 | .name = "iDisp3", | 525 | .name = "iDisp3", |
| 526 | .be_id = 5, | 526 | .id = 5, |
| 527 | .cpu_dai_name = "iDisp3 Pin", | 527 | .cpu_dai_name = "iDisp3 Pin", |
| 528 | .codec_name = "ehdaudio0D2", | 528 | .codec_name = "ehdaudio0D2", |
| 529 | .codec_dai_name = "intel-hdmi-hifi3", | 529 | .codec_dai_name = "intel-hdmi-hifi3", |
diff --git a/sound/soc/intel/boards/skl_nau88l25_ssm4567.c b/sound/soc/intel/boards/skl_nau88l25_ssm4567.c index 5f1ca99ae9b0..53380b2cb1a8 100644 --- a/sound/soc/intel/boards/skl_nau88l25_ssm4567.c +++ b/sound/soc/intel/boards/skl_nau88l25_ssm4567.c | |||
| @@ -505,7 +505,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 505 | { | 505 | { |
| 506 | /* SSP0 - Codec */ | 506 | /* SSP0 - Codec */ |
| 507 | .name = "SSP0-Codec", | 507 | .name = "SSP0-Codec", |
| 508 | .be_id = 0, | 508 | .id = 0, |
| 509 | .cpu_dai_name = "SSP0 Pin", | 509 | .cpu_dai_name = "SSP0 Pin", |
| 510 | .platform_name = "0000:00:1f.3", | 510 | .platform_name = "0000:00:1f.3", |
| 511 | .no_pcm = 1, | 511 | .no_pcm = 1, |
| @@ -523,7 +523,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 523 | { | 523 | { |
| 524 | /* SSP1 - Codec */ | 524 | /* SSP1 - Codec */ |
| 525 | .name = "SSP1-Codec", | 525 | .name = "SSP1-Codec", |
| 526 | .be_id = 1, | 526 | .id = 1, |
| 527 | .cpu_dai_name = "SSP1 Pin", | 527 | .cpu_dai_name = "SSP1 Pin", |
| 528 | .platform_name = "0000:00:1f.3", | 528 | .platform_name = "0000:00:1f.3", |
| 529 | .no_pcm = 1, | 529 | .no_pcm = 1, |
| @@ -540,7 +540,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 540 | }, | 540 | }, |
| 541 | { | 541 | { |
| 542 | .name = "dmic01", | 542 | .name = "dmic01", |
| 543 | .be_id = 2, | 543 | .id = 2, |
| 544 | .cpu_dai_name = "DMIC01 Pin", | 544 | .cpu_dai_name = "DMIC01 Pin", |
| 545 | .codec_name = "dmic-codec", | 545 | .codec_name = "dmic-codec", |
| 546 | .codec_dai_name = "dmic-hifi", | 546 | .codec_dai_name = "dmic-hifi", |
| @@ -552,7 +552,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 552 | }, | 552 | }, |
| 553 | { | 553 | { |
| 554 | .name = "iDisp1", | 554 | .name = "iDisp1", |
| 555 | .be_id = 3, | 555 | .id = 3, |
| 556 | .cpu_dai_name = "iDisp1 Pin", | 556 | .cpu_dai_name = "iDisp1 Pin", |
| 557 | .codec_name = "ehdaudio0D2", | 557 | .codec_name = "ehdaudio0D2", |
| 558 | .codec_dai_name = "intel-hdmi-hifi1", | 558 | .codec_dai_name = "intel-hdmi-hifi1", |
| @@ -563,7 +563,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 563 | }, | 563 | }, |
| 564 | { | 564 | { |
| 565 | .name = "iDisp2", | 565 | .name = "iDisp2", |
| 566 | .be_id = 4, | 566 | .id = 4, |
| 567 | .cpu_dai_name = "iDisp2 Pin", | 567 | .cpu_dai_name = "iDisp2 Pin", |
| 568 | .codec_name = "ehdaudio0D2", | 568 | .codec_name = "ehdaudio0D2", |
| 569 | .codec_dai_name = "intel-hdmi-hifi2", | 569 | .codec_dai_name = "intel-hdmi-hifi2", |
| @@ -574,7 +574,7 @@ static struct snd_soc_dai_link skylake_dais[] = { | |||
| 574 | }, | 574 | }, |
| 575 | { | 575 | { |
| 576 | .name = "iDisp3", | 576 | .name = "iDisp3", |
| 577 | .be_id = 5, | 577 | .id = 5, |
| 578 | .cpu_dai_name = "iDisp3 Pin", | 578 | .cpu_dai_name = "iDisp3 Pin", |
| 579 | .codec_name = "ehdaudio0D2", | 579 | .codec_name = "ehdaudio0D2", |
| 580 | .codec_dai_name = "intel-hdmi-hifi3", | 580 | .codec_dai_name = "intel-hdmi-hifi3", |
diff --git a/sound/soc/intel/boards/skl_rt286.c b/sound/soc/intel/boards/skl_rt286.c index 2016397a8e75..9e39fc1b89d3 100644 --- a/sound/soc/intel/boards/skl_rt286.c +++ b/sound/soc/intel/boards/skl_rt286.c | |||
| @@ -375,7 +375,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { | |||
| 375 | { | 375 | { |
| 376 | /* SSP0 - Codec */ | 376 | /* SSP0 - Codec */ |
| 377 | .name = "SSP0-Codec", | 377 | .name = "SSP0-Codec", |
| 378 | .be_id = 0, | 378 | .id = 0, |
| 379 | .cpu_dai_name = "SSP0 Pin", | 379 | .cpu_dai_name = "SSP0 Pin", |
| 380 | .platform_name = "0000:00:1f.3", | 380 | .platform_name = "0000:00:1f.3", |
| 381 | .no_pcm = 1, | 381 | .no_pcm = 1, |
| @@ -393,7 +393,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { | |||
| 393 | }, | 393 | }, |
| 394 | { | 394 | { |
| 395 | .name = "dmic01", | 395 | .name = "dmic01", |
| 396 | .be_id = 1, | 396 | .id = 1, |
| 397 | .cpu_dai_name = "DMIC01 Pin", | 397 | .cpu_dai_name = "DMIC01 Pin", |
| 398 | .codec_name = "dmic-codec", | 398 | .codec_name = "dmic-codec", |
| 399 | .codec_dai_name = "dmic-hifi", | 399 | .codec_dai_name = "dmic-hifi", |
| @@ -405,7 +405,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { | |||
| 405 | }, | 405 | }, |
| 406 | { | 406 | { |
| 407 | .name = "iDisp1", | 407 | .name = "iDisp1", |
| 408 | .be_id = 2, | 408 | .id = 2, |
| 409 | .cpu_dai_name = "iDisp1 Pin", | 409 | .cpu_dai_name = "iDisp1 Pin", |
| 410 | .codec_name = "ehdaudio0D2", | 410 | .codec_name = "ehdaudio0D2", |
| 411 | .codec_dai_name = "intel-hdmi-hifi1", | 411 | .codec_dai_name = "intel-hdmi-hifi1", |
| @@ -416,7 +416,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { | |||
| 416 | }, | 416 | }, |
| 417 | { | 417 | { |
| 418 | .name = "iDisp2", | 418 | .name = "iDisp2", |
| 419 | .be_id = 3, | 419 | .id = 3, |
| 420 | .cpu_dai_name = "iDisp2 Pin", | 420 | .cpu_dai_name = "iDisp2 Pin", |
| 421 | .codec_name = "ehdaudio0D2", | 421 | .codec_name = "ehdaudio0D2", |
| 422 | .codec_dai_name = "intel-hdmi-hifi2", | 422 | .codec_dai_name = "intel-hdmi-hifi2", |
| @@ -427,7 +427,7 @@ static struct snd_soc_dai_link skylake_rt286_dais[] = { | |||
| 427 | }, | 427 | }, |
| 428 | { | 428 | { |
| 429 | .name = "iDisp3", | 429 | .name = "iDisp3", |
| 430 | .be_id = 4, | 430 | .id = 4, |
| 431 | .cpu_dai_name = "iDisp3 Pin", | 431 | .cpu_dai_name = "iDisp3 Pin", |
| 432 | .codec_name = "ehdaudio0D2", | 432 | .codec_name = "ehdaudio0D2", |
| 433 | .codec_dai_name = "intel-hdmi-hifi3", | 433 | .codec_dai_name = "intel-hdmi-hifi3", |
